This patch fixes the pwm-control example. Before this commit, the PWM outputs were constantly low. Now, the PWM outputs initialize to the 50% duty cycle. This duty cycle correlates to 0% throttle for OneShot125.
Set motor B to 50% throttle:
python3 host/esc-throttle.py /dev/tty.usbmodem62987801 B 50
Observe a faster duty cycle:
Root cause is down in the PWM driver. See here for details and a fix. We can revert this commit when the bug is fixed in a future HAL release.
This patch fixes the
pwm-control
example. Before this commit, the PWM outputs were constantly low. Now, the PWM outputs initialize to the 50% duty cycle. This duty cycle correlates to 0% throttle for OneShot125.Set motor B to 50% throttle:
Observe a faster duty cycle:
Root cause is down in the PWM driver. See here for details and a fix. We can revert this commit when the bug is fixed in a future HAL release.
See #42 for the initial report.