Skip to content

Commit

Permalink
Merge pull request #2792 from Courseplay/2788-bug_sp-penultimate-poin…
Browse files Browse the repository at this point in the history
…t-incorrect-from-ad-to-cp-first-wp-in-reverse

fix: starting at first waypoint
  • Loading branch information
Tensuko authored Sep 22, 2023
2 parents 3d49ec3 + dbbd401 commit 7f764c8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/ai/AIDriveStrategyDriveToFieldWorkStart.lua
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ function AIDriveStrategyDriveToFieldWorkStart:onPathfindingDoneToCourseStart(pat
self:debug('Pathfinding to start fieldwork finished with %d waypoints (%d ms)',
#path, g_currentMission.time - (self.pathfindingStartedAt or 0))
courseToStart = Course(self.vehicle, CourseGenerator.pointsToXzInPlace(path), true)
-- make sure the course extends to the first waypoint
courseToStart:appendWaypoints({fieldWorkCourse:getWaypoint(ix)})
courseToStart:adjustForTowedImplements(2)
else
self:debug('Pathfinding to start fieldwork failed, using alignment course instead')
Expand Down

0 comments on commit 7f764c8

Please sign in to comment.