fix(kobling): stoppedAway logger afstanden til markøren; flow prøver én gang mere at hente vognen efter stoppedAway; puljens skyld-regel matcher årsagen med afstand (v1.56.1.0)

This commit is contained in:
2026-09-29 14:54:38 +02:00
parent 3e7e3d588e
commit be11283ba7
7 changed files with 25 additions and 4 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ function ADHitch.step(job, state, dt, succeeded)
elseif ADHitch.hasArrived(state) then
job.state = "acting"
elseif state.distance > arriveDistanceOf(state) and (job.seenActive or job.elapsed >= ADHitch.START_GRACE_MS) then
job.state, job.reason = "failed", "stoppedAway"
job.state, job.reason = "failed", string.format("stoppedAway (%.0f m fra markøren)", state.distance)
end
elseif job.state == "acting" then
if succeeded then