![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Initial Publish Leaning GPS/SDCARD
Dependencies: FileManager GPSGms6 SDFileSystem mbed
Fork of 2545_SD_Card by
Diff: main.cpp
- Revision:
- 4:aa7ac2ac6913
- Parent:
- 3:78eaf4291b84
- Child:
- 5:07aaa6e3784c
diff -r 78eaf4291b84 -r aa7ac2ac6913 main.cpp --- a/main.cpp Fri May 06 20:23:08 2016 +0000 +++ b/main.cpp Mon May 09 08:59:23 2016 +0000 @@ -38,7 +38,7 @@ printf("\r\nGps indicator = %s", gps.latestGPRMC().indicator); logGPSData( gps.latestGPRMC().date, gps.latestGPRMC().time); - serial.printf("\n#### Restart Timer #####"); + serial.printf("\r\n#### Restart Timer #####"); t1.attach(&t1out,gps_interval); } @@ -51,11 +51,20 @@ ////////////////////// read Setup File ////////////////////////// readSetupFile(); gps_interval = (float)GPSInterval()/1000; + + Variable_Data_TypeDef * var_list = readVarFile(); logSystemData(gps_interval); + unsigned int amount = getVarListAmount(); + for (int i = 0; i < amount ; i++) + { + serial.printf("\r\n first var name = %s ",var_list[i].varName); + serial.printf("\r\n first addr name = %s ",var_list[i].varAddress); + } + /////////////////////////////////////////////////// serial.printf("\n End of SD Card Initialization "); - + gps.start_GPS(); t1.attach(&t1out,gps_interval); while(1); }