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:
Peter van der PerkandAndre Heinemans authored and Ramon Roche committed 2026-11-06 07:32:53 -08:00
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);
}
}
}