relative-gps coord system

This commit is contained in:
kepler155c@gmail.com
2017-05-24 19:48:48 -04:00
parent 64146f8625
commit e6ee432997
11 changed files with 62 additions and 57 deletions

View File

@@ -31,13 +31,13 @@ function GPS.getPoint(timeout, debug)
return pt
end
function GPS.getHeading()
function GPS.getHeading(timeout)
if not turtle then
return
end
local apt = GPS.locate()
local apt = GPS.locate(timeout)
if not apt then
return
end
@@ -67,8 +67,8 @@ function GPS.getHeading()
return 3
end
function GPS.getPointAndHeading()
local heading = GPS.getHeading()
function GPS.getPointAndHeading(timeout)
local heading = GPS.getHeading(timeout)
if heading then
local pt = GPS.getPoint()
if pt then