hoverboard-firmware-hack-FOC
hoverboard-firmware-hack-FOC copied to clipboard
VARIANT_PWM comments in config.h
Variant
PWM
Control type
FOC
Control mode
Speed
What is the bug and how to reproduce it ?
Is the comment outdated?
https://github.com/EFeru/hoverboard-firmware-hack-FOC/blob/4b16b647716ddc7ae03b0674b3b83bf304642c8f/Inc/config.h#L419
The code has CONFIG_PWM_RIGHT as the default, however the right cable appears to be PB10/PB11 and not PA2/PA3 as the comment indicates.
Later on if CONFIG_PWM_RIGHT is defined then it sets the debug serial to USART2, which again would be consistent with PB10/PB11 actually being the PWM inputs for the default setting.