Skip to content

Commit 900adcd

Browse files
author
Peter Vaiko
committed
fix: no special handling for root veggie harvesters
#786
1 parent 36e027f commit 900adcd

2 files changed

Lines changed: 0 additions & 21 deletions

File tree

scripts/ai/controllers/CombineController.lua

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,6 @@ function CombineController:isDroppingStrawSwath()
128128
return self.combineSpec.strawPSenabled
129129
end
130130

131-
function CombineController:isRootVegetableHarvester()
132-
for _, fruitTypeIndex in pairs(CpUtil.getAllRootVegetables()) do
133-
local fillUnitIndex = g_fruitTypeManager:getFillTypeIndexByFruitTypeIndex(fruitTypeIndex)
134-
self:debug("check if fruitType %s is supported", g_fillTypeManager:getFillTypeNameByIndex(fillUnitIndex))
135-
for i, _ in ipairs(self.implement:getFillUnits()) do
136-
if self.implement:getFillUnitSupportsFillType(i, fillUnitIndex) then
137-
self:debug('This is a root vegetable harvester.')
138-
return true
139-
end
140-
end
141-
end
142-
return false
143-
end
144-
145131
--- Is this a towed harvester? We don't want these to make combine headland turns (or make pockets?)
146132
function CombineController:isTowed()
147133
return self.isWheeledImplement

scripts/ai/strategies/AIDriveStrategyCombineCourse.lua

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,13 +1412,6 @@ function AIDriveStrategyCombineCourse:startTurn(ix)
14121412
if self.combineController:isTowed() then
14131413
self:debug('Headland turn but this is a towed harvester using normal turn maneuvers.')
14141414
AIDriveStrategyFieldWorkCourse.startTurn(self, ix)
1415-
-- The type of fruit being harvested isn't really the indicator if we can make a headland turn
1416-
-- TODO: either make disabling combine headland turns configurable, or
1417-
-- TODO: decide automatically based on the vehicle's properties, like turn radius, work width, etc.
1418-
-- and disable when such a turn does not make sense for the vehicle.
1419-
elseif self.combineController:isRootVegetableHarvester() then
1420-
self:debug('Headland turn but this harvester uses normal turn maneuvers.')
1421-
AIDriveStrategyFieldWorkCourse.startTurn(self, ix)
14221415
elseif self.course:isOnConnectingPath(ix) then
14231416
self:debug('Headland turn but this a connecting track, use normal turn maneuvers.')
14241417
AIDriveStrategyFieldWorkCourse.startTurn(self, ix)

0 commit comments

Comments
 (0)