Skip to content

Commit

Permalink
Headland to up/down transition fix #340
Browse files Browse the repository at this point in the history
Vehicles with implements on the front should not miss
(much) when transitioning to the first row from the headland.
  • Loading branch information
pvaiko committed Jan 9, 2022
1 parent 6b86f31 commit 866d40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ai/AIDriveStrategyFieldWorkCourse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ function AIDriveStrategyFieldWorkCourse:checkTransitionFromConnectingTrack(ix, c
if d < 5 * self.turningRadius and firstUpDownWpIx and not self.course:isTurnEndAtIx(firstUpDownWpIx) then
self:debug('End connecting track, start working on up/down rows (waypoint %d) with alignment course if needed.', firstUpDownWpIx)
local alignmentCourse = AlignmentCourse(self.vehicle, self.vehicle:getAIDirectionNode(), self.turningRadius,
course, firstUpDownWpIx, math.min(self.frontMarkerDistance, 0)):getCourse()
course, firstUpDownWpIx, math.min(-self.frontMarkerDistance, 0)):getCourse()
if alignmentCourse then
self:rememberCourse(course, firstUpDownWpIx)
self.ppc:setShortLookaheadDistance()
Expand Down

0 comments on commit 866d40e

Please sign in to comment.