2017 hongo b team
Dependents: CtrlMD 2017_Bteam_alpha_slave
TS120.h
00001 #ifndef MOTOR_DRIVER_TS120_H 00002 #define MOTOR_DRIVER_TS120_H 00003 00004 #include "mbed.h" 00005 #include "MotorDriver.h" 00006 00007 class TS120 : public MotorDriver 00008 { 00009 public: 00010 TS120(PinName pwm_pin, bool _dir_flip = false, double _flont_range = 1, double _back_range = 1); 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 double flont_range; 00016 double back_range; 00017 PwmOut pwm_out; 00018 static const int pwm_max = 2000; 00019 static const int pwm_min = 1000; 00020 }; 00021 00022 #endif
Generated on Thu Jul 14 2022 20:47:47 by
![doxygen](doxygen.png)