mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 16:48:52 +08:00
add killswitch (manual_lockdown) to Snapdragon uart ESC
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user