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-12-21T19:25:56Z
by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos