Diff: YMotorDriverShooter.h
- Revision:
- 0:9b3bf538a693
- Child:
- 1:b6face630ed3
diff -r 000000000000 -r 9b3bf538a693 YMotorDriverShooter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/YMotorDriverShooter.h Sun Aug 23 15:18:25 2015 +0000 @@ -0,0 +1,26 @@ +#ifndef INCLUDED_YMOTOR_DRIVER_SHOOTER_H +#define INCLUDED_YMOTOR_DRIVER_SHOOTER_H + +#include "YMotorDriverBase.h" + +class YMotorDriverShooter : public YMotorDriverBase{ +public: + enum ShooterActionType{ + STOP = 0, + WORKING_8V = 4, + WORKING_12V = 5, + WORKING_16V = 6 + }; + + YMotorDriverShooter( char address ); + virtual void update(); + +private: + void write(); + + static const PinName mRelayDriveDoutPinName[]; + DigitalOut** mRelayDriveDout; + ShooterActionType mActionType; +}; + +#endif