mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-06 16:49:51 +08:00
Use the right constraint for the output mixer; we might end up wanting more virtual control channels.
This commit is contained in:
+1
-3
@@ -49,7 +49,6 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include <drivers/drv_pwm_output.h>
|
||||
#include <drivers/drv_hrt.h>
|
||||
|
||||
#include <systemlib/ppm_decode.h>
|
||||
|
||||
@@ -125,12 +124,11 @@ mixer_tick(void)
|
||||
/* we have no control input */
|
||||
control_count = 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Tickle each mixer, if we have control data.
|
||||
*/
|
||||
if (control_count > 0) {
|
||||
for (i = 0; i < PX4IO_OUTPUT_CHANNELS; i++) {
|
||||
for (i = 0; i < IO_SERVO_COUNT; i++) {
|
||||
mixer_update(i, control_values, control_count);
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user