The localization library for SCRIBE

Dependents:   SCRIBE_stepper

Revision:
0:a5cac0a5e41d
Child:
1:2cd9602780f4
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/localization.h	Mon Apr 18 21:05:04 2016 +0000
@@ -0,0 +1,20 @@
+#include "mbed.h"
+#include "ultrasonic.h"
+#include "BNO055.h"
+
+//#define VERTICAL
+
+class localization
+{
+    public:
+        /**iniates the class with the specified trigger pin, echo pin, update speed and timeout**/
+        localization();
+        void reset(void); // reset, used at startup
+        /**starts mesuring the distance**/
+        void measure(void); // measure the current position and update X and Y
+        int getX(void); // return X
+        int getY(void); // return Y
+    private:
+        int X;
+        int Y;
+};
\ No newline at end of file