2017 hongo b team
Dependencies: Alpha_Movements BoolProcess DataCaller mbed
Diff: ArrowShooter.h
- Revision:
- 0:7318c0dde997
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ArrowShooter.h Fri Sep 08 03:58:36 2017 +0000 @@ -0,0 +1,33 @@ +#ifndef ARROW_SHOOTER_H +#define ARROW_SHOOTER_H + +#include "mbed.h" + +#include "Alpha_ApprI2C_ID.h" +#include "ApprI2CMaster.h" + +#include "MotorDriver.h" +#include "ThrowData_MD.h" +#include "CtrlMD.h" + + +class ArrowShooter +{ + public: + ArrowShooter(I2C *_master, double _strt_inval = 0.01); + + double fire(); + void set_pwm(double pwm, double inval = 0.01); + + private: + ApprI2CMaster to_slave; + ThrowData i2c_md; + MotorDriver *_MD; + CtrlMD motor; + + Timer time; + +}; + +#endif +