Jump to content




Moving GPS tower


  • You cannot reply to this topic
1 reply to this topic

#1 Termanater13

  • Members
  • 64 posts

Posted 13 September 2012 - 03: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.

#2 BigSHinyToys

  • Members
  • 1,001 posts

Posted 13 September 2012 - 04: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users