Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS will be completely phased out by mid-2025. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit 5cd6f99e authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

allow P3 and P4 EM to propell/recuperate during braking if the ICE is off (to keep the ICE off)

parent 5d85a7fd
No related branches found
No related tags found
No related merge requests found
......@@ -676,7 +676,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
}
}
if (ElectricMotorCanPropellDuringTractionInterruption && allowIceOff && DataBus.DriverInfo.DrivingAction != DrivingAction.Brake) {
if (ElectricMotorCanPropellDuringTractionInterruption && allowIceOff && (DataBus.DriverInfo.DrivingAction != DrivingAction.Brake || !DataBus.EngineInfo.EngineOn)) {
// this means that the EM is between wheels and transmission
// search EM Torque that results in 0 torque at ICE out
try {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment