hej
Diff: hack_motor.h
- Revision:
- 0:66a1feb3ba85
diff -r 000000000000 -r 66a1feb3ba85 hack_motor.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/hack_motor.h Sat Apr 05 07:56:52 2014 +0000 @@ -0,0 +1,27 @@ +#ifndef HACK_MOTOR_H +#define HACK_MOTOR_H +#include "mbed.h" + +class Wheel { + +public: + PwmOut M1A, M2A; + + DigitalOut M1B, M2B; + + Wheel(); + void FW(); + void BW(); + void right(); + void left(); + void stop(); + void init(); + float speed; +protected: + float fw, bw; + +}; + + + +#endif \ No newline at end of file