Localization
Dependencies: BNO055_fusion mbed
Diff: LOCOMOTION.h
- Revision:
- 6:0602a9e8118b
- Child:
- 15:7729da55873a
diff -r c89308dc1827 -r 0602a9e8118b LOCOMOTION.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LOCOMOTION.h Wed Mar 16 22:05:23 2016 +0000 @@ -0,0 +1,21 @@ +#ifndef LOCOMOTION_H +#define LOCOMOTION_H + +#include "mbed.h" + +typedef struct { + uint8_t m1f; + uint8_t m1b; + uint8_t m2f; + uint8_t m2b; + bool f1; + bool f2; +} LOCOMOTION_speed; + +class LOCOMOTION +{ +public: + LOCOMOTION(PwmOut& motor1F, PwmOut& motor1B,PwmOut& motor2F, PwmOut& motor2B, DigitalOut& forward1, DigitalOut& forward2); + LOCOMOTION_speed _speed; +}; +#endif \ No newline at end of file