eric's fork test
Fork of Pacemaker by
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 #pragma once 00002 #include "mbed.h" 00003 #include "chamberData.h" 00004 #include "genData.h" 00005 #include "pulse.h" 00006 #include "hardware.h" 00007 #include "interface.h" 00008 #include "voor.h" 00009 #include "sense.h" 00010 #include "rtos.h" 00011 00012 int main(){ 00013 hardware* io = new hardware(); 00014 genData* generalData = new genData(); 00015 chamberData* atrium = new chamberData(io->getSerial(),'a'); 00016 chamberData* ventricle = new chamberData(io->getSerial(), 'v'); 00017 pulse* ventPulse = new pulse(ventricle,io); 00018 pulse* atrPulse = new pulse(atrium,io); 00019 interface a(io->getSerial() , ventPulse , generalData, atrium , ventricle); 00020 //if 00021 a.startScreen(); 00022 00023 00024 delete ventricle; //code never reaches here, since we're stuck in the while loops of the pacing, user interface, etc. 00025 delete atrium; 00026 delete ventPulse; 00027 delete io; 00028 00029 return 0; 00030 }
Generated on Thu Jul 14 2022 00:42:53 by
1.7.2
Eric Tran
