fix: bad check on robotState.z
This commit is contained in:
parent
4cfee8d445
commit
defb4e3e3f
@ -166,7 +166,7 @@ local function mineProcedure()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- 2. Check
|
-- 2. Check
|
||||||
if robotState.x == MAX_X and robotState.y == MAX_Y and robotState.z == MAX_Z then
|
if robotState.x == MAX_X and robotState.y == MAX_Y and robotState.z == 0 then
|
||||||
miner.finished = true
|
miner.finished = true
|
||||||
miner.mission = 'return-home'
|
miner.mission = 'return-home'
|
||||||
miner.lastPositionState = miner.robot.getState()
|
miner.lastPositionState = miner.robot.getState()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user