Committer:
inst
Date:
Wed Oct 14 06:05:07 2015 +0000
Revision:
1:b6face630ed3
Parent:
0:9b3bf538a693

        

Who changed what in which revision?

UserRevisionLine numberNew contents of line
inst 0:9b3bf538a693 1 #ifndef INCLUDED_YMOTOR_DRIVER_SHOOTER_H
inst 0:9b3bf538a693 2 #define INCLUDED_YMOTOR_DRIVER_SHOOTER_H
inst 0:9b3bf538a693 3
inst 0:9b3bf538a693 4 #include "YMotorDriverBase.h"
inst 0:9b3bf538a693 5
inst 0:9b3bf538a693 6 class YMotorDriverShooter : public YMotorDriverBase{
inst 0:9b3bf538a693 7 public:
inst 0:9b3bf538a693 8 enum ShooterActionType{
inst 1:b6face630ed3 9 STOP = 0x00, // 0000(2)
inst 1:b6face630ed3 10 WORKING_8V = 0x01, // 0001(2)
inst 1:b6face630ed3 11 WORKING_12V = 0x03, // 0011(2)
inst 1:b6face630ed3 12 WORKING_16V = 0x07, // 0111(2)
inst 1:b6face630ed3 13 WORKING_20V = 0x0F // 1111(2)
inst 0:9b3bf538a693 14 };
inst 0:9b3bf538a693 15
inst 0:9b3bf538a693 16 YMotorDriverShooter( char address );
inst 0:9b3bf538a693 17
inst 0:9b3bf538a693 18 private:
inst 1:b6face630ed3 19 virtual void write();
inst 1:b6face630ed3 20 virtual void updateI2CSlave();
inst 0:9b3bf538a693 21
inst 0:9b3bf538a693 22 static const PinName mRelayDriveDoutPinName[];
inst 1:b6face630ed3 23
inst 0:9b3bf538a693 24 DigitalOut** mRelayDriveDout;
inst 0:9b3bf538a693 25 ShooterActionType mActionType;
inst 0:9b3bf538a693 26 };
inst 0:9b3bf538a693 27
inst 0:9b3bf538a693 28 #endif