Michael Ling / ExoController

Dependents:   Data-Management-Honka

Revision:
20:be8dcc2344bc
Parent:
19:f3eece6c024f
--- a/BluetoothComm.h	Mon Apr 27 21:58:27 2015 +0000
+++ b/BluetoothComm.h	Mon May 11 21:47:40 2015 +0000
@@ -39,7 +39,7 @@
     int main();
     
     static const int TORSO_IND = 0;
-    static const int LKNEE_IND = 1;
+    static const int LHIP_IND = 3;
     
 private:
     MODSERIAL _rn42; // serial object to read data coming in
@@ -61,6 +61,7 @@
     short _readOnlyParams[12];
     //Indices where an escape char. is needed
     int _escapeNeeded[9];
+    //Length of the _escapeNeeded array
     int _escapesNeeded;
     int _len;
     int _counter;
@@ -99,9 +100,11 @@
     static const char WALK_IND = 0x1a;
     static const char STEPLEN_IND = 0x1b;
     static const char STEPTIME_IND = 0x1c;
-    static const char MAXAMP_IND = 0x1d;
-    static const char STANCESTART_IND = 0x1e;
-    static const char STANCEEND_IND = 0x1f;
+    static const char HIPFLEX_IND = 0x1d;
+    static const char PHASESHIFT_IND = 0x1e;
+    static const char MAXAMP_IND = 0x1f;
+    static const char STANCESTART_IND = 0x20;
+    static const char STANCEEND_IND = 0x21;
     
     //Indicates a readonly request
     static const char READONLY_IND = 0x3f;