Part of the Pacemaker Project; this models the Pacemaker.

Dependencies:   mbed TextLCD mbed-rtos

Revision:
36:03704a3ec2e3
Parent:
33:b68c1648206e
--- a/PacemakerController.cpp	Wed Dec 02 03:40:48 2015 +0000
+++ b/PacemakerController.cpp	Wed Dec 02 04:52:19 2015 +0000
@@ -318,6 +318,7 @@
         // if the char is N, update bounds to normal mode
         curr_mode = NORMAL;
         upper_bound = 100;
+        LRI = 100;
         lower_bound = 40;
         lcd.printf("MODE IS N\n");
         pc.printf("MODE IS N\n");
@@ -325,6 +326,7 @@
     } else if (a == 'S') {
         curr_mode = SLEEP;
         upper_bound = 60;
+        LRI = 60;
         lower_bound = 30;
         lcd.printf("MODE IS S\n");
         pc.printf("MODE IS S\n");
@@ -332,6 +334,7 @@
     } else if (a == 'E') {
         curr_mode = EXERCISE;
         upper_bound = 175;
+        LRI = 175;
         lower_bound = 100;
         lcd.printf("MODE IS E\n");
         pc.printf("MODE IS E\n");
@@ -340,6 +343,7 @@
     } else if (a == 'M') {
         curr_mode = MANUAL;
         upper_bound = 175;
+        LRI = 175;
         lower_bound = 30;
         beats = 300;
         lcd.printf("MODE IS MANUAL\n");