Add rounding up at the CS's end if difference is beyond accuracy level
parent
442a342e84
commit
395b7eb11c
|
@ -99,6 +99,13 @@ function calculateMinimumRunningTime!(CSs::Vector{Dict}, settings::Settings, tra
|
||||||
#else
|
#else
|
||||||
# error()
|
# error()
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if CS[:s_exit] - drivingCourse[end][:s] < 1/10^(settings.approxLevel)
|
||||||
|
drivingCourse[end][:s] = CS[:s_exit] # round s up to CS[:s_exit]
|
||||||
|
|
||||||
|
# set state flag
|
||||||
|
stateFlags[:endOfCSReached] = true
|
||||||
|
end
|
||||||
end
|
end
|
||||||
#if s == s_exit
|
#if s == s_exit
|
||||||
# halt
|
# halt
|
||||||
|
|
Loading…
Reference in New Issue