Pacemaker code Implementation for SFWRENG 3K04

Dependencies:   FXOS8700Q Queue mbed-rtos mbed

Fork of Pacemaker by Eric dollar

Revision:
30:0cb4890910cd
Parent:
16:08d5e5a3ee74
diff -r c0d63940b0c7 -r 0cb4890910cd dataStruct.h
--- a/dataStruct.h	Tue Nov 29 21:03:33 2016 +0000
+++ b/dataStruct.h	Tue Nov 29 21:30:19 2016 +0000
@@ -6,20 +6,16 @@
 
 #define START_THREAD 1
 
-class dataStruct{
-public:
-    dataStruct(hardware*);
-    ~dataStruct();
+
+    void dataStruct(hardware*);
     queue getData();
-
-private:
+    extern hardware* io;
     static const int N = 13;
     double k_streamPeriod;
     hardware* myHardware;
     double streamValue; 
-    queue myQueue;
+    queue myQueue(1,N);
     static void threadStarter(void const *p);
     void storeData();
     Thread thread;
-    
-};
\ No newline at end of file
+    
\ No newline at end of file