eric's fork test

Dependencies:   mbed-rtos mbed

Fork of Pacemaker by 3k04 team

Revision:
9:b48423a135d8
Parent:
8:75c1dd8b0d61
Child:
11:0e0130742e87
--- a/interface.cpp	Tue Nov 15 00:52:39 2016 +0000
+++ b/interface.cpp	Tue Nov 15 20:30:12 2016 +0000
@@ -20,12 +20,12 @@
     pc = inputPC;
     }
 
-interface::interface(Serial* inputPC , pulse* p , chamberData* atrium , chamberData* ventricle){
+interface::interface(Serial* inputPC , pulse* p ,genData* genData, chamberData* atrium , chamberData* ventricle){
+    generalData = genData;
     pc = inputPC;
     interfacePulse = p;
     atrData = atrium;
     ventData = ventricle;
-    startScreen();
     }
 //********************************************
 
@@ -83,7 +83,13 @@
             break;
         case '3':
             pc->printf("\nGeneral Data");
-//            pc->printf("\n1. Hysteresis: %f",
+            pc->printf("\n1. Hysteresis: %b", generalData->getHyst());
+            pc->printf("\n2. Hysteresis Interval: %f", generalData->getHystInterval());
+            pc->printf("\n3. Lower Rate Limit: %f", generalData->getLRL());
+            pc->printf("\n4. Upper Rate Limit: %f", generalData->getURL());
+            pc->printf("\n5. Atrial-Ventricular Delay: %f", generalData->getAVdelay());
+            pc->printf("\n6. Atrial-Ventricular Delay Offset: %f" , generalData->getAVdelayOffset());
+            pc->printf("\n7. Rate Smoothing: %f", generalData->getRSmooth());
         case '4':
             pc->printf("\nNot setup yet");
             break;