From 131861b6297a3ad2f28a6677187869da2930b6dd Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 13 Feb 2012 12:38:10 +1100 Subject: [PATCH] make it easy to run simulator under valgrind --- Tools/autotest/sim_arducopter.sh | 1 + Tools/autotest/sim_arduplane.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/Tools/autotest/sim_arducopter.sh b/Tools/autotest/sim_arducopter.sh index f6129ccd77..37e3421d38 100755 --- a/Tools/autotest/sim_arducopter.sh +++ b/Tools/autotest/sim_arducopter.sh @@ -29,6 +29,7 @@ make clean $target tfile=$(tempfile) echo r > $tfile gnome-terminal -e "gdb -x $tfile --args /tmp/ArduCopter.build/ArduCopter.elf" +#gnome-terminal -e "valgrind -q /tmp/ArduCopter.build/ArduCopter.elf" sleep 2 rm -f $tfile gnome-terminal -e "../Tools/autotest/pysim/sim_multicopter.py --frame=$frame --home=-35.362938,149.165085,584,270" diff --git a/Tools/autotest/sim_arduplane.sh b/Tools/autotest/sim_arduplane.sh index 1494272b24..c1085386c1 100755 --- a/Tools/autotest/sim_arduplane.sh +++ b/Tools/autotest/sim_arduplane.sh @@ -10,6 +10,7 @@ make clean sitl tfile=$(tempfile) echo r > $tfile gnome-terminal -e "gdb -x $tfile --args /tmp/ArduPlane.build/ArduPlane.elf" +#gnome-terminal -e "valgrind -q /tmp/ArduPlane.build/ArduPlane.elf" sleep 2 rm -f $tfile gnome-terminal -e '../Tools/autotest/jsbsim/runsim.py --home=-35.362938,149.165085,584,270 --wind=5,180,0.2'