mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 15:28:53 +08:00
commander: lockdown is not termination
We use lockdown to prevent outputs like motors and servos from being active in HITL simulation. This means that we can't treat the lockdown flag as a flight_terminated, otherwise we can't arm in HITL at all.
This commit is contained in:
@@ -2929,7 +2929,7 @@ Commander::run()
|
|||||||
checkWindSpeedThresholds();
|
checkWindSpeedThresholds();
|
||||||
}
|
}
|
||||||
|
|
||||||
_status_flags.flight_terminated = _armed.force_failsafe || _armed.lockdown || _armed.manual_lockdown;
|
_status_flags.flight_terminated = _armed.force_failsafe || _armed.manual_lockdown;
|
||||||
|
|
||||||
/* Get current timestamp */
|
/* Get current timestamp */
|
||||||
const hrt_abstime now = hrt_absolute_time();
|
const hrt_abstime now = hrt_absolute_time();
|
||||||
|
|||||||
Reference in New Issue
Block a user