2017 hongo b team
Dependents: CtrlMD 2017_Bteam_alpha_slave
Diff: MD10c.h
- Revision:
- 0:be058264e889
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MD10c.h Fri Sep 08 03:31:04 2017 +0000 @@ -0,0 +1,19 @@ +#ifndef MOTOR_DRIVER_MD10C_H +#define MOTOR_DRIVER_MD10C_H + +#include "mbed.h" +#include "MotorDriver.h" + +class MD10c : public MotorDriver +{ + public: + MD10c(PinName dir_pin, PinName pwm_pin, bool _dir_flip = false); + virtual void drive(double _pwm); + virtual void drive(signed int _pwm, unsigned int max_pwm_abs = 127); + private: + bool dir_flip; + DigitalOut dir_out; + PwmOut pwm_out; +}; + +#endif \ No newline at end of file