consume all available queued vehicle_commands

This commit is contained in:
Daniel Agar
2021-01-24 13:42:35 -05:00
parent d5c7e243a9
commit d1dfa26903
11 changed files with 167 additions and 175 deletions
@@ -181,7 +181,7 @@ void TemperatureCompensationModule::Run()
perf_begin(_loop_perf);
// Check if user has requested to run the calibration routine
if (_vehicle_command_sub.updated()) {
while (_vehicle_command_sub.updated()) {
vehicle_command_s cmd;
if (_vehicle_command_sub.copy(&cmd)) {