fix: bak fri af frontredskab ved alle Kør til-ture, også Stop alt og parkér (v1.62.77)

This commit is contained in:
2026-10-08 09:37:26 +02:00
parent 9cb8bdd075
commit 1c33977ce8
4 changed files with 7 additions and 10 deletions
+5
View File
@@ -129,6 +129,11 @@ local function startAd(adEnv, vehicle, mode, firstId, secondId, fillType)
vehicle:startAutoDrive()
end
wake(vehicle, true)
-- "Kør til" med et løst frontredskab lige foran (fx lige sat af ved "P Front Mower"): bak fri først (8/10)
if mode == adEnv.AutoDrive.MODE_DRIVETO and ADHitchCreep ~= nil and ADHitchCreep.backOffIfBlocked ~= nil then
local ok, err = pcall(ADHitchCreep.backOffIfBlocked, adEnv, vehicle)
if not ok then Logging.warning("ADSmartPickup: bak fri af frontredskab: %s", tostring(err)) end
end
end
ADFieldWork.startAd = startAd