fix: last bug with robotState.z
This commit is contained in:
parent
defb4e3e3f
commit
a923fe846d
@ -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()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user