mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-17 03:30:35 +08:00
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:
committed by
Lorenz Meier
parent
63db61a700
commit
df54f938ef
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user