CE201 Embedded : 2022-23 / Mbed 2 deprecated Car

Dependencies:   mbed

Revision:
2:7cb9c966a781
Parent:
1:832c213480a8
Child:
3:147e7a35d2c3
--- a/main.cpp	Thu Feb 16 15:19:30 2017 +0000
+++ b/main.cpp	Thu Feb 16 16:00:18 2017 +0000
@@ -1,4 +1,5 @@
 #include "mbed.h"
+#include <fstream>
 
 #define MAX 0x0A
 
@@ -19,6 +20,8 @@
 int US4_mean[MAX]={0,0,0,0,0,0,0,0,0,0};
 int US5_mean[MAX]={0,0,0,0,0,0,0,0,0,0};
 
+std::string telemFile;          //file holding info about 
+
 void setActiveUS(int chan);
 
 int getPing(void);
@@ -75,3 +78,7 @@
     return result;      //should just do "return [operation that gives result];" for efficiency
 }
 
+void telemSave(std::string data) {
+    std::ofstream file;
+    
+}
\ No newline at end of file