reeeeeeeeeeeeeee

Dependencies:   MotionSensor mbed

Fork of Assignment2_ver5 by weeb grammers

Committer:
Judorunner
Date:
Mon Oct 24 01:11:37 2016 +0000
Revision:
2:e2ae43e8acab
Child:
3:641eefd1110b
fbf

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Judorunner 2:e2ae43e8acab 1 #include "PaceHeart.h"
Judorunner 2:e2ae43e8acab 2
Judorunner 2:e2ae43e8acab 3 int p_pacingState = 0;
Judorunner 2:e2ae43e8acab 4 int p_pacingMode = 0;
Judorunner 2:e2ae43e8acab 5 int p_hysteresis = 0;
Judorunner 2:e2ae43e8acab 6 int p_hysterwaiaInterval = 300;
Judorunner 2:e2ae43e8acab 7 int lowrateInterval = 1000;
Judorunner 2:e2ae43e8acab 8 double p_vPacwAmp = 3500.0;
Judorunner 2:e2ae43e8acab 9 double p_vPaceWidth = 0.4;
Judorunner 2:e2ae43e8acab 10 int p_VRP = 320;
Judorunner 2:e2ae43e8acab 11
Judorunner 2:e2ae43e8acab 12 int get_p_pacingState()
Judorunner 2:e2ae43e8acab 13 {
Judorunner 2:e2ae43e8acab 14 return p_pacingState;
Judorunner 2:e2ae43e8acab 15 }
Judorunner 2:e2ae43e8acab 16 int get_p_pacingMode()
Judorunner 2:e2ae43e8acab 17 {
Judorunner 2:e2ae43e8acab 18 return p_pacingMode;
Judorunner 2:e2ae43e8acab 19 }
Judorunner 2:e2ae43e8acab 20 int get_p_hysteresis()
Judorunner 2:e2ae43e8acab 21 {
Judorunner 2:e2ae43e8acab 22 return hysteresis;
Judorunner 2:e2ae43e8acab 23 }
Judorunner 2:e2ae43e8acab 24 void set_p_hysteresis(int x)
Judorunner 2:e2ae43e8acab 25 {
Judorunner 2:e2ae43e8acab 26 p_hysteresis = x;
Judorunner 2:e2ae43e8acab 27 return;
Judorunner 2:e2ae43e8acab 28 }
Judorunner 2:e2ae43e8acab 29 int get_p_hysterwaiaInterval()
Judorunner 2:e2ae43e8acab 30 {
Judorunner 2:e2ae43e8acab 31 return p_hysterwaiaInterval;
Judorunner 2:e2ae43e8acab 32 }
Judorunner 2:e2ae43e8acab 33 void set_p_hysterwaiaInterval(int x)
Judorunner 2:e2ae43e8acab 34 {
Judorunner 2:e2ae43e8acab 35 p_hysterwaiaInterval = x;
Judorunner 2:e2ae43e8acab 36 return;
Judorunner 2:e2ae43e8acab 37 }
Judorunner 2:e2ae43e8acab 38 int get_lowrateInterval()
Judorunner 2:e2ae43e8acab 39 {
Judorunner 2:e2ae43e8acab 40 return lowrateInterval;
Judorunner 2:e2ae43e8acab 41 }
Judorunner 2:e2ae43e8acab 42 void set_lowrateInterval(int x)
Judorunner 2:e2ae43e8acab 43 {
Judorunner 2:e2ae43e8acab 44 lowrateInterval = x;
Judorunner 2:e2ae43e8acab 45 return;
Judorunner 2:e2ae43e8acab 46 }
Judorunner 2:e2ae43e8acab 47
Judorunner 2:e2ae43e8acab 48 double get_p_vPacwAmp()
Judorunner 2:e2ae43e8acab 49 {
Judorunner 2:e2ae43e8acab 50 return p_vPacwAmp;
Judorunner 2:e2ae43e8acab 51 }
Judorunner 2:e2ae43e8acab 52 void set_p_vPacwAmp(double x)
Judorunner 2:e2ae43e8acab 53 {
Judorunner 2:e2ae43e8acab 54 p_vPacwAmp = x;
Judorunner 2:e2ae43e8acab 55 return;
Judorunner 2:e2ae43e8acab 56 }
Judorunner 2:e2ae43e8acab 57
Judorunner 2:e2ae43e8acab 58 double get_p_vPaceWidth()
Judorunner 2:e2ae43e8acab 59 {
Judorunner 2:e2ae43e8acab 60 return p_vPaceWidth;
Judorunner 2:e2ae43e8acab 61 }
Judorunner 2:e2ae43e8acab 62 void set_p_vPaceWidth(double x)
Judorunner 2:e2ae43e8acab 63 {
Judorunner 2:e2ae43e8acab 64 p_vPaceWidth = x;
Judorunner 2:e2ae43e8acab 65 return;
Judorunner 2:e2ae43e8acab 66 }
Judorunner 2:e2ae43e8acab 67
Judorunner 2:e2ae43e8acab 68 int get_p_VRP()
Judorunner 2:e2ae43e8acab 69 {
Judorunner 2:e2ae43e8acab 70 return p_VRP;
Judorunner 2:e2ae43e8acab 71 }
Judorunner 2:e2ae43e8acab 72 void set_p_VRP(int x)
Judorunner 2:e2ae43e8acab 73 {
Judorunner 2:e2ae43e8acab 74 p_VRP = x;
Judorunner 2:e2ae43e8acab 75 return;
Judorunner 2:e2ae43e8acab 76 }