Michael Ling / ExoController

Dependents:   Data-Management-Honka

Revision:
18:34ccf02fdbe7
Parent:
14:ac9949a0aff5
Child:
19:f3eece6c024f
--- a/BluetoothComm.h	Wed Apr 15 01:50:50 2015 +0000
+++ b/BluetoothComm.h	Fri Apr 24 19:32:36 2015 +0000
@@ -24,6 +24,7 @@
     void send_error(char errCode);
     //void setCharge(short level);
     void set_values(std::map<string, short> newValues);
+    void set_data(int index, short value);
     void write_params_to_sd_card();
     void write_data_to_sd_card();
     void send(char* cmd);
@@ -37,6 +38,9 @@
     void attachment(short* dataOut);
     int main();
     
+    static const int TORSO_IND = 0;
+    static const int LKNEE_IND = 1;
+    
 private:
     MODSERIAL _rn42; // serial object to read data coming in
     //Map containing values of Exo parameters
@@ -93,9 +97,16 @@
     static const char SDASST_IND = 0x18;
     static const char SDTIME_IND = 0x19;
     static const char WALK_IND = 0x1a;
+    static const char STEPLEN_IND = 0x1b;
+    static const char STEPTIME_IND = 0x1c;
+    static const char FLEXION_IND = 0x1d;
+    static const char SHIFT_IND = 0x1e;
+    static const char WALKSPEED_IND = 0x1f;
     
     //Indicates a readonly request
-    static const char READONLY_IND = 0x1f;
+    static const char READONLY_IND = 0x3f;
+
+    
     
     //Error codes
     static const char START_ERR = 1;