Jump to content




Internal Navigation API v1.0

api turtle

5 replies to this topic

#1 dd4235

  • New Members
  • 2 posts

Posted 13 October 2012 - 06:53 PM

This API lets you track exactly where your turtles are without using the rednet-based GPS connection. Basically, it tracks every movement your turtle makes and updates the location and direction.

Usage
Spoiler

Download
http://pastebin.com/3KHq3K2R

Code
Spoiler


#2 billysback

  • Members
  • 569 posts

Posted 13 October 2012 - 07:05 PM

how does it get your initial coordinates?

#3 PixelToast

  • Signature Abuser
  • 2,265 posts
  • Location3232235883

Posted 13 October 2012 - 07:07 PM

View Postbillysback, on 13 October 2012 - 07:05 PM, said:

how does it get your initial coordinates?
it dosent, it stores offsets not actual coords

#4 dd4235

  • New Members
  • 2 posts

Posted 13 October 2012 - 11:42 PM

View PostPixelToast, on 13 October 2012 - 07:07 PM, said:

it dosent, it stores offsets not actual coords

But if you want, you can use calibrate() to put in real coords.

#5 Trabber Shir

  • New Members
  • 1 posts

Posted 18 January 2013 - 12:36 AM

Sorrry for the necro.
This is a very useful API, however it has a bug I figured it would be polite to point out.

The calibrate function fails to set the direction becuase it sets 'dpos' where 'dir' is used throughout the rest of the code. Fix that and it is golden.

#6 coaster3000

  • Members
  • 25 posts
  • LocationNew Jersey USA

Posted 24 May 2013 - 02:12 PM

May I get permission to extend this api and publish it on this thread? Well actually I did make it already for personal private use. But wondering if I could publish the addition?

It adds a simulated turtle for non turtle computers.. So you can check if computers work.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users