 if(accelAverage > APOGEE_ACCEL_THRESHOLD || flightTime > APOGEE_TIME_THRESHOLD) //Add a baro test here?
 {
   flightState = falling;
+  GPS.begin(9600); //Initialize GPS; define output set and data rate
+  GPS.sendCommand(PMTK_SET_NMEA_OUTPUT_RMCGGA);
+  GPS.sendCommand(PMTK_SET_NMEA_UPDATE_1HZ);
+  gpsOnFlag = true;
 }
 break;
 

/*
 * Notre Dame Rocket Team Roll Control Payload Master Code V. 0.8.0
 * Aidan McDonald, 1/12/17
 * To-dones:
  * Basic switch-case structure
  * Incorporation of Adafruit sensor code


float gpsLatitude = 0;
float gpsLongitude = 0;
float gpsAltitude = -1;
char gpsLatDirect = 'A';
char gpsLonDirect = 'B';
int gpsFix = -1;
int gpsFixQuality = -1; //Variables to store GPS data between the SD and radio functions

//Constants/values for sensor calibration
const float seaLevelPressure = SENSORS_PRESSURE_SEALEVELHPA; //Default value of 1013.25 hPa, needs calibration!
