2017 hongo b team
Dependents: CtrlMD 2017_Bteam_alpha_slave
Diff: ThrowData_MD.h
- Revision:
- 0:be058264e889
diff -r 000000000000 -r be058264e889 ThrowData_MD.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ThrowData_MD.h Fri Sep 08 03:31:04 2017 +0000 @@ -0,0 +1,19 @@ +#ifndef THROW_DATA_H +#define THROW_DATA_H + +#include "MotorDriver.h" + +class ThrowData : public MotorDriver +{ + public: + ThrowData(int _max_dig = 255, bool _dir_flip = false); + virtual void drive(double _pwm); + virtual void drive(signed int _pwm, unsigned int max_pwm_abs = 0); + int get_output(); + private: + int max_dig; + bool dir_flip; + int _target_data; +}; + +#endif \ No newline at end of file