Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   mbed Queue mbed-rtos FXOS8700Q

Fork of Pacemaker by Eric dollar

SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.

The project uses the Freescale K64F Microcontroller and C++ mbed library.

Revision:
19:d58e1e1a9a24
Parent:
10:35b259e70c9a
Child:
25:d816de7067da
diff -r 27134bc42ecb -r d58e1e1a9a24 main.cpp
--- a/main.cpp	Thu Nov 17 04:10:59 2016 +0000
+++ b/main.cpp	Thu Nov 24 01:10:08 2016 +0000
@@ -7,6 +7,7 @@
 #include "interface.h"
 #include "voor.h"
 #include "sense.h"
+#include "motion.h"
 
 int main(){
     hardware* io = new hardware();
@@ -15,8 +16,14 @@
     chamberData* ventricle = new chamberData(io->getSerial(), 'v');
     pulse* ventPulse = new pulse(ventricle,io);
     pulse* atrPulse = new pulse(atrium,io);
+    
+    Thread motionThread(osPriorityNormal);
+    initialize_motion ();
+    motion_set_chamber(0, ventricle);
+    motionThread.start(motion_thread);
+    
     interface a(io->getSerial() , ventPulse , generalData, atrium , ventricle); 
-    //if 
+    
     a.startScreen();