Michael Ling / ExoController

Dependents:   Data-Management-Honka

Files at this revision

API Documentation at this revision

Comitter:
mzling
Date:
Thu Mar 05 23:48:54 2015 +0000
Parent:
10:235c0b81c4c7
Parent:
9:8024861fccac
Child:
12:50f6f9ed5cc6
Commit message:
Added dataOut arguments.

Changed in this revision

BluetoothComm.cpp Show annotated file Show diff for this revision Revisions of this file
BluetoothComm.h Show annotated file Show diff for this revision Revisions of this file
--- a/BluetoothComm.cpp	Thu Mar 05 23:47:46 2015 +0000
+++ b/BluetoothComm.cpp	Thu Mar 05 23:48:54 2015 +0000
@@ -12,7 +12,7 @@
 //18 = KD Stance, 19 = KD Swing, 20 = KD Standing, 21 = KD Sitting, 22 = KD Standing up, 23 = KD sitting down
 //24 = Standing angle, 25 = Sitting angle, 26 = Bent Forward Angle, 27 = Forward Angle, 28 = Rear Angle, 29 = IMU Angle
 //30 = Knee Full Retract, 31 = Knee Full Extend, 32 = Lock Time, 33 = Rate
-BluetoothComm::BluetoothComm(PinName tx, PinName rx): _rn42(tx, rx), _len(0), _counter(0), _inMsg(false), _numVars(22), _numReadOnlyParams(12), _escapesNeeded(8)
+BluetoothComm::BluetoothComm(PinName tx, PinName rx): _rn42(tx, rx), _len(0), _counter(0), _inMsg(false), _numVars(27), _numReadOnlyParams(12), _escapesNeeded(8)
 {
     
     /* Make sure baud rate is correct--rn42 cannot be read if code and MBED have different baud rates! */
@@ -28,9 +28,9 @@
   
     std::string temp2[] = {"KPStance", "KPSwing", "KPStanding", "KPSitting", "KPStandUp", "KPSitdown", "KDStance", "KDSwing",
         "KDStanding", "KDSitting", "KDStandUp", "KDSitDown", "StandingAngle", "SittingAngle", "BentForwardAngle", "ForwardAngle", "RearAngle",
-        "IMUAngle", "KneeFullRetract", "KneeFullExtend", "LockTime", "Rate", "TorsoAng", "LKneeAng", "RKneeAng", "LHipAng", "RHipAng", "LHipTorque",
-        "RHipTorque", "ExoAndKneeStates", "TorsoRefAngle",
-        "LHipRefAngle", "RHipRefAngle", "Charge"};
+        "IMUAngle", "KneeFullRetract", "KneeFullExtend", "LockTime", "Rate", "StandupAsst", "StandupTime", "SitdownAsst", "SitdownTime", "WalkAngle", 
+        "TorsoAng", "LKneeAng", "RKneeAng", "LHipAng", "RHipAng", "LHipTorque", "RHipTorque", "ExoAndKneeStates", "TorsoRefAngle", "LHipRefAngle",
+        "RHipRefAngle", "Charge"};
     //Populate the map of indices to param names
     for (int j = 0; j < (_numVars + _numReadOnlyParams); j += 1) {
         _indexMap[j] = temp2[j];
--- a/BluetoothComm.h	Thu Mar 05 23:47:46 2015 +0000
+++ b/BluetoothComm.h	Thu Mar 05 23:48:54 2015 +0000
@@ -88,6 +88,11 @@
     static const char EXTEND_IND = 0x13;
     static const char LOCK_IND = 0x14;
     static const char RATE_IND = 0x15;
+    static const char SUASST_IND = 0x16;
+    static const char SUTIME_IND = 0x17;
+    static const char SDASST_IND = 0x18;
+    static const char SDTIME_IND = 0x19;
+    static const char WALK_IND = 0x1a;
     
     //Indicates a readonly request
     static const char READONLY_IND = 0x1f;