fix(udsendelse): fælles udsendelsesport for Start alle, markarbejde, marksiloer og flow-genstart; én indstilling under Indstillinger (v1.62.237)

This commit is contained in:
2026-10-16 02:01:12 +02:00
parent 7f063cbb06
commit fbc0b448f5
13 changed files with 97 additions and 69 deletions
+8 -6
View File
@@ -1690,24 +1690,26 @@ function ADSmartPickup:update(dt)
if ADOutbound ~= nil and ADOutbound.releaseInactive ~= nil then
pcall(ADOutbound.releaseInactive)
end
if ADLaunchGate ~= nil then ADLaunchGate.tick(dt) end
if ADRunsController ~= nil and ADRunsController.processStartQueue ~= nil then
pcall(ADRunsController.processStartQueue, getAutoDriveEnv(), dt)
end
if ADRunsController ~= nil and ADRunsController.applyVehicleNamesThrottled ~= nil then
pcall(ADRunsController.applyVehicleNamesThrottled, getAutoDriveEnv(), dt)
end
if ADFieldJobs ~= nil then
local okFields, errFields = pcall(ADFieldJobs.tick, getAutoDriveEnv(), dt)
if not okFields then
Logging.warning(ADSmartPickup.LOG_PREFIX .. "markarbejde fejlede: %s", tostring(errFields))
end
end
-- marksiloer før markarbejdet: venter de på udsendelsesporten, får de den først (markarbejdet tjekker hvert sekund)
if ADFieldSilos ~= nil then
local okSilos, errSilos = pcall(ADFieldSilos.tick, getAutoDriveEnv(), dt)
if not okSilos then
Logging.warning(ADSmartPickup.LOG_PREFIX .. "marksilo-flow fejlede: %s", tostring(errSilos))
end
end
if ADFieldJobs ~= nil then
local okFields, errFields = pcall(ADFieldJobs.tick, getAutoDriveEnv(), dt)
if not okFields then
Logging.warning(ADSmartPickup.LOG_PREFIX .. "markarbejde fejlede: %s", tostring(errFields))
end
end
if ADChain ~= nil then
local okChain, errChain = pcall(ADChain.tick, getAutoDriveEnv(), dt)
if not okChain then