From 4229474ffc0d51e822fe8e50fa248355c11e9a74 Mon Sep 17 00:00:00 2001 From: Peter Vaiko Date: Fri, 16 May 2025 07:44:00 -0400 Subject: [PATCH] fix: harvester headland turn tuning #853 --- scripts/ai/turns/TurnManeuver.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ai/turns/TurnManeuver.lua b/scripts/ai/turns/TurnManeuver.lua index f10d1344a..c74ce8405 100644 --- a/scripts/ai/turns/TurnManeuver.lua +++ b/scripts/ai/turns/TurnManeuver.lua @@ -565,7 +565,7 @@ function ReedsSheppHeadlandTurnManeuver:init(vehicle, turnContext, vehicleDirect local path = PathfinderUtil.findAnalyticPath(solver, vehicleDirectionNode, 0, 0, turnContext.lateWorkStartNode, 0, -turnContext.backMarkerDistance, turningRadius) self.course = Course.createFromAnalyticPath(vehicle, path, true) - self.course:adjustForTowedImplements(2) + self.course:adjustForTowedImplements(math.max(self:getReversingOffset(vehicle, vehicleDirectionNode) or 2, 2)) if self.course:endsInReverse() then -- add a little straight section to the end so we have a little buffer and don't end the turn right at -- the work start