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 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
Branches
Tags
No related merge requests found
...@@ -1081,6 +1081,16 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies ...@@ -1081,6 +1081,16 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
} while (GearList.HasPredecessor(nextGear) && firstResponse == null); } 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())) { if (DataBus.GearboxInfo.GearboxType.AutomaticTransmission() && firstResponse == null && nextGear.Equals(GearList.First())) {
var downshift = ResponseEmOff; var downshift = ResponseEmOff;
downshift.Gear = nextGear; downshift.Gear = nextGear;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment