mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00:00
Fix debug targets for sitl run
This commit is contained in:
@@ -48,7 +48,7 @@ then
|
|||||||
ant
|
ant
|
||||||
java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -udp 127.0.0.1:14560 &
|
java -Djava.ext.dirs= -cp lib/*:out/production/jmavsim.jar me.drton.jmavsim.Simulator -udp 127.0.0.1:14560 &
|
||||||
SIM_PID=`echo $!`
|
SIM_PID=`echo $!`
|
||||||
elif [ "$3" == "gazebo" ] && [ "$no_sim" == "" ]
|
elif [ "$program" == "gazebo" ] && [ "$no_sim" == "" ]
|
||||||
then
|
then
|
||||||
if [ -x "$(command -v gazebo)" ]
|
if [ -x "$(command -v gazebo)" ]
|
||||||
then
|
then
|
||||||
@@ -79,13 +79,13 @@ touch rootfs/eeprom/parameters
|
|||||||
# Start Java simulator
|
# Start Java simulator
|
||||||
if [ "$debugger" == "lldb" ]
|
if [ "$debugger" == "lldb" ]
|
||||||
then
|
then
|
||||||
lldb -- mainapp ../../../../${rc_script}_${program}
|
lldb -- mainapp ../../../../${rc_script}_${program}_${model}
|
||||||
elif [ "$debugger" == "gdb" ]
|
elif [ "$debugger" == "gdb" ]
|
||||||
then
|
then
|
||||||
gdb --args mainapp ../../../../${rc_script}_${program}
|
gdb --args mainapp ../../../../${rc_script}_${program}_${model}
|
||||||
elif [ "$debugger" == "ddd" ]
|
elif [ "$debugger" == "ddd" ]
|
||||||
then
|
then
|
||||||
ddd --debugger gdb --args mainapp ../../../../${rc_script}_${program}
|
ddd --debugger gdb --args mainapp ../../../../${rc_script}_${program}_${model}
|
||||||
elif [ "$debugger" == "valgrind" ]
|
elif [ "$debugger" == "valgrind" ]
|
||||||
then
|
then
|
||||||
valgrind ./mainapp ../../../../${rc_script}_${program}_${model}
|
valgrind ./mainapp ../../../../${rc_script}_${program}_${model}
|
||||||
|
|||||||
Reference in New Issue
Block a user