It seems the pesky field weakening/unwanted regen/high speed tripout issues are now solved, good parameter tuning assumed.
I want to stress at this point that I'm not sure whether the rev limiter will limit motor speed in field weakening. Don't rev up the unloaded motor beyond base speed
https://github.com/jsphuebner/stm32-sin ... /v5.20.R-2
Sample parameters for Leaf motor can be found here: viewtopic.php?p=45280#p45280
- Hill hold functionality
- Bidirectional throttle support, throttle sets torque and direction (e.g. for boats)
- Throttle speed mode, throttle sets speed rather than torque (also for boats)
- Regen parameters received hopefully more intuitive names
- Pull down PWM pins already in bootloader when active high PWM selected
- Never run idle speed controller in off mode, caused some issue, don't remember which one
- Less ADC averaging in FOC mode for better transient response
- MTPA motor variables are now parameters
- Field weakening is now based on around limiting PWM amplitude
- Torque command is limited in field weakening mode
- Improved PI controller anti-windup