 
 // *********************************************************************
 // GPS Receiver subroutines
-void getField(char* buffer, int index)
+void ExtractGPSComponent(char* buffer, int index)
 {
   int sentencePos = 0;
   int fieldPos = 0;
   int commaCount = 0;
   while (sentencePos < sentenceSize)
   {
-    if (sentence[sentencePos] == ',')
+    if (GPSRawData[sentencePos] == ',')
     {
       commaCount ++;
       sentencePos ++;
     }
     if (commaCount == index)
     {
-      buffer[fieldPos] = sentence[sentencePos];
+      buffer[fieldPos] = GPSRawData[sentencePos];
       fieldPos ++;
     }
     sentencePos ++;




void PrintToSerialOutput(float Temperature, float Pressure, float Altitude, float Latitude, float Longitude) {

  // We print each component of the data line using separate calls instead of using something like sprintf to
  // format a single string.  This is done because the version of sprintf available to us for the Arduino does
  // not support floats.  This was the simplest Plan B we could come up with.
  
  Serial.print(Temperature, 2);
  Serial.print(",");
  Serial.print(Pressure, 0);

    CurrentPressure = GetPressure(bmp085ReadUT(), bmp085ReadUP());
    CurrentAltitude = CalculateAltitude(CurrentPressure);
    
    PrintToSerialOutput(CurrentTimeStamp, CurrentTemp, CurrentPressure, CurrentAltitude, CurrentLatitude, CurrentLongitude);
    WriteDataToLogger(CurrentTimeStamp, CurrentTemp, CurrentPressure, CurrentAltitude, CurrentLatitude, CurrentLongitude);

    // TODO: What data do we write to the radio?
    // TODO: How frequently should we write data to the radio?
