mbed heart

Dependencies:   TextLCD mbed-rtos mbed

Revision:
7:1c32e8f6bde8
Parent:
6:315e6d6b1174
Child:
8:0f92ac2b9d0e
--- a/PMTest.cpp	Wed Dec 02 05:48:37 2015 +0000
+++ b/PMTest.cpp	Wed Dec 02 06:48:26 2015 +0000
@@ -39,6 +39,17 @@
     
 }
 
+void test_PVARP(){
+    Timer test_timer;
+    
+    test_timer.start();
+    
+    while(apace != 1){}
+    serial_in.printf("PVARP: The separation between Ventricular and Atrial events was %i ", test_timer.read_ms());
+    
+    
+}
+
 void test_VRP(){
     Timer test_timer;
     
@@ -50,6 +61,7 @@
     
 }
 
+
 void test_AVI(){
     Timer test_timer;
     
@@ -60,6 +72,17 @@
     
     
 }
+
+void test_AVI2(){
+    Timer test_timer;
+    
+    test_timer.start();
+    
+    while(apace != 1){}
+    serial_in.printf("LRI-AVI: The separation between Ventricle and Atrial events was %i ", test_timer.read_ms());
+    
+    
+}
     
 
 
@@ -146,7 +169,6 @@
     led_apace = 1;
     serial_in.printf("| A FIRED |");
     Thread::wait(10);
-    test_AVI();
     led_apace = 0;   
 }
 
@@ -154,7 +176,6 @@
     led_vpace = 1;
     serial_in.printf("| V FIRED |");
     Thread::wait(10);
-    test_LRI();
     led_vpace = 0;   
 }
 
@@ -202,6 +223,20 @@
     // check if timer was within event
 }
 
+void test_mode(){
+    
+    int lri_done = 0;
+    int avi_done = 0;
+    int vrp_done = 0;
+    int pvarp_done = 0;
+    
+    while(1){
+    while(test_curr_mode == TEST) {
+        
+    }   
+    
+}
+
 int main(void)
 {