Skip to content
This repository has been archived by the owner on May 23, 2023. It is now read-only.

Commit

Permalink
6.02.00079 Towed implement wide turn fix
Browse files Browse the repository at this point in the history
Wide turn courses ended beyond the start of the next row so
towed implements did not have a chance to align with the row.

Changed wide turns to end before the tractor reaches the
next row.

Fixes #6330, was introduced by the improvement for #6034.
  • Loading branch information
pvaiko committed Nov 18, 2020
1 parent 63e2357 commit 51f42ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="47">
<version>6.02.00078</version>
<version>6.02.00079</version>
<author><![CDATA[Courseplay.devTeam]]></author>
<title><!-- en=English de=German fr=French es=Spanish ru=Russian pl=Polish it=Italian br=Brazilian-Portuguese cs=Chinese(Simplified) ct=Chinese(Traditional) cz=Czech nl=Netherlands hu=Hungary jp=Japanese kr=Korean pt=Portuguese ro=Romanian tr=Turkish -->
<en>CoursePlay SIX</en>
Expand Down
6 changes: 5 additions & 1 deletion turn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2259,7 +2259,11 @@ function TurnContext:getTurnEndNodeAndOffsets()
-- on the work start node so by the time the implement reaches it, it is also aligned
turnEndNode = self.workStartNode
startOffset = 0
goalOffset = self.turnEndForwardOffset
-- vehicle is about frontMarkerDistance before the work end when finishing the turn, giving enough time
-- for the implement to align
-- TODO: this isn't exact science here, as the distance we need to straighten out the implement is rather
-- a function of the radius, the starting angle and probably the towbar length.
goalOffset = - self.turnEndForwardOffset
end
return turnEndNode, startOffset, goalOffset
end
Expand Down

0 comments on commit 51f42ed

Please sign in to comment.