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

Commit

Permalink
typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Oct 24, 2021
1 parent a8e994f commit 901b6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AITurn.lua
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@ function CombinePocketHeadlandTurn:generatePocketHeadlandTurn(turnContext)
local turnDiameter = self.vehicle.cp.settings.turnDiameter:get()
local turnRadius = turnDiameter / 2
-- this is how far we have to cut into the next headland (the position where the header will be after the turn)
local workWidth = vehicle.cp.courseGeneratorSettings.workWidth:get()
local workWidth = self.vehicle.cp.courseGeneratorSettings.workWidth:get()
local offset = math.min(turnRadius + turnContext.frontMarkerDistance, workWidth)
local corner = turnContext:createCorner(self.vehicle, turnRadius)
local d = -workWidth / 2 + turnContext.frontMarkerDistance
Expand Down

0 comments on commit 901b6a6

Please sign in to comment.