mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-29 03:30:48 +08:00
fix(io_bypass_control): pass a channel mask to up_pwm_update
up_pwm_update() takes a channel mask, but the loop passed the channel index: channel 0 never latched and every other channel latched the wrong output. Latch all channels once after the setpoints are written. Co-authored-by: Andre Heinemans <andre.heinemans@nxp.com>
This commit is contained in:
1 parent
071f45d28a
commit
f28b9453ae
1 file changed
+2
-1
@@ -114,8 +114,9 @@ void IOController::Run()
|
||||
(1.0f / (float)(_rate * 2)) * 1000000);
|
||||
|
||||
up_pwm_servo_set(i, setpoint);
|
||||
up_pwm_update(i);
|
||||
}
|
||||
|
||||
up_pwm_update(_pwm_mask);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user