BE@R lab / motion_control

Dependencies:   motor_relay

Dependents:   dog_V3_3_testmotor

Revision:
2:2cadf29245f4
Parent:
1:5b313fd2ca6f
Child:
3:4fa191f2194d
--- a/motion_control.h	Fri Jul 17 14:04:47 2015 +0000
+++ b/motion_control.h	Fri Jul 17 14:32:19 2015 +0000
@@ -15,7 +15,14 @@
     
     int8_t GetLimitUp();
     int8_t GetLimitDown();
+    
     void SetMargin(int16_t data);
+    int16_t GetMargin();
+    
+    uint16_t GetMaxPosition();
+    uint16_t GetMinPosition();
+    
+    
     
 
 private:
@@ -29,8 +36,8 @@
     int16_t error;
     int16_t MARGIN;
     
-    int16_t MAX_POSITION;
-    int16_t MIN_POSITION;
+    uint16_t MAX_POSITION;
+    uint16_t MIN_POSITION;
     
     const uint16_t scale= 1000;