Skip to content

Commit

Permalink
Implement lowering fix for the Ventor
Browse files Browse the repository at this point in the history
... and all vehicles with implements way out on the front
where the front marker distance is over 5 meters.

#237
  • Loading branch information
pvaiko committed Jan 2, 2022
1 parent e7e89e8 commit 8aa6168
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ai/turns/TurnManeuver.lua
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ function AnalyticTurnManeuver:init(vehicle, turnContext, vehicleDirectionNode, t
if distanceToFieldEdge < spaceNeededOnFieldForTurn then
self.course = self:moveCourseBack(self.course, spaceNeededOnFieldForTurn - distanceToFieldEdge)
end
self.course:setTurnEndForLastWaypoints(5)
self.course:setTurnEndForLastWaypoints(math.max(turnContext.frontMarkerDistance + 2, 5))
end

---@class DubinsTurnManeuver : AnalyticTurnManeuver
Expand Down

0 comments on commit 8aa6168

Please sign in to comment.