hej

Dependents:   RoboticHackathon

Committer:
iLyngklip
Date:
Sat Apr 05 07:56:52 2014 +0000
Revision:
0:66a1feb3ba85
dillerdasker

Who changed what in which revision?

UserRevisionLine numberNew contents of line
iLyngklip 0:66a1feb3ba85 1 #ifndef HACK_MOTOR_H
iLyngklip 0:66a1feb3ba85 2 #define HACK_MOTOR_H
iLyngklip 0:66a1feb3ba85 3 #include "mbed.h"
iLyngklip 0:66a1feb3ba85 4
iLyngklip 0:66a1feb3ba85 5 class Wheel {
iLyngklip 0:66a1feb3ba85 6
iLyngklip 0:66a1feb3ba85 7 public:
iLyngklip 0:66a1feb3ba85 8 PwmOut M1A, M2A;
iLyngklip 0:66a1feb3ba85 9
iLyngklip 0:66a1feb3ba85 10 DigitalOut M1B, M2B;
iLyngklip 0:66a1feb3ba85 11
iLyngklip 0:66a1feb3ba85 12 Wheel();
iLyngklip 0:66a1feb3ba85 13 void FW();
iLyngklip 0:66a1feb3ba85 14 void BW();
iLyngklip 0:66a1feb3ba85 15 void right();
iLyngklip 0:66a1feb3ba85 16 void left();
iLyngklip 0:66a1feb3ba85 17 void stop();
iLyngklip 0:66a1feb3ba85 18 void init();
iLyngklip 0:66a1feb3ba85 19 float speed;
iLyngklip 0:66a1feb3ba85 20 protected:
iLyngklip 0:66a1feb3ba85 21 float fw, bw;
iLyngklip 0:66a1feb3ba85 22
iLyngklip 0:66a1feb3ba85 23 };
iLyngklip 0:66a1feb3ba85 24
iLyngklip 0:66a1feb3ba85 25
iLyngklip 0:66a1feb3ba85 26
iLyngklip 0:66a1feb3ba85 27 #endif