Fix data type of a_phaAdvMax in CAN protocol #19
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix-can-phaadvmax"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Before this,
a_phaAdvMax
was sent over the wire as 1 byte (uint8_t
) but parsed as 2 bytes (uint16_t
). When testing the v1.3 boards, this has lead to unexpectedly high speeds when field weakening in sinusoidal mode.This bug has not caused a problem in the past, possibly because the CAN controller zeroed out the following bytes. We now use a GD32 chip instead of STM32 which may have a slightly different CAN controller. Another possible causes might be a difference in compiler version.