Robot's source code

Dependencies:   mbed

Revision:
109:53918ba98306
Parent:
74:88be86f83d17
--- a/AX12/AX12.h	Mon May 04 13:00:28 2015 +0000
+++ b/AX12/AX12.h	Tue May 05 16:35:53 2015 +0000
@@ -112,6 +112,12 @@
      */
     int setGoal(int degrees, int flags = 0);
     
+    /** Get goal angle (internal, not from the AX12)
+     *
+     */
+     
+     int getGoal(){return _goal;}
+    
     
     /** Set the torque limit of the servo
      *
@@ -190,7 +196,7 @@
     Serial _ax12;
     int _ID;
     int _baud;
-
+    int _goal;
 
 };