reeeeeeeeeeeeeee
Dependencies: MotionSensor mbed
Fork of Assignment2_ver3 by
PaceHeart.h@9:751e39d24c39, 2016-11-29 (annotated)
- Committer:
- weebgrammers
- Date:
- Tue Nov 29 22:06:14 2016 +0000
- Revision:
- 9:751e39d24c39
- Parent:
- 7:6dc42e1a2a81
r
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Judorunner | 2:e2ae43e8acab | 1 | #include <string> |
Judorunner | 2:e2ae43e8acab | 2 | using namespace std; |
Judorunner | 2:e2ae43e8acab | 3 | |
Judorunner | 2:e2ae43e8acab | 4 | #ifndef PACEHEART_H |
Judorunner | 2:e2ae43e8acab | 5 | #define PACEHEART_H |
oopakhooo | 3:641eefd1110b | 6 | class PaceHeart{ |
oopakhooo | 3:641eefd1110b | 7 | |
oopakhooo | 3:641eefd1110b | 8 | private: |
oopakhooo | 3:641eefd1110b | 9 | int p_pacingState; |
oopakhooo | 3:641eefd1110b | 10 | int p_pacingMode; |
oopakhooo | 3:641eefd1110b | 11 | int p_hysteresis; |
oopakhooo | 3:641eefd1110b | 12 | int p_hysteresisInterval; |
Judorunner | 6:9b8fee13549c | 13 | double p_lowrateInterval; |
Judorunner | 6:9b8fee13549c | 14 | double p_uprateInterval; //upper rate limit |
Judorunner | 6:9b8fee13549c | 15 | double p_maxSensorRate; |
oopakhooo | 3:641eefd1110b | 16 | //Ventricle |
oopakhooo | 3:641eefd1110b | 17 | double p_vPaceAmp; |
oopakhooo | 3:641eefd1110b | 18 | double p_vPaceWidth; |
oopakhooo | 3:641eefd1110b | 19 | int p_VRP; |
oopakhooo | 3:641eefd1110b | 20 | //Atrium (change defaults) |
oopakhooo | 3:641eefd1110b | 21 | double p_aPaceAmp; |
oopakhooo | 3:641eefd1110b | 22 | double p_aPaceWidth; |
oopakhooo | 3:641eefd1110b | 23 | int p_ARP; |
Judorunner | 6:9b8fee13549c | 24 | int p_activityThresh; |
Judorunner | 6:9b8fee13549c | 25 | int p_reactionTime; |
Judorunner | 6:9b8fee13549c | 26 | int p_responseFactor; |
weebgrammers | 7:6dc42e1a2a81 | 27 | int p_recoveryTime; |
weebgrammers | 7:6dc42e1a2a81 | 28 | int dir; // variable to track direction of increment |
oopakhooo | 3:641eefd1110b | 29 | public: |
oopakhooo | 3:641eefd1110b | 30 | PaceHeart(); |
weebgrammers | 5:45d58f8a5912 | 31 | PaceHeart(int mode); |
oopakhooo | 3:641eefd1110b | 32 | void pace_A(); |
weebgrammers | 7:6dc42e1a2a81 | 33 | void pace_A(double amp, double wid); |
weebgrammers | 7:6dc42e1a2a81 | 34 | void pace_V(double amp, double wid); |
oopakhooo | 3:641eefd1110b | 35 | void pace_V(); |
oopakhooo | 3:641eefd1110b | 36 | void pace(); |
oopakhooo | 3:641eefd1110b | 37 | void pace(int x); |
Judorunner | 2:e2ae43e8acab | 38 | int get_p_pacingState(); |
Judorunner | 2:e2ae43e8acab | 39 | int get_p_pacingMode(); |
weebgrammers | 7:6dc42e1a2a81 | 40 | void set_p_pacingMode(int x); |
Judorunner | 2:e2ae43e8acab | 41 | int get_p_hysteresis(); |
Judorunner | 2:e2ae43e8acab | 42 | void set_p_hysteresis(int x); |
oopakhooo | 3:641eefd1110b | 43 | int get_p_hysteresisInterval(); |
oopakhooo | 3:641eefd1110b | 44 | void set_p_hysteresisInterval(int x); |
Judorunner | 6:9b8fee13549c | 45 | double get_p_lowrateInterval(); |
Judorunner | 6:9b8fee13549c | 46 | void set_p_lowrateInterval(double x); |
Judorunner | 6:9b8fee13549c | 47 | double get_p_uprateInterval(); |
Judorunner | 6:9b8fee13549c | 48 | void set_p_uprateInterval(double x); |
Judorunner | 6:9b8fee13549c | 49 | double get_p_maxSensorRate(); |
Judorunner | 6:9b8fee13549c | 50 | void set_p_maxSensorRate(double x); |
oopakhooo | 3:641eefd1110b | 51 | double get_p_vPaceAmp(); |
oopakhooo | 3:641eefd1110b | 52 | void set_p_vPaceAmp(double x); |
Judorunner | 2:e2ae43e8acab | 53 | double get_p_vPaceWidth(); |
Judorunner | 2:e2ae43e8acab | 54 | void set_p_vPaceWidth(double x); |
Judorunner | 2:e2ae43e8acab | 55 | int get_p_VRP(); |
Judorunner | 2:e2ae43e8acab | 56 | void set_p_VRP(int x); |
oopakhooo | 3:641eefd1110b | 57 | double get_p_aPaceAmp(); |
oopakhooo | 3:641eefd1110b | 58 | void set_p_aPaceAmp(double x); |
oopakhooo | 3:641eefd1110b | 59 | double get_p_aPaceWidth(); |
oopakhooo | 3:641eefd1110b | 60 | void set_p_aPaceWidth(double x); |
oopakhooo | 3:641eefd1110b | 61 | int get_p_ARP(); |
oopakhooo | 3:641eefd1110b | 62 | void set_p_ARP(int x); |
Judorunner | 6:9b8fee13549c | 63 | int get_p_activityThresh(); |
Judorunner | 6:9b8fee13549c | 64 | int get_p_reactionTime(); |
Judorunner | 6:9b8fee13549c | 65 | int get_p_responseFactor(); |
Judorunner | 6:9b8fee13549c | 66 | int get_p_recoveryTime(); |
Judorunner | 6:9b8fee13549c | 67 | void set_p_activityThresh(int x); |
Judorunner | 6:9b8fee13549c | 68 | void set_p_reactionTime(int x); |
Judorunner | 6:9b8fee13549c | 69 | void set_p_responseFactor(int x); |
Judorunner | 6:9b8fee13549c | 70 | void set_p_recoveryTime(int x); |
weebgrammers | 7:6dc42e1a2a81 | 71 | void set_dir(int x); |
oopakhooo | 3:641eefd1110b | 72 | }; |
Judorunner | 2:e2ae43e8acab | 73 | #endif |