mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 23:33:35 +08:00
fix commander: separate state tracking for battery_unhealthy failsafe (#24493)
There is already another check for battery_unhealthy, so a separate state and ID are required. Fixes the error: ERROR [failsafe] BUG: duplicate check for caller_id 74
This commit is contained in:
@@ -179,6 +179,10 @@ private:
|
||||
bool _last_state_battery_warning_critical{false};
|
||||
const int _caller_id_battery_warning_emergency{genCallerId()};
|
||||
bool _last_state_battery_warning_emergency{false};
|
||||
const int _caller_id_fd_esc_arming{genCallerId()};
|
||||
bool _last_state_fd_esc_arming{false};
|
||||
const int _caller_id_battery_unhealthy_spoolup{genCallerId()};
|
||||
bool _last_state_battery_unhealthy_spoolup{false};
|
||||
|
||||
hrt_abstime _armed_time{0};
|
||||
bool _was_armed{false};
|
||||
|
||||
Reference in New Issue
Block a user