fix: last bug with robotState.z

This commit is contained in:
Guillaume ARM 2024-05-08 22:34:26 +02:00
parent defb4e3e3f
commit a923fe846d

View File

@ -171,7 +171,7 @@ local function mineProcedure()
miner.mission = 'return-home'
miner.lastPositionState = miner.robot.getState()
print('> Starting return home procedure because mining session is finished...')
elseif robotState.x == MAX_X and robotState.z == MAX_Z then
elseif robotState.x == MAX_X and robotState.z == 0 then
-- this part assume that the size of the mine is even
miner.robot.turnRight()