Skip to content

Commit

Permalink
Stops the driver if no path to the silo is found.
Browse files Browse the repository at this point in the history
  • Loading branch information
schwiti6190 committed Sep 19, 2023
1 parent c22fa6f commit 7e76bc5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions scripts/ai/AIDriveStrategyShovelSiloLoader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -526,10 +526,9 @@ function AIDriveStrategyShovelSiloLoader:onPathfindingDoneToStart(path)
self:startCourse(alignmentCourse, 1)
self:setNewState(self.states.DRIVING_ALIGNMENT_COURSE)
else
local course = self:getRememberedCourseAndIx()
self:debug("No alignment path found, so driving directly to the course!")
self:startCourse(course, 1)
self:setNewState(self.states.DRIVING_INTO_SILO)
self:debug("No path to the silo found!")
self.vehicle:stopCurrentAIJob(AIMessageCpErrorNoPathFound.new())
--- TODO: Might need to consider a retry to another silo lane
end
end

Expand Down

0 comments on commit 7e76bc5

Please sign in to comment.