From bbb9d5728d4d3f5d700ebc24e7e32c71ffcaef3c Mon Sep 17 00:00:00 2001 From: Tensuko Date: Sat, 2 Nov 2024 21:53:18 +0100 Subject: [PATCH] so far best overall pockets --- scripts/ai/AIDriveStrategyCombineCourse.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ai/AIDriveStrategyCombineCourse.lua b/scripts/ai/AIDriveStrategyCombineCourse.lua index eba484bb6..11270940f 100644 --- a/scripts/ai/AIDriveStrategyCombineCourse.lua +++ b/scripts/ai/AIDriveStrategyCombineCourse.lua @@ -142,7 +142,7 @@ function AIDriveStrategyCombineCourse:setAllStaticParameters() self.pullBackDistanceEnd = self.pullBackDistanceStart + 5 -- when making a pocket, how far to back up before changing to forward -- for very long vehicles, like potato/sugar beet harvesters the 20 meters may not be enough - self.pocketReverseDistance = math.max(1.7 * AIUtil.getVehicleAndImplementsTotalLength(self.vehicle), 32) + self.pocketReverseDistance = math.max(2.5 * AIUtil.getVehicleAndImplementsTotalLength(self.vehicle), 32) -- register ourselves at our boss -- TODO_22 g_combineUnloadManager:addCombineToList(self.vehicle, self) self.waitingForUnloaderAtEndOfRow = CpTemporaryObject() @@ -503,7 +503,7 @@ function AIDriveStrategyCombineCourse:onWaypointPassed(ix, course) if self.state == self.states.UNLOADING_ON_FIELD and self.unloadState == self.states.MAKING_POCKET and self.unloadInPocketReferenceIx then - if self.course:getDistanceBetweenVehicleAndWaypoint(self.vehicle, self.unloadInPocketReferenceIx) < 15 then + if self.course:getDistanceBetweenVehicleAndWaypoint(self.vehicle, self.unloadInPocketReferenceIx) < 17 then -- we are close enough to the reference waypoint, so stop making the pocket and wait for unload. self:debug('Waiting for unload in the pocket') self.unloadState = self.states.WAITING_FOR_UNLOAD_IN_POCKET