judo ~
/
HelloWorld
k
Fork of HelloWorld by
Revision 2:e2ae43e8acab, committed 2016-10-24
- Comitter:
- Judorunner
- Date:
- Mon Oct 24 01:11:37 2016 +0000
- Parent:
- 1:03c191369089
- Commit message:
- fbf
Changed in this revision
diff -r 03c191369089 -r e2ae43e8acab Hardware.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Hardware.cpp Mon Oct 24 01:11:37 2016 +0000 @@ -0,0 +1,1 @@ +#include "Hardware.h" \ No newline at end of file
diff -r 03c191369089 -r e2ae43e8acab Hardware.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Hardware.h Mon Oct 24 01:11:37 2016 +0000 @@ -0,0 +1,9 @@ +#include <string> +using namespace std; + +#ifndef PACEHEART_H +#define PACEHEART_H + +int get_(); + +#endif \ No newline at end of file
diff -r 03c191369089 -r e2ae43e8acab PaceHeart.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PaceHeart.cpp Mon Oct 24 01:11:37 2016 +0000 @@ -0,0 +1,76 @@ +#include "PaceHeart.h" + +int p_pacingState = 0; +int p_pacingMode = 0; +int p_hysteresis = 0; +int p_hysterwaiaInterval = 300; +int lowrateInterval = 1000; +double p_vPacwAmp = 3500.0; +double p_vPaceWidth = 0.4; +int p_VRP = 320; + +int get_p_pacingState() +{ + return p_pacingState; +} +int get_p_pacingMode() +{ + return p_pacingMode; +} +int get_p_hysteresis() +{ + return hysteresis; +} +void set_p_hysteresis(int x) +{ + p_hysteresis = x; + return; +} +int get_p_hysterwaiaInterval() +{ + return p_hysterwaiaInterval; +} +void set_p_hysterwaiaInterval(int x) +{ + p_hysterwaiaInterval = x; + return; +} +int get_lowrateInterval() +{ + return lowrateInterval; +} +void set_lowrateInterval(int x) +{ + lowrateInterval = x; + return; +} + +double get_p_vPacwAmp() +{ + return p_vPacwAmp; +} +void set_p_vPacwAmp(double x) +{ + p_vPacwAmp = x; + return; +} + +double get_p_vPaceWidth() +{ + return p_vPaceWidth; +} +void set_p_vPaceWidth(double x) +{ + p_vPaceWidth = x; + return; +} + +int get_p_VRP() +{ + return p_VRP; +} +void set_p_VRP(int x) +{ + p_VRP = x; + return; +} \ No newline at end of file
diff -r 03c191369089 -r e2ae43e8acab PaceHeart.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/PaceHeart.h Mon Oct 24 01:11:37 2016 +0000 @@ -0,0 +1,21 @@ +#include <string> +using namespace std; + +#ifndef PACEHEART_H +#define PACEHEART_H + +int get_p_pacingState(); +int get_p_pacingMode(); +int get_p_hysteresis(); +void set_p_hysteresis(int x); +int get_p_hysterwaiaInterval(); +void set_p_hysterwaiaInterval(int x); +int get_lowrateInterval(); +void set_lowrateInterval(int x); +double get_p_vPacwAmp(); +void set_p_vPacwAmp(double x); +double get_p_vPaceWidth(); +void set_p_vPaceWidth(double x); +int get_p_VRP(); +void set_p_VRP(int x); +#endif \ No newline at end of file
diff -r 03c191369089 -r e2ae43e8acab main.cpp --- a/main.cpp Sun Jan 01 20:57:57 2012 +0000 +++ b/main.cpp Mon Oct 24 01:11:37 2016 +0000 @@ -1,7 +1,10 @@ #include "mbed.h" +#include "PaceHeart.h" DigitalOut myled(LED1); + + int main() { while(1) { myled = 1;