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 cdfaaa4f authored by Markus Quaritsch's avatar Markus Quaritsch
Browse files

Pull request #161: hybrid strategy: allow disengage if engine speed is below...

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

Merge in VECTO/vecto-dev from VECTO/mq_vecto-dev:bugfix/VECTO-1532-077.2547-p2-crashing-with-600-rpm-idling-speed to develop

* commit '3fe9129c':
  hybrid strategy: allow disengage if engine speed is below idle and no lower gear is available
parents 333c400b 3fe9129c
Branches
Tags
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.
Please register or to comment