mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-30 18:20:35 +08:00
Rename force_failsafe to termination for clarity
This commit is contained in:
committed by
Alex Klimaj
parent
34dacffc4a
commit
7fe78e184e
@@ -119,9 +119,9 @@ private:
|
||||
}
|
||||
|
||||
// system_status overrides
|
||||
if (actuator_armed.force_failsafe || (actuator_armed.lockdown
|
||||
&& vehicle_status.hil_state == vehicle_status_s::HIL_STATE_OFF) || actuator_armed.manual_lockdown
|
||||
|| vehicle_status.nav_state == vehicle_status_s::NAVIGATION_STATE_TERMINATION) {
|
||||
if (actuator_armed.termination
|
||||
|| (actuator_armed.lockdown && vehicle_status.hil_state == vehicle_status_s::HIL_STATE_OFF)
|
||||
|| actuator_armed.manual_lockdown) {
|
||||
|
||||
system_status = MAV_STATE_FLIGHT_TERMINATION;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user