Skip to content

Commit

Permalink
Fixed bad symlink dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-elsaharti committed Feb 4, 2021
1 parent b2f9c9d commit 39b2781
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PX4Scripts/run_airsim_sitl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@ PARENT_DIR="$(dirname "$SCRIPT_DIR")"
BUILD_DIR=$PARENT_DIR/Firmware/ROMFS/px4fmu_common
instance_path=$PARENT_DIR/Firmware/build/px4_sitl_default
BIN_DIR=$PARENT_DIR/Firmware/build/px4_sitl_default/bin/px4
STARTUP_DIR=$PARENT_DIR/Firmware/etc/init.d-posix/rcS
TEST_DATA=$PARENT_DIR/Firmware/test_data
working_dir="$instance_path/instance_$instance_num"
[ ! -d "$working_dir" ] && mkdir -p "$working_dir"
pushd "$working_dir" &>/dev/null
$BIN_DIR -i $instance_num $BUILD_DIR -s $STARTUP_DIR -t $TEST_DATA
$BIN_DIR -i $instance_num $BUILD_DIR -s "etc/init.d-posix/rcS" -t $TEST_DATA

0 comments on commit 39b2781

Please sign in to comment.