Skip to content

Commit

Permalink
fix: guaranteed plow rotation after turn
Browse files Browse the repository at this point in the history
  • Loading branch information
pvaiko committed Oct 1, 2024
1 parent 77d2b1c commit d50cab4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/ai/turns/AITurn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,11 @@ end

--- Give back control the the drive strategy
function AITurn:resumeFieldworkAfterTurn(ix)
-- just in case, raise this event so plows are rotated to the working position. Should really never end up
-- here though, as the course should be long enough for the normal turn end processing to be triggered.
self.driveStrategy:raiseControllerEvent(AIDriveStrategyCourse.onTurnEndProgressEvent,
self.turnContext.workStartNode, self.ppc:isReversing(), true, self.turnContext:isLeftTurn())

if self.proximityController then
self.proximityController:unregisterBlockingObjectListener()
end
Expand Down

0 comments on commit d50cab4

Please sign in to comment.