https://github.com/jsphuebner/stm32-sin ... ag/v4.94.R
- Preparation for boot loader pin initialization
- Added Toyota motor temperature sensor
- Added tripmode "AutoResume" that will restart inverter 0.5 seconds after it tripped - do not use with FOC code!
- Ramping up heat dissipation current to avoid controller overshoot
- Improved initial current sensor offset calibration
- Fixed spurious current offset warnings - again
- Allowing 0 potmin/max again, ADC reading cannot drop below 0
- Removed high rpm regen limit
- it was a work around against high rpm trips which can be fixed with 0.3 regenramp
- Changed injected sequence to sample first resolver channel twice instead of dummy pin - better noise behaviour
- Do not update velocity info in single channel mode when difference in pulse length is > factor 2
- Implement chargemax again
- Fixed cruise control issue when off pedal regen is turned off
- Fixed division by 0 error
To interface to the Prius motor temperature sensor, you have to make slight changes to the board: viewtopic.php?f=14&t=1087 . Thanks bexander for this contribution!
I added the "AutoResume" mode because Polo has become overly sensitive to over current or it detects over current when there isn't any. Maybe the shield from the current sensor came off (it was soldered) or I'm having a moisture problem. Anyway, the way it works, as soon as the inverter trip it will wait at least 0.5s and then, once you come OFF the throttle it automatically restarts. Also in this mode the DC switch is no longer opened when tripping.
Use this mode with care and do not use it with FOC code as it cannot start into a spinning motor and the inverter would trip again and again - unhealthy!