mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 16:03:33 +08:00
bebop2 shutdown motors on force_failsafe
This commit is contained in:
committed by
Daniel Agar
parent
6c34407d57
commit
c762a12bfa
@@ -432,7 +432,7 @@ void task_main(int argc, char *argv[])
|
|||||||
orb_copy(ORB_ID(actuator_armed), _armed_sub, &_armed);
|
orb_copy(ORB_ID(actuator_armed), _armed_sub, &_armed);
|
||||||
}
|
}
|
||||||
|
|
||||||
const bool lockdown = _armed.manual_lockdown || _armed.lockdown;
|
const bool lockdown = _armed.manual_lockdown || _armed.lockdown || _armed.force_failsafe;
|
||||||
|
|
||||||
// Start the motors if armed but not alreay running
|
// Start the motors if armed but not alreay running
|
||||||
if (_armed.armed && !lockdown && !_motors_running) {
|
if (_armed.armed && !lockdown && !_motors_running) {
|
||||||
|
|||||||
Reference in New Issue
Block a user