commander: Add prearm check for flight termination

This commit is contained in:
Alex Mikhalev
2021-10-02 18:05:02 -07:00
committed by Daniel Agar
parent 6359c8c008
commit 45dff7f71a
3 changed files with 9 additions and 0 deletions
+2
View File
@@ -2911,6 +2911,8 @@ Commander::run()
checkWindAndWarn();
}
_status_flags.flight_terminated = _armed.force_failsafe || _armed.lockdown || _armed.manual_lockdown;
/* Get current timestamp */
const hrt_abstime now = hrt_absolute_time();