BE@R lab / motion_control

Dependencies:   motor_relay

Dependents:   dog_V3_3_testmotor

Revision:
7:94518aee126b
Parent:
6:41d7cf11fdb1
Child:
9:e3895130e56f
--- a/motion_control.h	Mon Jul 20 09:15:28 2015 +0000
+++ b/motion_control.h	Fri Jul 24 21:15:45 2015 +0000
@@ -32,6 +32,13 @@
 
     void stop();
 
+    void SetMode(uint8_t mode);
+    uint8_t GetMode();
+    
+    void SetOffset(uint16_t value);
+    uint16_t GetOffset();
+    
+    
 private:
 
     uint16_t Scale(uint16_t data);
@@ -50,7 +57,9 @@
 
     const static uint16_t scale = 64;
     const static uint16_t LOOP = 100;
-
+    
+    uint8_t mode_limit;
+    uint16_t OFFSET_MAX_POSITION;
     //float Kp;
     //float Ki;
     //float Kd;