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:
Julian Oes 2022-05-20 16:26:11 +12:00 committed by Daniel Agar
parent b8ce2a6039
commit 4ae97c505f
No known key found for this signature in database
GPG Key ID: FD3CBA98017A69DE

View File

@ -2912,7 +2912,7 @@ Commander::run()
checkWindAndWarn();
}
_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 */
const hrt_abstime now = hrt_absolute_time();