2017 hongo b team
Dependents: CtrlMD 2017_Bteam_alpha_slave
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
Generated on Thu Jul 14 2022 20:47:47 by 1.7.2