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

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

fix: if issuing a temporary request to finish gearshift (in case the vehicle...

fix: if issuing a temporary request to finish gearshift (in case the vehicle stopped), re-issue the original request. otherwise the distance of cycle and vehicle diverge!
parent 5bb51524
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var retVal = NextComponent.Request(absTime, ds, CurrentState.VehicleTargetSpeed, CurrentState.Gradient);
retVal.Switch()
.Case<ResponseFailTimeInterval>(
r => { retVal = NextComponent.Request(absTime, r.DeltaT, 0.SI<MeterPerSecond>(), CurrentState.Gradient); });
r => {
retVal = NextComponent.Request(absTime, r.DeltaT, 0.SI<MeterPerSecond>(), CurrentState.Gradient);
retVal = NextComponent.Request(absTime, ds, CurrentState.VehicleTargetSpeed, CurrentState.Gradient);
});
return retVal;
}
......
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