Diff: YMotorDriverShooter.h
- Revision:
- 1:b6face630ed3
- Parent:
- 0:9b3bf538a693
--- a/YMotorDriverShooter.h Sun Aug 23 15:18:25 2015 +0000 +++ b/YMotorDriverShooter.h Wed Oct 14 06:05:07 2015 +0000 @@ -6,19 +6,21 @@ class YMotorDriverShooter : public YMotorDriverBase{ public: enum ShooterActionType{ - STOP = 0, - WORKING_8V = 4, - WORKING_12V = 5, - WORKING_16V = 6 + STOP = 0x00, // 0000(2) + WORKING_8V = 0x01, // 0001(2) + WORKING_12V = 0x03, // 0011(2) + WORKING_16V = 0x07, // 0111(2) + WORKING_20V = 0x0F // 1111(2) }; YMotorDriverShooter( char address ); - virtual void update(); private: - void write(); + virtual void write(); + virtual void updateI2CSlave(); static const PinName mRelayDriveDoutPinName[]; + DigitalOut** mRelayDriveDout; ShooterActionType mActionType; };