From 34b6354fa6301bc03c6792ad67724014e54af4b1 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 28 Jan 2016 22:28:36 +0100 Subject: [PATCH] Expand SITL run --- Tools/sitl_run.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index a30897fe7a..c5e0300975 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -82,12 +82,22 @@ then echo "You need to have gazebo simulator installed!" exit 1 fi +elif [ "$program" == "replay" ] && [ "$no_sim" == "" ] +then + echo "Replaying logfile: $logfile" + # This is not a simulator, but a log file to replay fi + cd $build_path/src/firmware/posix mkdir -p rootfs/fs/microsd mkdir -p rootfs/eeprom 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 set +e