The localization library for SCRIBE
localization.h
- Committer:
- nibab
- Date:
- 2016-04-21
- Revision:
- 6:ee872bf49be6
- Parent:
- 3:c749f7b2e12c
- Child:
- 8:91db52943f3e
File content as of revision 6:ee872bf49be6:
#include "mbed.h" #include "ultrasonic.h" #include "BNO055.h" //#define VERTICAL // define it on the vertical version to compile the corresponding code 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 float getAngle(void); //return the angle void servo(int degree); int getX(void); // return X int getY(void); // return Y private: int X; int Y; };