Correct format of GPS Coordinates

The code that prints the GPS latitude and longitude to the SD card can be found here:

https://github.com/sparkfun/OpenLog_Art … ensors.ino

              if (nodeSetting->logPosition)
              {
                sprintf(tempData, "%d,%d,", nodeDevice->getLatitude(), nodeDevice->getLongitude());
                strcat(outputData, tempData);
              }

As I suspected, integers are printed.

The measurement units are described here:

https://github.com/sparkfun/OpenLog_Art … NSS-boards

This cryptic notation probably means that the integer represents decimal degrees multiplied by 10^7 or 10 million.

Lat & Lon gps_Lat,gps_Long Degrees-7

So, convert the integer to double and multiply by 1.0E-7 to get decimal degrees.