mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +08:00
Expand SITL run
This commit is contained in:
@@ -82,12 +82,22 @@ then
|
|||||||
echo "You need to have gazebo simulator installed!"
|
echo "You need to have gazebo simulator installed!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
elif [ "$program" == "replay" ] && [ "$no_sim" == "" ]
|
||||||
|
then
|
||||||
|
echo "Replaying logfile: $logfile"
|
||||||
|
# This is not a simulator, but a log file to replay
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd $build_path/src/firmware/posix
|
cd $build_path/src/firmware/posix
|
||||||
mkdir -p rootfs/fs/microsd
|
mkdir -p rootfs/fs/microsd
|
||||||
mkdir -p rootfs/eeprom
|
mkdir -p rootfs/eeprom
|
||||||
touch rootfs/eeprom/parameters
|
touch rootfs/eeprom/parameters
|
||||||
|
|
||||||
|
if [ "$logfile" != "" ]
|
||||||
|
then
|
||||||
|
cp $logfile rootfs/replay.px4log
|
||||||
|
fi
|
||||||
|
|
||||||
# Do not exit on failure now from here on because we want the complete cleanup
|
# Do not exit on failure now from here on because we want the complete cleanup
|
||||||
set +e
|
set +e
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user