Posted 23 April 2017 - 08:02 PM
I've been using the built in gps api to get the locations of my turtles; however, this causes a lot of rednet chatter, with the turtles broadcasting "PING." This interferes with other communications. My goal is to create a new gps system where the turtles simply send "PING" to only the gps host id. I've attempted to go through the math of triangulation but failed. I've looked through the default gps program and I don't see where the function gps.locate() is defined.
If anyone knows where the code that does the triangulation math is, or if anyone knows of code that already does what I'm looking for let me know.
Thank you!
-- Excerpt from the default gps file.
if sCommand == "locate" then
if open() then
gps.locate( 2, true ) -- this is the function I am looking for.
end
elseif ...
If anyone knows where the code that does the triangulation math is, or if anyone knows of code that already does what I'm looking for let me know.
Thank you!