Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit 1fe5b23c authored by Michael KRISPER's avatar Michael KRISPER
Browse files

HybridStrategy: vehicleSpeedBelowThreshold only when we actually brake to a halt

parent a4efd6cd
No related branches found
No related tags found
No related merge requests found
......@@ -1050,7 +1050,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
var emPos = ModelData.ElectricMachinesData.First().Item1;
var disengageSpeedThreshold = ModelData.GearboxData.DisengageWhenHaltingSpeed;
var vehiclespeedBelowThreshold = DataBus.VehicleInfo.VehicleSpeed.IsSmaller(disengageSpeedThreshold);
// hint: only check for halting speed if vehicle is actually braking to halt.
var vehiclespeedBelowThreshold = DataBus.VehicleInfo.VehicleSpeed.IsSmaller(disengageSpeedThreshold)
&& DataBus.DriverInfo.NextBrakeTriggerSpeed.IsEqual(0);
if (ElectricMotorCanPropellDuringTractionInterruption || DataBus.GearboxInfo.GearEngaged(absTime)) {
......
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