Skip to content

Commit 61b0031

Browse files
author
Peter Vaiko
committed
fix: disable pocket config
#786
1 parent 307c510 commit 61b0031

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

config/VehicleConfigurations.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,13 @@ You can define the following custom settings:
163163
Forced tip side index for unloading. For now only for an auger wagon.
164164
As an example the Hawe SUW 5000 has two tipside, but only the one with the pipe is needed.
165165
166+
- disablePocket: boolean
167+
Disables creating a pocket for headland turns. Some harvesters, like mostly potato and other root vegetable
168+
harvesters, are not good at making a pocket at the headland corner as they are very long but have a small
169+
working width. We automatically try to disable pocket for most of the root vegetable harvesters, but some,
170+
like the Oxbo, are not detected correctly. This setting can be used to disable the pocket creation for these
171+
harvesters.
172+
166173
-->
167174
<VehicleConfigurations>
168175
<Configurations>

scripts/ai/strategies/AIDriveStrategyCombineCourse.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1416,7 +1416,8 @@ function AIDriveStrategyCombineCourse:startTurn(ix)
14161416
self:debug('Headland turn but this a connecting track, use normal turn maneuvers.')
14171417
AIDriveStrategyFieldWorkCourse.startTurn(self, ix)
14181418
elseif self.course:isOnOutermostHeadland(ix) and self:isTurnOnFieldActive() and
1419-
not self.combineController:isRootVegetableHarvester()then
1419+
not self.combineController:isRootVegetableHarvester() and
1420+
not g_vehicleConfigurations:getRecursively(self.vehicle, 'disablePocket') then
14201421
self:debug('Creating a pocket in the corner so the combine stays on the field during the turn')
14211422
self.aiTurn = CombinePocketHeadlandTurn(self.vehicle, self, self.ppc, self.proximityController, self.turnContext,
14221423
self.course, self:getWorkWidth())

0 commit comments

Comments
 (0)