Skip to content

Commit e002d0a

Browse files
committed
Another margin adjustment for high dump shovels
1 parent 12fb80d commit e002d0a

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

scripts/ai/controllers/ShovelController.lua

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,6 @@ function ShovelController:isShovelOverTrailer(refNode, margin)
156156
local _, _, distShovelToRoot = localToLocal(node, self.implement.rootVehicle:getAIDirectionNode(), 0, 0, 0)
157157
local _, _, distTrailerToRoot = localToLocal(refNode, self.implement.rootVehicle:getAIDirectionNode(), 0, 0, 0)
158158
margin = margin or 0
159-
if self:isHighDumpShovel() then
160-
margin = margin + 0.5
161-
end
162159
return ( distTrailerToRoot - distShovelToRoot ) < margin
163160
end
164161

scripts/ai/strategies/AIDriveStrategyShovelSiloLoader.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ function AIDriveStrategyShovelSiloLoader:getDriveData(dt, vX, vY, vZ)
361361
--- as the high dump offset might not work for
362362
--- unloading of the complete shovel.
363363
if self.shovelController:isShovelOverTrailer(
364-
self.targetTrailer.exactFillRootNode, 0) then
364+
self.targetTrailer.exactFillRootNode, -0.5) then
365365

366366
self:setMaxSpeed(0)
367367
end

0 commit comments

Comments
 (0)