 // end region
 
 // region library instantiation
+TinyGPSPlus gps;
 Data_module dataModule(sdChipSelect, debugSerialBaud, initFileName, dataFileName);
 Sensor_helper helper(Ascale, Gscale, Mscale, Mmode, &dataModule); // Data_module required for sensor debug
 // end region

  }
}

// Simple function for building a CSV formatted string from a 3 element array
String getIMULogString(float * data) {
  return (String(data[0], DEC) + "," + String(data[1], DEC) + "," + String(data[2], DEC) + ",");

}

void loop() {
  readGPS();

  readIMU();
  readGyro();

  delay(200);
  dataModule.println(getIMULogString(accelData)+getIMULogString(gyroData)+getIMULogString(magData));
  dataModule.println(getGyroLogString(L3G4200DData));
  dataModule.println("Got " + String(gps.charsProcessed(), DEC) + " chars");
}

// ------------------------------------------------------------
