most functionality to splashdwon, find neutral and start mission. short timeouts still in code for testing, will adjust to go directly to sit_idle after splashdown

Dependencies:   mbed MODSERIAL FATFileSystem

Revision:
76:c802e1da4179
Parent:
74:d281aaef9766
Child:
80:4e5d306d695b
--- a/MbedLogger/MbedLogger.cpp	Thu Aug 16 13:57:19 2018 +0000
+++ b/MbedLogger/MbedLogger.cpp	Thu Aug 16 21:47:40 2018 +0000
@@ -123,13 +123,11 @@
         
     string blank_space = ""; //to get consistent spacing in the file (had a nonsense char w/o this)
     
-    //record the string state, integer state, and then the data
-    //_heading_string is 254 characters long, packet size is 254 characters long (matches _heading_string)
+    //below this format is used for data transmission, each packet needs to be 254 characters long (not counting newline char)
     
-    fprintf(_fp, "%16s,%.2d,%10d,",string_state.c_str(),current_state,data_log_time);
-    //%5.0f altimeter ch reading was for spacing (it's 0 to 4096)
-    //be careful with the spacing, the int psi was printing out too many decimal places (now it's %6.2f)
-    fprintf(_fp, "%5.1f,%5.1f,%6.1f,%6.1f,%4.0f,%4.0f,%6.1f,%5.1f,%5.1f,%5.1f,%5.1f,%6.1f,%6.1f,%6.3f,%6.2f,%5.0f,%6.2f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%4.1f,%4.1f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%4.1f,%4.1f\n",
+    //verified that this generates the correct line length of 254 using SOLELY an mbed 08/16/2018
+    fprintf(_fp, "%17s,%.2d,%10d,%5.1f,%5.1f,%6.1f,%6.1f,%4.0f,%4.0f,%6.1f,%5.1f,%6.1f,%5.1f,%6.1f,%6.1f,%6.1f,%6.3f,%6.2f,%5.0f,%6.2f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%6.2f,%5.3f,%5.3f,%4.1f,%4.1f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%5.3f,%4.1f,%4.1f\n",
+    string_state.c_str(),current_state,data_log_time,
     _data_log[0],_data_log[1],_data_log[2],_data_log[3],_data_log[4],_data_log[5],_data_log[6],_data_log[7],_data_log[8],_data_log[9],_data_log[10],_data_log[11],_data_log[12],_data_log[13],_data_log[14],_data_log[15],
     _data_log[16],_data_log[17],_data_log[18],_data_log[19],_data_log[20],_data_log[21],_data_log[22],_data_log[23],_data_log[24],_data_log[25],_data_log[26],_data_log[27],_data_log[28],_data_log[29],_data_log[30],
     _data_log[31],_data_log[32],_data_log[33],_data_log[34],_data_log[35]);