sitl script: Do NOT kill px4 if debug in IDE

This commit is contained in:
CAI Dongcai
2019-11-02 12:40:36 -04:00
committed by Daniel Agar
parent 7a82df3872
commit c804dea914
+6 -2
View File
@@ -50,8 +50,12 @@ fi
# kill process names that might stil
# be running from last time
pkill -x gazebo || true
pkill -x px4 || true
pkill -x px4_$model || true
# Do NOT kill PX4 if debug in ide
if [ "$debugger" != "ide" ]; then
pkill -x px4 || true
pkill -x px4_$model || true
fi
cp "$src_path/Tools/posix_lldbinit" "$rootfs/.lldbinit"
cp "$src_path/Tools/posix.gdbinit" "$rootfs/.gdbinit"