mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-28 05:30:34 +08:00
commander: Add prearm check for flight termination
This commit is contained in:
committed by
Daniel Agar
parent
6359c8c008
commit
45dff7f71a
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user