Fix typing error (change time to :time)

master
Max Kannenberg 2022-08-24 10:08:20 +02:00
parent a7fe8db1c2
commit 804f797b08
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ function addCruisingSection!(drivingCourse::Vector{Dict}, stateFlags::Dict, CSs:
drivingCourse[end][:a] = 0.0
# create the next support point
if settings.stepVariable == :distance || settings.stepVariable == time
if settings.stepVariable == :distance || settings.stepVariable == :time
push!(drivingCourse, moveAStep(drivingCourse[end], settings.stepVariable, currentStepSize, csId))
else
push!(drivingCourse, moveAStep(drivingCourse[end], settings.stepVariable, train.length/(10.0^cycle), csId)) # TODO which step size should be used?