Julesnaps / Mbed 2 deprecated Linefollowproject

Dependencies:   m3pi mbed

Revision:
22:5d3332fc4c5c
Parent:
21:c3e256b18b96
Child:
23:7e9505da7f48
--- a/main.cpp	Tue Oct 11 11:19:28 2022 +0000
+++ b/main.cpp	Tue Oct 11 11:34:59 2022 +0000
@@ -18,8 +18,11 @@
 
 
 // Textfile paths
-#define PITLOGPATH "pitlog.txt"
-#define VOLTAGELOGPATH "voltage.txt"
+
+
+
+#define PITLOGPATH "local/pitlog.txt"
+#define VOLTAGELOGPATH "local/voltage.txt"
 
 
 // Prototypes
@@ -37,7 +40,7 @@
 void TE_LogVoltage(int count); // test funktion that write the woltage each time the battry is checked
 
 int main() {
-    
+    LocalFileSystem local("local"); 
     m3pi.sensor_auto_calibrate();
     
     /*Base program Variable initiation*/
@@ -55,7 +58,7 @@
     
     /*Create pitlog used to log the number of pitstop */
     PS_CreateLog();
-    
+    TE_CreateVoltageLog();
     /*Printing secret cat mission*/
     InitialMessages();