Only imu output

Dependencies:   Servo mbed

Fork of FYDP_Final2 by Mark Vandermeulen

Committer:
majik
Date:
Sat Mar 21 21:31:29 2015 +0000
Revision:
0:21019d94ad33
Both IMUs work now

Who changed what in which revision?

UserRevisionLine numberNew contents of line
majik 0:21019d94ad33 1 #ifndef MOTORS_H
majik 0:21019d94ad33 2 #define MOTORS_H
majik 0:21019d94ad33 3
majik 0:21019d94ad33 4 #include "mbed.h"
majik 0:21019d94ad33 5 #include "TB6612.h"
majik 0:21019d94ad33 6
majik 0:21019d94ad33 7 class Motors
majik 0:21019d94ad33 8 {
majik 0:21019d94ad33 9 private:
majik 0:21019d94ad33 10
majik 0:21019d94ad33 11 void stop(void const *args);
majik 0:21019d94ad33 12
majik 0:21019d94ad33 13 public:
majik 0:21019d94ad33 14
majik 0:21019d94ad33 15 TB6612 * Left;
majik 0:21019d94ad33 16 TB6612 * Right;
majik 0:21019d94ad33 17 DigitalOut enable;
majik 0:21019d94ad33 18
majik 0:21019d94ad33 19 Motors(TB6612 * L, TB6612 * R, PinName STBY);
majik 0:21019d94ad33 20
majik 0:21019d94ad33 21 void flip();
majik 0:21019d94ad33 22 void reverse(bool m); //reverse one of the motors (0=right, 1=left)
majik 0:21019d94ad33 23 };
majik 0:21019d94ad33 24 #endif