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.
Fork of Pacemaker by
Diff: Param.h
- Revision:
- 7:4a1ec89e37cc
- Parent:
- 6:d71e30291a62
diff -r d71e30291a62 -r 4a1ec89e37cc Param.h
--- a/Param.h	Mon Dec 19 18:50:33 2016 +0000
+++ b/Param.h	Mon Dec 19 19:56:08 2016 +0000
@@ -15,7 +15,7 @@
 
 private:
     string parameters;
-    string Mode; //
+     //
     int LowerRateLimit; //
     int UpperRateLimit; //
     int MaximumSensorRate; //
@@ -55,6 +55,7 @@
      **********************************************/
     
 public:
+    string paceMode;
     Param();
     Param(string params);
     void concatination();
@@ -67,7 +68,7 @@
     void strDissect(string masterString);
     
     string getParameters(){ return parameters; }
-    string getMode(){ return Mode; }
+    string getMode(){ return paceMode; }
     int getLowerRateLimit(){ return LowerRateLimit; }
     int getLowerRateLimit_ms(){ return (60000/LowerRateLimit); }
     int getUpperRateLimit(){ return UpperRateLimit; }
@@ -104,18 +105,10 @@
     int getResponseFactor(){ return ResponseFactor; }
     int getRecoveryTime(){ return RecoveryTime; }
     
-    void setParameters(string input){ 
-        blue = 1;
-        red = 0;
-        green = 1;
-        wait(1);
-        strDissect(input);
-        green = 0;
-        red = 1;
-        blue = 1; }
-    void setMode(string input){ Mode = input; }
-    void setLowerRateLimit(int input){ LowerRateLimit = input; }
-    void setUpperRateLimit(int input){ UpperRateLimit = input; }
+    void setParameters(string inParam){ strDissect(inParam); }
+    void setMode(string inParam){ paceMode = inParam; }
+    void setLowerRateLimit(int inParam){ LowerRateLimit = inParam; }
+    void setUpperRateLimit(int inParam){ UpperRateLimit = inParam; }
     void setMaximumSensorRate(int input){ MaximumSensorRate = input; }
     void setFixedAVDelay(int input){ FixedAVDelay = input; }
     void setDynamicAVDelay(string input){ DynamicAVDelay = input; }
    