Regen ramp question

Introduction and miscellaneous that we haven't created categories for, yet
Post Reply
FFMan
Posts: 321
Joined: Mon Jul 25, 2022 7:59 pm
Location: Bicester, Oxfordshire
Has thanked: 8 times
Been thanked: 46 times

Regen ramp question

Post by FFMan »

so from the param explanation list i see:-

brknompedal / brakeregen % -100 0 -50 Foot on brake pedal regen torque
regenramp %/10ms 0.1 100 100 Ramp speed when entering regen. E.g. when you set brkmax to 30% and regenramp to 1, it will take 300ms to arrive at brake force of -60%
brknom / regentravel % 0 100 30 Range of throttle pedal travel allocated to regen
brkmax / offthrotregen % 0 100 30 Foot-off throttle regen torque
brkcruise / cruiseregen % -100 0 -30 Maximum regen of cruise control

I have offthrotreg set to 0, as i have a gearbox and want to be able to unload the gears to change gear.

the explanation for regenramp implies it is reliant on offthrotregen to work, and this appears to be what i experience i.e. no ramping, the regen appears to be on or off, ideally it would ramp to brakeregen (not offthrotregen) progressively when i hit the brakes. Just trying to tune in smooth regen as going to can control regen might not be possible if i want to keep physical throttle pot (and I have good reasons to want to do this).

thanks
E46 touring
Phev rear motor, OEM inverter cabin heater and charger
BMW 9kwh & 12kwh packs
User avatar
johu
Site Admin
Posts: 5791
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 157 times
Been thanked: 1025 times
Contact:

Re: Regen ramp question

Post by johu »

It's indeed supposed to ramp to brakeregen, not step there.
Here https://github.com/jsphuebner/stm32-sin ... l.cpp#L161 you see it gets the input from the user, including the brake input. With the brake pedal pressed and regenpreset=100 (the default, only writable via CAN) this would return brakeregen
In line #176 this goes through the ramp.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply