https://github.com/jsphuebner/stm32-sin ... ag/v5.35.R
- Speed dependent regen pedal travel, use maxregentravelhz
- Bugfix i3 hardware
- Support pin swap (only PWM channels) in sine firmware also
- Improved sampling of analog values (use second ADC)
- Added limiter cruise mode
- Fix terminal problems causing lockup or even watchdog reset
- On Prius inverters ignore break signal when ocurlim==-1
- More reliable pressed throttle detection
- Smoother over temperature derating
- Limit potmax to 3500 to prevent using over range pedal connection
- Add uptime counter, can be used as CAN alive counter
- In SINE firmware filter idc for smoother battery current derating
Supporting pinswap in sine firmware should be a way to prevent having to swap A/B channels mostly on the LDU. Please test
I also introduced a limiter cruise mode that lets you set a maximum rpm over CAN and throttle is cut back when reaching it. Sort of like an early fmax. I have tested this on the desk not in the car, Please test
On Prius2 inverters it is now possible to ignore the fault signal as it causes some spurious shutdowns on some inverters
Temperature derating now starts cutting back 10°C before reaching the limit.
The added uptime counter should allow you to assemble the OI control message (without CRC) with standard CAN mapping (map potnom as TX with offset as pot and pot2 are unmapped at startup)
And finally I've introduced an IIR filter to the idc calculation which should smooth out battery current limiting.
Please test and report