Part of the Pacemaker Project; this models the Pacemaker.

Dependencies:   mbed TextLCD mbed-rtos

Revision:
7:af6c040f0421
Parent:
6:d9c0ce333d71
Child:
9:fd8477284185
Child:
11:14b15f4604ad
--- a/PacemakerController.cpp	Mon Nov 30 03:39:25 2015 +0000
+++ b/PacemakerController.cpp	Mon Nov 30 04:00:47 2015 +0000
@@ -169,9 +169,22 @@
              // PM_A!
              // avi_clk = 0
              //apace();
-         } else if (timer_count >= AVI) {
-             //vsense();
-         }  
+         } else if (timer_count < LRI - AVI) {
+             // avi_clk = 0
+             // wait for Asense?
+         } 
+         
+         // At Atrial Event State
+         
+         //while (avi_clk < AVI);
+         
+         // Ventricular Event
+         timer_count = 0;
+         // PM_V!
+         timer_count = 0;
+         // VPace!
+         
+        
     } 
 }