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:
Michael Schaeuble 2017-02-27 11:44:40 +01:00 committed by Lorenz Meier
parent 12c7421be9
commit 3961c46d68

View File

@ -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);
}