Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Data-Management-Honka
Diff: BluetoothComm.cpp
- Revision:
- 11:56bd3affbbfc
- Parent:
- 10:235c0b81c4c7
- Parent:
- 9:8024861fccac
- Child:
- 12:50f6f9ed5cc6
diff -r 235c0b81c4c7 -r 56bd3affbbfc BluetoothComm.cpp
--- 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];