Revision:
1:d1ca02f9536c
Parent:
0:9931e2ddc451
Child:
2:16e29a3a8f58
diff -r 9931e2ddc451 -r d1ca02f9536c YMotorDriverServo.h
--- a/YMotorDriverServo.h	Sun Aug 23 15:18:10 2015 +0000
+++ b/YMotorDriverServo.h	Sun Aug 30 23:26:12 2015 +0000
@@ -10,9 +10,9 @@
     YMotorDriverServo( char address, int id );
     ~YMotorDriverServo();
     
-    virtual void update();
-    
 private:
+    virtual void updateSpecial();
+    virtual void updateI2CSlave();
     virtual void control( float c );
 
     static const float mAllowableError;
@@ -21,10 +21,13 @@
     static const float mPCoeff[];
     static const float mICoeff[];
     static const float mDCoeff[];
+    static const float mServoMaxDuty;
+    static const float mServoMinDuty;
     
     AnalogIn* mAnalogIn;
     float mPosition;
     float mTargetPosition;
+    bool mHasWorked;
     int mID;
 };