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 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
Branches
Tags
No related merge requests found
...@@ -211,7 +211,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl ...@@ -211,7 +211,10 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
var retVal = NextComponent.Request(absTime, ds, CurrentState.VehicleTargetSpeed, CurrentState.Gradient); var retVal = NextComponent.Request(absTime, ds, CurrentState.VehicleTargetSpeed, CurrentState.Gradient);
retVal.Switch() retVal.Switch()
.Case<ResponseFailTimeInterval>( .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; return retVal;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment