And yet another release. It contains many changes in the FOC code. Also I configured the CAN interface for automatic retransmission which makes it more reliable in large CAN networks. On the downside this made it impossible to view messages on my Analog Discovery as it continuously repeated the very first message.
Detecting rotor direction in encoder module/resolver mode
Using direction information to trigger regen with correct polarity
Turned on CAN automatic retransmission (This may cause problems when debugging CAN but solves problems when on a larger CAN network)- Calculating frequency less often but more accurate
Removed unused parameters in FOC implementation
Added parameter "dmargin" that configures how much margin there is for q current at full amplitude