mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-29 11:34:07 +08:00
UAVCAN: Incorporate manual loackdown
This flag is triggered when the manual kill switch is activated. The motors did not stop when the kill switch was engaged before adding this check.
This commit is contained in:
parent
12c7421be9
commit
3961c46d68
@ -991,7 +991,7 @@ int UavcanNode::run()
|
||||
|
||||
// Update the armed status and check that we're not locked down and motor
|
||||
// test is not running
|
||||
bool set_armed = _armed.armed && !_armed.lockdown && !_test_in_progress;
|
||||
bool set_armed = _armed.armed && !_armed.lockdown && !_armed.manual_lockdown && !_test_in_progress;
|
||||
|
||||
arm_actuators(set_armed);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user