diff --git a/Tools/sitl_run.sh b/Tools/sitl_run.sh index 521ebeef21..b4617e40cf 100755 --- a/Tools/sitl_run.sh +++ b/Tools/sitl_run.sh @@ -83,6 +83,12 @@ then elif [ "$debugger" == "gdb" ] then gdb --args mainapp ../../../../${rc_script}_${program} +elif [ "$debugger" == "ddd" ] +then + ddd --debugger gdb --args mainapp ../../../../${rc_script}_${program} +elif [ "$debugger" == "valgrind" ] +then + valgrind ./mainapp ../../../../${rc_script}_${program} else ./mainapp ../../../../${rc_script}_${program} fi diff --git a/src/firmware/posix/CMakeLists.txt b/src/firmware/posix/CMakeLists.txt index 64f4775c33..fb7490ffe2 100644 --- a/src/firmware/posix/CMakeLists.txt +++ b/src/firmware/posix/CMakeLists.txt @@ -33,7 +33,7 @@ add_custom_target(run_config add_dependencies(run_config mainapp) foreach(viewer none jmavsim gazebo) - foreach(debugger none gdb lldb) + foreach(debugger none gdb lldb ddd valgrind) foreach(model none iris vtol) if (debugger STREQUAL "none") if (model STREQUAL "none") diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 003a45137c..a349a78ea0 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -1250,7 +1250,7 @@ Sensors::vehicle_control_mode_poll() void Sensors::parameter_update_poll(bool forced) { - bool param_updated=false; + bool param_updated = false; /* Check if any parameter has changed */ orb_check(_params_sub, ¶m_updated);