mirror of
https://github.com/kepler155c/opus
synced 2025-10-22 11:17:40 +00:00
turtle gps rework
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user