2017 hongo b alpha
Diff: ShooterAngle.h
- Revision:
- 0:3e9f5fcfc775
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/ShooterAngle.h Fri Sep 22 04:31:23 2017 +0000 @@ -0,0 +1,18 @@ +#ifndef SHOOTER_ANGLE_H +#define SHOOTER_ANGLE_H + +#include "Alpha_ApprI2C_ID.h" +#include "ApprI2CMaster.h" + +class ShooterAngle +{ + public: + ShooterAngle(I2C *master, const unsigned int angle_max_ = 240, const unsigned int angle_min_ = 0); + void setAngle(unsigned int angle); + private: + ApprI2CMaster to_slave; + unsigned int _angle_max; + unsigned int _angle_min; +}; + +#endif \ No newline at end of file