From ffaef906c49bfd7897c47e00deb0961bffcd1a73 Mon Sep 17 00:00:00 2001 From: Matthias Grob Date: Mon, 28 Mar 2022 13:53:42 +0200 Subject: [PATCH] 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. --- src/modules/flight_mode_manager/FlightModeManager.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/modules/flight_mode_manager/FlightModeManager.cpp b/src/modules/flight_mode_manager/FlightModeManager.cpp index 366ba68f94..62909dba76 100644 --- a/src/modules/flight_mode_manager/FlightModeManager.cpp +++ b/src/modules/flight_mode_manager/FlightModeManager.cpp @@ -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; } } }