mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 13:13:34 +08:00
multirotor_motor_limits only publish for MC
This commit is contained in:
committed by
Nuno Marques
parent
9cacd3f994
commit
26f00609ac
@@ -377,9 +377,7 @@ void task_main(int argc, char *argv[])
|
||||
|
||||
if (_mixers != nullptr) {
|
||||
/* do mixing */
|
||||
_outputs.noutputs = _mixers->mix(_outputs.output,
|
||||
4,
|
||||
NULL);
|
||||
_outputs.noutputs = _mixers->mix(_outputs.output, 4);
|
||||
}
|
||||
|
||||
// Set last throttle for battery calculations
|
||||
|
||||
@@ -337,9 +337,7 @@ void task_main(int argc, char *argv[])
|
||||
int16_t motor_rpms[UART_ESC_MAX_MOTORS];
|
||||
|
||||
if (_armed.armed) {
|
||||
_outputs.noutputs = mixer->mix(&_outputs.output[0],
|
||||
actuator_controls_s::NUM_ACTUATOR_CONTROLS,
|
||||
NULL);
|
||||
_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
|
||||
if (_outputs.noutputs > UART_ESC_MAX_MOTORS) {
|
||||
|
||||
Reference in New Issue
Block a user