Browse Source

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.
main
Julian Oes 3 years ago committed by Daniel Agar
parent
commit
33a77c225c
  1. 2
      src/modules/commander/Commander.cpp

2
src/modules/commander/Commander.cpp

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

Loading…
Cancel
Save