Skip to content

Commit 6b18323

Browse files
author
Peter Vaiko
committed
fix: stuck field detection message
#925
1 parent 84bfc26 commit 6b18323

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

scripts/ai/strategies/AIDriveStrategyCombineCourse.lua

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2210,8 +2210,9 @@ function AIDriveStrategyCombineCourse:startFieldBoundaryDetection()
22102210
-- in some rare cases, for instance when using field margin, the start waypoint may be outside
22112211
-- of the field, and thus the detection won't work.
22122212
local x, _, z = self.fieldWorkCourse:getWaypointPosition(self.fieldWorkCourse:getCurrentWaypointIx())
2213-
-- no callback, waitForFieldBoundary() will take care of the result
2214-
self.vehicle:cpDetectFieldBoundary(x, z)
2213+
self.vehicle:cpDetectFieldBoundary(x, z, self, function(self)
2214+
self:clearInfoText(InfoTextManager.WAITING_FOR_FIELD_BOUNDARY_DETECTION)
2215+
end)
22152216
else
22162217
self:debug("Field boundary detection already running.")
22172218
end

0 commit comments

Comments
 (0)