Dependencies:   PID_ PWMOut YMotorDriverBase YMotorDriverPusher YMotorDriverServo YMotorDriverShooter YMotorDriverSupplier

Dependents:   YMD

Revision:
0:44b89a084daf
Child:
2:2e3b56f045f5
diff -r 000000000000 -r 44b89a084daf YMotorDriver.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/YMotorDriver.h	Sun Aug 23 15:18:32 2015 +0000
@@ -0,0 +1,33 @@
+#ifndef INCLUDED_YMOTOR_DRIVER_H
+#define INCLUDED_YMOTOR_DRIVER_H
+
+#include "mbed.h"
+
+class YMotorDriverBase;
+
+class YMotorDriver{
+public:
+    YMotorDriver();
+    ~YMotorDriver();
+    
+    void update();
+private:
+    YMotorDriverBase* mYMotorDriver;
+
+    static const PinName mAddressDeciderPinName[ 4 ];
+    static const char mYMotorDriverBaseAddress[];
+    static const char mYMotorDriverServoAddress[];
+    static const char mYMotorDriverSupplierAddress[];
+    static const char mYMotorDriverPusherAddress[];
+    static const char mYMotorDriverShooterAddress[];
+    
+    static const size_t mNumOfYMotorDriverBaseAddress;
+    static const size_t mNumOfYMotorDriverServoAddress;
+    static const size_t mNumOfYMotorDriverSupplierAddress;
+    static const size_t mNumOfYMotorDriverPusherAddress;
+    static const size_t mNumOfYMotorDriverShooterAddress;
+    
+    char mAddress;
+};
+
+#endif