DERPS
Dependencies: BMP280 BNO055_fusion PowerControl mbed
Fork of STRAIGHT_DRIVE_NO_SEP by
Diff: LOCOMOTION.h
- Revision:
- 17:2f89826b5679
- Parent:
- 16:d6f15a13c3aa
- Child:
- 18:f9012e93edb8
diff -r d6f15a13c3aa -r 2f89826b5679 LOCOMOTION.h --- a/LOCOMOTION.h Sun Mar 27 02:39:07 2016 +0000 +++ b/LOCOMOTION.h Tue Mar 29 01:11:09 2016 +0000 @@ -2,6 +2,7 @@ #define LOCOMOTION_H #include "mbed.h" +#include "LOCALIZE.h" #define SPEED_TURN_MIN 0.20 #define SPEED_TURN_MAX 0.65 @@ -21,10 +22,12 @@ PwmOut _m2b; DigitalOut _m1dir; DigitalOut _m2dir; + bool setXPos(int target, int current, int error); + bool setYPos(int target, int current, int error); bool setAngle(int target, int current, int error, int mode); int wrap(int num); protected: - + float s; }; #endif \ No newline at end of file