fix(bredde): spreder/sprøjte under 1,5 m målt -> spray-typens faste bredde for rollens vare (K105) (v1.62.241)

This commit is contained in:
2026-10-16 02:38:43 +02:00
parent 224ab8f0f3
commit 2145514878
5 changed files with 60 additions and 6 deletions
+1 -1
View File
@@ -2200,7 +2200,7 @@ function ADFieldWork.follow(adEnv, assignment)
local okVar, errVar = pcall(ADCpBridge.setVariableWidth, vehicle)
if not okVar then Logging.warning("ADSmartPickup: bredde: %s", tostring(errVar)) end
pcall(ADHitch.foldForTransport, vehicle)
local width = ADCpBridge.getWorkWidth(vehicle)
local width = ADCpBridge.getWorkWidth(vehicle, assignment.role)
-- skærebord på transporthjul bag mejetærskeren: arbejdsbredden måles først, når det sidder foran
if assignment.headerSwap ~= nil and (width or 0) < ADFieldModel.MIN_WORK_WIDTH then width = assignment.width end
local okWidth, widthReason, widthArgs = ADFieldModel.checkWidth(assignment.role, width, ADFieldModel.requiredWidth(field, assignment.role))