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

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

in case a requestDisengaged (driver model) fails and the gearbox is...

 in case a requestDisengaged (driver model) fails and the gearbox is re-engaged, try a requestEngaged again.
parent 0f40fa15
No related branches found
No related tags found
No related merge requests found
......@@ -431,9 +431,14 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
}
throw new VectoException("HandleRequestEngaged found no operating point.");
} else {
return HandleRequestDisengaged(absTime, ds, gradient, velocity, debug);
}
var response = HandleRequestDisengaged(absTime, ds, gradient, velocity, debug);
if (!(response is ResponseSuccess) && DataBus.ClutchClosed(absTime)) {
response = HandleRequestEngaged(absTime, ds, targetVelocity, gradient, prohibitOverspeed, velocity, debug);
}
return response;
}
private IResponse HandleRequestDisengaged(
......
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