 
 // Function for returning formatted GPS string
 String getGPSLogString() {
-  return (String(gps.location.lat(),6) + "," + String(gps.location.lng(),6) + ",");
-}
-
+  return (String(gps.location.lat(), gpsDecimalPoints) + "," + String(gps.location.lng(), gpsDecimalPoints) + ",");
+}

#define initExtension "txt"
#define dataExtension "csv"
#define csvLayout "ACCEL_X,ACCEL_Y,ACCEL_Z,GYRO_X,GYRO_Y,GYRO_Z,MAG_X,MAG_Y,MAG_Z,LAT,LNG,"
// end region

// region IMU configuration


// Function for waiting for GPS communication and locking
void setupGPS() {
  for (int i = 0; !gps.location.isUpdated(); i++) {
    readGPS();
    delay(20);
    // Only print locking information every 50 iterations
