Decided to make another release.
I have added the throtmin parameter so that regen can be limited temporarily from outside. I use this for antilock braking and charge power limiting.
There are some improvements and cleanup in FOC code:
- I have removed the bus voltage limiting field weakening controller, so now there is only one fwkp parameter left
- I made curki frequency dependent by the curkifrqgain parameter.
So integral gain increases with speed. This ensures good regulation in upper rev range while not being jumpy at low speeds.
https://github.com/jsphuebner/stm32-sin ... /v4.73.R-2
Nissan Leaf parameters here: https://openinverter.org/wiki/Configura ... Leaf_Motor
Inverter Firmware v4.73.R
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Inverter Firmware v4.73.R
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
-
arber333
- Posts: 3795
- Joined: Mon Dec 24, 2018 1:37 pm
- Location: Slovenia
- Has thanked: 166 times
- Been thanked: 411 times
- Contact:
Re: Inverter Firmware v4.73.R
Compiled code .bin and .hex for the uninitiated please.
EDIT: Got it here: https://github.com/jsphuebner/stm32-sin ... /v4.73.R-2
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.73.R
Oh, wrong link, corrected 
Erm, could you do more precise quoting in general
Like only the relevant line
Erm, could you do more precise quoting in general
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.73.R
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- ManuFromParis
- Posts: 34
- Joined: Sat Feb 15, 2020 6:34 pm
- Location: Near Paris
- Been thanked: 1 time
Re: Inverter Firmware v4.73.R
Hello Johannes,
Thanks for the update.
I've searched the code and documentation to understand how the parameters drive the Regen Algorythm, but could find out how it works.
Could you point me out to the documentation, if any, or to the portion of code that handles Regen ?
thanks !
Emmanuel
Thanks for the update.
I've searched the code and documentation to understand how the parameters drive the Regen Algorythm, but could find out how it works.
Could you point me out to the documentation, if any, or to the portion of code that handles Regen ?
thanks !
Emmanuel
911 SC with Tesla SDU & i3 pack
- johu
- Site Admin
- Posts: 7182
- Joined: Thu Nov 08, 2018 10:52 pm
- Location: Kassel/Germany
- Has thanked: 552 times
- Been thanked: 1913 times
- Contact:
Re: Inverter Firmware v4.73.R
There is no such thing as "regen" code. It is naturally part of the control algorithm, just with negative slip (sine variant) or negative iq (FOC variant). In throttle.cpp you'll find how regen is controlled via throttle pedal and brake pedal.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
- ManuFromParis
- Posts: 34
- Joined: Sat Feb 15, 2020 6:34 pm
- Location: Near Paris
- Been thanked: 1 time