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

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

hybrid strategy: allow disengage if engine speed is below idle and no lower gear is available

parent 333c400b
No related branches found
No related tags found
No related merge requests found
......@@ -1081,6 +1081,16 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
} while (GearList.HasPredecessor(nextGear) && firstResponse == null);
}
if (nextGear.Equals(GearList.First()) && engineSpeedTooLow) {
// disengage gearbox...
var response = ResponseEmOff;
response.Gear = new GearshiftPosition(0);
response.Setting.GearboxEngaged = false;
response.Setting.GearboxInNeutral = true;
eval.Add(response);
return;
}
if (DataBus.GearboxInfo.GearboxType.AutomaticTransmission() && firstResponse == null && nextGear.Equals(GearList.First())) {
var downshift = ResponseEmOff;
downshift.Gear = nextGear;
......
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