Skip to content

Commit

Permalink
Adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
Tensuko committed Oct 16, 2024
1 parent ca2a36b commit 67d7739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/ai/AIDriveStrategyCombineCourse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.9 * AIUtil.getVehicleAndImplementsTotalLength(self.vehicle), 20)
self.pocketReverseDistance = math.max(1.7 * AIUtil.getVehicleAndImplementsTotalLength(self.vehicle), 32)
-- register ourselves at our boss
-- TODO_22 g_combineUnloadManager:addCombineToList(self.vehicle, self)
self.waitingForUnloaderAtEndOfRow = CpTemporaryObject()
Expand Down Expand Up @@ -504,7 +504,7 @@ function AIDriveStrategyCombineCourse:onWaypointPassed(ix, course)
self.unloadState == self.states.MAKING_POCKET and
self.unloadInPocketReferenceIx then
local _, _, dz = self.course:getWaypointLocalPosition(self.vehicle:getAIDirectionNode(), self.unloadInPocketReferenceIx)
if dz < 10 then
if dz < 15 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
Expand Down

0 comments on commit 67d7739

Please sign in to comment.