mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-01 03:50:35 +08:00
consume all available queued vehicle_commands
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user