mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 16:33:39 +08:00
Implement the way to run posix simulator directly from IDE without the need to reconfigure command lines, but use runner created via CMake
Steps to debug: * Run gazebo (or any other sim) server and client viewers via the terminal: `make posix_sitl_default gazebo_none_ide` * In your IDE select `px4_<mode>` target you want to debug (e.g. `px4_iris`) * Start debug session directly from IDE This approach significantly reduces the debug cycle time because simulator (e.g. gazebo) is always running in background and you only re-run px4 process which is very light.
This commit is contained in:
committed by
Lorenz Meier
parent
b79e4ab506
commit
6d3116e30b
@@ -135,6 +135,15 @@ then
|
||||
elif [ "$debugger" == "valgrind" ]
|
||||
then
|
||||
valgrind $sitl_command
|
||||
elif [ "$debugger" == "ide" ]
|
||||
then
|
||||
echo "######################################################################"
|
||||
echo
|
||||
echo "PX4 simulator not started, use your IDE to start PX4_${model} target."
|
||||
echo "Hit enter to quit..."
|
||||
echo
|
||||
echo "######################################################################"
|
||||
read
|
||||
else
|
||||
$sitl_command
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user