1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-22 11:17:40 +00:00

turtle gps rework

This commit is contained in:
kepler155c@gmail.com
2019-02-22 03:52:47 -05:00
parent fc46239f44
commit 4485a751bd
4 changed files with 6 additions and 65 deletions

View File

@@ -3,7 +3,6 @@ if not _G.turtle then
end
local Pathing = require('pathfind')
local GPS = require('gps')
local Point = require('point')
local synchronized = require('sync').sync
local Util = require('util')
@@ -1241,15 +1240,6 @@ function turtle.inspectDownAt(pt) return _actionDownAt(actionsAt.inspect,
function turtle.inspectForwardAt(pt) return _actionForwardAt(actionsAt.inspect, pt) end
function turtle.inspectUpAt(pt) return _actionUpAt(actionsAt.inspect, pt) end
-- [[ GPS ]] --
function turtle.enableGPS(timeout, destructive)
local pt = GPS.getPointAndHeading(timeout, destructive)
if pt then
turtle.setPoint(pt, true)
return turtle.point
end
end
-- deprecate
function turtle.addFeatures(...)
for _,feature in pairs({ ... }) do