Skip to content

Commit 29d9219

Browse files
authored
Merge pull request #766 from Courseplay/731-ccw-combine-turn
fix: CCW combine turns
2 parents fd65d50 + c20b05b commit 29d9219

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/ai/turns/AITurn.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ function CombineHeadlandTurn:turn(dt)
490490
maxSpeed = self:getReverseSpeed()
491491
moveForwards = false
492492
gx, gz = self:getGoalPointForTurn(moveForwards, nil)
493-
if dx < 0.2 then
493+
if math.abs(dx) < 0.2 then
494494
self.state = self.states.REVERSE_ARC
495495
self:debug('Combine headland turn start reversing arc')
496496
end

0 commit comments

Comments
 (0)