Simple logic to distribute a signal from the driver to the throttle and braking signals.
Throttle signal is always sent to the drive. The brake signal depends on useRecuperation, SoC and speed:
- If useRecuperation is false or SoC is above SoCmax or speed is below vMin, braking signal is sent to the mechanical brakes.
- Otherwise braking energy is recuperated.
Near zero speed, braking has to be done by the mechanical brakes, otherwise the vehicle could accelerate in the opposite direction.
Generated at 2024-11-21T19:25:40Z
by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos