FlightModeManager: correct setpoint struct initialization

It is important that setpoints get initialized with NAN and not overwritten
if specifically set by a successful flight task execution. It's then
clear if any setpoints were intentionally and successfully set.
Crucial for the position controller's emergency failsafe and the
seamless setpoint handover to the next flight task.
This commit is contained in:
Matthias Grob
2021-01-17 14:06:30 +01:00
committed by Lorenz Meier
parent 63db61a700
commit df54f938ef
3 changed files with 10 additions and 14 deletions
@@ -150,11 +150,6 @@ public:
*/
static const vehicle_local_position_setpoint_s empty_setpoint;
/**.
* All counters are set to 0.
*/
static const ekf_reset_counters_s zero_reset_counters;
/**
* Empty constraints.
* All constraints are set to NAN.