Pacemaker code Implementation for SFWRENG 3K04
Dependencies: mbed Queue mbed-rtos FXOS8700Q
Fork of Pacemaker by
SWFRENG 3K04 Project to design, develop, and document a functional pacemaker.
The project uses the Freescale K64F Microcontroller and C++ mbed library.
Diff: main.cpp
- Revision:
- 34:701503855d52
- Parent:
- 33:686a1a0c690f
- Child:
- 36:b6431cd8ecd6
diff -r 686a1a0c690f -r 701503855d52 main.cpp --- a/main.cpp Mon Dec 12 03:31:55 2016 +0000 +++ b/main.cpp Tue Dec 13 03:46:34 2016 +0000 @@ -17,6 +17,7 @@ chamberData* ventricle = new chamberData('v'); pulse* ventPulse = new pulse(ventricle,io); pulse* atrPulse = new pulse(atrium,io); + sense* isSense = new sense(generalData); // Thread motionThread(osPriorityNormal); // initialize_motion (); @@ -24,7 +25,7 @@ // motionThread.start(motion_thread); Thread vviThread(osPriorityNormal); - vvi_set_chamber(atrPulse); + vvi_set_chamber(atrPulse,atrium,isSense); vviThread.start(start_VVI); // Thread egramThread(osPriorityNormal); @@ -38,6 +39,8 @@ delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc. delete atrium; delete ventPulse; + delete atrPulse; + delete isSense; delete io; return 0;