1
0
mirror of https://github.com/kepler155c/opus synced 2025-10-21 18:57:41 +00:00

turtle follow

This commit is contained in:
kepler155c@gmail.com
2019-02-20 08:52:27 -05:00
parent c307f4020c
commit ab4fd29d16
4 changed files with 31 additions and 14 deletions

View File

@@ -1239,8 +1239,8 @@ function turtle.inspectForwardAt(pt) return _actionForwardAt(actionsAt.inspe
function turtle.inspectUpAt(pt) return _actionUpAt(actionsAt.inspect, pt) end
-- [[ GPS ]] --
function turtle.enableGPS(timeout)
local pt = GPS.getPointAndHeading(timeout)
function turtle.enableGPS(timeout, destructive)
local pt = GPS.getPointAndHeading(timeout, destructive)
if pt then
turtle.setPoint(pt, true)
return turtle.point