add killswitch (manual_lockdown) to Snapdragon uart ESC

This commit is contained in:
ChristophTobler
2017-11-23 07:10:44 +01:00
committed by Beat Küng
parent d1a4c2dcd0
commit a0f935916a
@@ -336,7 +336,7 @@ void task_main(int argc, char *argv[])
_outputs.timestamp = hrt_absolute_time();
int16_t motor_rpms[UART_ESC_MAX_MOTORS];
if (_armed.armed) {
if (_armed.armed && !_armed.lockdown && !_armed.manual_lockdown) {
_outputs.noutputs = mixer->mix(&_outputs.output[0], actuator_controls_s::NUM_ACTUATOR_CONTROLS);
// Make sure we support only up to UART_ESC_MAX_MOTORS motors