Skip to content

Commit

Permalink
fix: do not wait for straw swath on headland
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Vaiko committed Dec 7, 2024
1 parent d94eeaf commit ae41558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ai/AIDriveStrategyCombineCourse.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1306,7 +1306,7 @@ function AIDriveStrategyCombineCourse:shouldHoldInTurnManeuver()
local discharging = self:isDischarging() and not self:alwaysNeedsUnloader()
local stillProcessingFruit = self:alwaysNeedsUnloader() and self:isProcessingFruit()
local isFinishingRow = self.aiTurn and self.aiTurn:isFinishingRow()
local waitForStraw = self.combineController:isDroppingStrawSwath() and not isFinishingRow
local waitForStraw = self.combineController:isDroppingStrawSwath() and not isFinishingRow and not self:isOnHeadland()

self:debugSparse('Turn maneuver=> Autoaim: %s, discharging: %s, wait for straw: %s, straw swath active: %s, processing: %s, finishing row: %s',
tostring(self:hasAutoAimPipe()), tostring(discharging), tostring(waitForStraw),
Expand Down

0 comments on commit ae41558

Please sign in to comment.