mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-15 01:07:35 +08:00
FlightModeManager: don't ack with result failed when parameters are invalid
Command denied is defined as "supported but has invalid parameters" which matches the case.
This commit is contained in:
@@ -429,7 +429,6 @@ void FlightModeManager::handleCommand()
|
||||
// if we just switched and parameters are not accepted, go to failsafe
|
||||
if (switch_result >= FlightTaskError::NoError) {
|
||||
switchTask(FlightTaskIndex::Failsafe);
|
||||
cmd_result = vehicle_command_ack_s::VEHICLE_RESULT_FAILED;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user