Skip to content

Commit 4229474

Browse files
author
Peter Vaiko
committed
fix: harvester headland turn tuning
#853
1 parent 326aa50 commit 4229474

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/ai/turns/TurnManeuver.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ function ReedsSheppHeadlandTurnManeuver:init(vehicle, turnContext, vehicleDirect
565565
local path = PathfinderUtil.findAnalyticPath(solver, vehicleDirectionNode, 0, 0,
566566
turnContext.lateWorkStartNode, 0, -turnContext.backMarkerDistance, turningRadius)
567567
self.course = Course.createFromAnalyticPath(vehicle, path, true)
568-
self.course:adjustForTowedImplements(2)
568+
self.course:adjustForTowedImplements(math.max(self:getReversingOffset(vehicle, vehicleDirectionNode) or 2, 2))
569569
if self.course:endsInReverse() then
570570
-- add a little straight section to the end so we have a little buffer and don't end the turn right at
571571
-- the work start

0 commit comments

Comments
 (0)