Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

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

handle case with AT transmissions close before stop - shift to tc gear.

parent ce6ef3be
Branches
Tags
No related merge requests found
...@@ -815,10 +815,17 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies ...@@ -815,10 +815,17 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
? Constants.SimulationSettings.ATGearboxDisengageWhenHaltingSpeed ? Constants.SimulationSettings.ATGearboxDisengageWhenHaltingSpeed
: Constants.SimulationSettings.ClutchDisengageWhenHaltingSpeed; : Constants.SimulationSettings.ClutchDisengageWhenHaltingSpeed;
var vehiclespeedBelowThreshold = DataBus.VehicleInfo.VehicleSpeed.IsSmaller(disengageSpeedThreshold); var vehiclespeedBelowThreshold = DataBus.VehicleInfo.VehicleSpeed.IsSmaller(disengageSpeedThreshold);
if ((vehiclespeedBelowThreshold) && emPos == PowertrainPosition.HybridP2) { if ((vehiclespeedBelowThreshold) && (emPos == PowertrainPosition.HybridP2 || emPos == PowertrainPosition.HybridP1)) {
if (DataBus.GearboxInfo.GearboxType.AutomaticTransmission()) {
var firstgear = ResponseEmOff;
firstgear.Gear = GearList.First();
eval.Add(firstgear);
return;
} else {
eval.Add(ResponseEmOff); eval.Add(ResponseEmOff);
return; return;
} }
}
var nextGear = !DataBus.GearboxInfo.GearEngaged(absTime) var nextGear = !DataBus.GearboxInfo.GearEngaged(absTime)
? new GearshiftPosition(0) ? new GearshiftPosition(0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment