2018 HongoMechaTech A

Dependencies:   mbed

Committer:
Komazawa_sun
Date:
Tue Sep 18 03:11:01 2018 +0000
Revision:
0:e83b840a5f86
????????????????

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Komazawa_sun 0:e83b840a5f86 1 #ifndef _MD_H_
Komazawa_sun 0:e83b840a5f86 2 #define _MD_H_
Komazawa_sun 0:e83b840a5f86 3
Komazawa_sun 0:e83b840a5f86 4 #include <MD.h>
Komazawa_sun 0:e83b840a5f86 5
Komazawa_sun 0:e83b840a5f86 6 class StraightMD : public MD
Komazawa_sun 0:e83b840a5f86 7 {
Komazawa_sun 0:e83b840a5f86 8 public:
Komazawa_sun 0:e83b840a5f86 9 StraightMD(PinName pwm,PinName dere);
Komazawa_sun 0:e83b840a5f86 10 virtual void drive(double);
Komazawa_sun 0:e83b840a5f86 11 virtual void brake(double);
Komazawa_sun 0:e83b840a5f86 12 virtual void free();
Komazawa_sun 0:e83b840a5f86 13 //void rotate(double duty);
Komazawa_sun 0:e83b840a5f86 14 private:
Komazawa_sun 0:e83b840a5f86 15 PwmOut Pwm;
Komazawa_sun 0:e83b840a5f86 16 DigitalOut Dere;
Komazawa_sun 0:e83b840a5f86 17 };
Komazawa_sun 0:e83b840a5f86 18
Komazawa_sun 0:e83b840a5f86 19 #endif