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

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

bugfix distance-based driving cycle: stopping-time has been ignored after refactoring

parent f00022e7
No related branches found
No related tags found
No related merge requests found
......@@ -262,7 +262,8 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Impl
// separately test for equality and greater than to have tolerance for equality comparison
if (CycleIntervalIterator.LeftSample.StoppingTime.IsEqual(0)) {
while (CurrentState.Distance.IsGreaterOrEqual(CycleIntervalIterator.RightSample.Distance) &&
while (CycleIntervalIterator.LeftSample.StoppingTime.IsEqual(0) &&
CurrentState.Distance.IsGreaterOrEqual(CycleIntervalIterator.RightSample.Distance) &&
!CycleIntervalIterator.LastEntry) {
// we have reached the end of the current interval in the cycle, move on...
CycleIntervalIterator.MoveNext();
......
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