Skip to content

Commit

Permalink
update UavDynamics and many parameters, add scripts to simply build a…
Browse files Browse the repository at this point in the history
…nd run the main targets, alpha release v5
  • Loading branch information
PonomarevDA committed Jan 12, 2025
1 parent 3848881 commit 4ad95e3
Show file tree
Hide file tree
Showing 7 changed files with 259 additions and 496 deletions.
236 changes: 70 additions & 166 deletions configs/ap_plane.yaml

Large diffs are not rendered by default.

233 changes: 68 additions & 165 deletions configs/px4_plane_5kg.yaml

Large diffs are not rendered by default.

233 changes: 69 additions & 164 deletions configs/px4_quadplane_vtol_5kg.yaml

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions scripts/ap_plane.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
echo "Hint:"
echo "cd ~/ardupilot"
echo "./Tools/autotest/sim_vehicle.py -v Plane --console --map -w --model JSON -l 55.75690,48.74115,-7,0"
sleep 1
echo ""

SCRIPT_DIR="$(dirname "$0")"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
CMAKE_DIR=$REPO_DIR/src/Simulator
CREATE_APP_IMAGE_SCRIPT_PATH=$REPO_DIR/src/UavDynamics/scripts/build_appimage.sh
BUILD_DIR=$REPO_DIR/build

rm $REPO_DIR/UavDynamics-x86_64.AppImage
$CREATE_APP_IMAGE_SCRIPT_PATH --cmake-dir $CMAKE_DIR --build-dir $BUILD_DIR

$REPO_DIR/UavDynamics-x86_64.AppImage --config $REPO_DIR/configs/ap_plane.yaml
17 changes: 17 additions & 0 deletions scripts/plane.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
echo "Hint:"
echo "cd ~/PX4-Autopilot"
echo "PX4_SIM_MODEL=gazebo-classic_plane ./build/px4_sitl_default/bin/px4 ./build/px4_sitl_default/etc -s etc/init.d-posix/rcS -i 0"
sleep 1
echo ""

SCRIPT_DIR="$(dirname "$0")"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
CMAKE_DIR=$REPO_DIR/src/Simulator
CREATE_APP_IMAGE_SCRIPT_PATH=$REPO_DIR/src/UavDynamics/scripts/build_appimage.sh
BUILD_DIR=$REPO_DIR/build

rm $REPO_DIR/UavDynamics-x86_64.AppImage
$CREATE_APP_IMAGE_SCRIPT_PATH --cmake-dir $CMAKE_DIR --build-dir $BUILD_DIR

$REPO_DIR/UavDynamics-x86_64.AppImage --config $REPO_DIR/configs/px4_plane_5kg.yaml
17 changes: 17 additions & 0 deletions scripts/vtol.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
echo "Hint:"
echo "cd ~/PX4-Autopilot"
echo "PX4_SIM_MODEL=gazebo-classic_standard_vtol ./build/px4_sitl_default/bin/px4 ./build/px4_sitl_default/etc -s etc/init.d-posix/rcS -i 0"
sleep 1
echo ""

SCRIPT_DIR="$(dirname "$0")"
REPO_DIR="$(dirname "$SCRIPT_DIR")"
CMAKE_DIR=$REPO_DIR/src/Simulator
CREATE_APP_IMAGE_SCRIPT_PATH=$REPO_DIR/src/UavDynamics/scripts/build_appimage.sh
BUILD_DIR=$REPO_DIR/build

rm $REPO_DIR/UavDynamics-x86_64.AppImage
$CREATE_APP_IMAGE_SCRIPT_PATH --cmake-dir $CMAKE_DIR --build-dir $BUILD_DIR

$REPO_DIR/UavDynamics-x86_64.AppImage --config $REPO_DIR/configs/px4_vtol_5kg.yaml
2 changes: 1 addition & 1 deletion src/UavDynamics

0 comments on commit 4ad95e3

Please sign in to comment.