Committer:
inst
Date:
Sun Aug 23 15:18:25 2015 +0000
Revision:
0:9b3bf538a693
Child:
1:b6face630ed3
first

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 0:9b3bf538a693 9 STOP = 0,
inst 0:9b3bf538a693 10 WORKING_8V = 4,
inst 0:9b3bf538a693 11 WORKING_12V = 5,
inst 0:9b3bf538a693 12 WORKING_16V = 6
inst 0:9b3bf538a693 13 };
inst 0:9b3bf538a693 14
inst 0:9b3bf538a693 15 YMotorDriverShooter( char address );
inst 0:9b3bf538a693 16 virtual void update();
inst 0:9b3bf538a693 17
inst 0:9b3bf538a693 18 private:
inst 0:9b3bf538a693 19 void write();
inst 0:9b3bf538a693 20
inst 0:9b3bf538a693 21 static const PinName mRelayDriveDoutPinName[];
inst 0:9b3bf538a693 22 DigitalOut** mRelayDriveDout;
inst 0:9b3bf538a693 23 ShooterActionType mActionType;
inst 0:9b3bf538a693 24 };
inst 0:9b3bf538a693 25
inst 0:9b3bf538a693 26 #endif