64 posts
Posted 13 September 2012 - 04:28 AM
I had a Idea for a Moving GPS tower that will work with a Red power quarry to determin how far to dig. I now the X znd Z will be inaccurit but any idea how it will effect the Y. this would be only ussfull if you have to moove the quarry up and down alot.
992 posts
Posted 13 September 2012 - 05:02 AM
all turtle functions return true if it happened and false if it failed example
if turtle.forward() then
print("turtle moved forward")
else
print("turtle didnt move")
end
this can allow the turtle to keep track of its own position example.
local posX,posY,posZ = 0,0,0
local function goup()
if turtle.up() then
posZ = posZ + 1 -- you can use Y if you like it better
end
end
making a function like that for each of the turtle moment's would allow the turtle to know exactly where it is. making a modified copy of the gps program you could change the variable it use for its location to the variables from the turtle move functions. put the turtle move functions in to modified gps program. not create another function to do the movement of the frame quarry and run the two in parallels. you ill have just created a portable gps tower.