Update gps.lua

This commit is contained in:
Ale2610 2015-08-29 18:45:37 +02:00
parent 1099666012
commit 5cdfc0f288

View file

@ -1,17 +1,5 @@
term.setBackgroundColor(colors.white)
term.clear()
term.setCursorPos(1,1)
term.setTextColor(colors.black)
print("Loading...")
while true do
term.clear()
x, y, z = gps.locate(0)
term.setCursorPos(1,3)
if not x then
x, y, z = "?", "?", "?"
end
print(" X: "..x)
print(" Y: "..y)
print(" Z: "..z)
sleep(1)
local x, y, z = gps.locate(0)
if not x then
x, y, z = "?", "?", "?"
end
sPhone.winOk("X Y Z", x.." "..y.." "..z)