michinyon, writing the code to the SD file as is works just fine. The syntax of that is not the problem I'm having, the SD writing is pretty flawless at the moment, and even works when writing 10-20 lines that is 8-10 variables long in a single second.
PaulS,
The comma in the code is part of the gps.location.lng and gps.location.lat functions when printing the function value. The number after the comma should be an 8.
Running the loop and instead just doing
Serial.print(gps.location.lng(), 8);
Serial.print(gps.locating.lat(), 8);
Prints the global latitude and longitude with 8 decimal places. What it does when setting longitude and latitude (variable names) equal to those function outputs instead just sets both latitude and longitude equal to 8.00. If you know why that is happening, please enlighten me.
Brad,
Thanks for letting me know about the code tags!
The if/else structure was pulled from an example in Mikal Hart's library, I will definitely try your method of writing it. However, do you think this will cause problems with printing a new value to the SD card every iteration of the main Arduino loop?