Skip to content

Commit

Permalink
add killswitch (manual_lockdown) to Snapdragon uart ESC
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristophTobler authored and bkueng committed Nov 23, 2017
1 parent d1a4c2d commit a0f9359
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/platforms/qurt/fc_addon/uart_esc/uart_esc_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0f9359

Please sign in to comment.