2017 hongo b team

Dependents:   CtrlMD 2017_Bteam_alpha_slave

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MD10c.h Source File

MD10c.h

00001 #ifndef MOTOR_DRIVER_MD10C_H
00002 #define MOTOR_DRIVER_MD10C_H
00003 
00004 #include "mbed.h"
00005 #include "MotorDriver.h"
00006 
00007 class MD10c : public MotorDriver
00008 {
00009     public:
00010         MD10c(PinName dir_pin, PinName pwm_pin, bool _dir_flip = false);
00011         virtual void drive(double _pwm);
00012         virtual void drive(signed int _pwm, unsigned int max_pwm_abs = 127);
00013     private:
00014         bool dir_flip;
00015         DigitalOut dir_out;
00016         PwmOut pwm_out;
00017 };
00018 
00019 #endif