addressed review comments

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2022-04-13 12:23:27 +03:00
committed by Roman Bapst
parent b335710655
commit 3ed929c7b6
2 changed files with 2 additions and 1 deletions
@@ -441,6 +441,7 @@ void FlightModeManager::handleCommand()
command_ack.target_component = command.source_component;
command_ack.timestamp = hrt_absolute_time();
_vehicle_command_ack_pub.publish(command_ack);
} else if (_current_task.task) {
// check for other commands not related to task switching
if (command.command == vehicle_command_s::VEHICLE_CMD_DO_CHANGE_SPEED && command.param2 >= 0