 /*--debug macros--*/
 //#define readDebug //print Serial1 reads to console
 //#define writeDebug //print Serial1 writes to console
-#define fakeGPS //fake the presence of a gps
+//#define fakeGPS //fake the presence of a gps
 //#define rawGPSDebug //print raw gps data to console
+
+#define LAUNCH_TX_PD 250;
+#define STANDBY_TX_PD 3000;
 
 #define PIN_TEST 13
 #define PIN_PAYLOAD_ABORT 12

Payload payload_start;
Payload* ptr_payload = &payload;

enum States {
  STOPPED, PRE_LAUNCH, POST_LAUNCH, ERROR 
};

States state = STOPPED;

// XBee's DOUT (TX) is connected to pin 0 (Arduino's Hardware RX)
// XBee's DIN (RX) is connected to pin 1 (Arduino's Hardware TX)

SoftwareSerial gpsSerial(8, 7);
Adafruit_GPS GPS(&gpsSerial);


  
  // if millis() or timer wraps around, reset
  if (timer > millis())  timer = millis();
  if (millis() - timer > tx_pd) {
    timer = millis(); // reset the timer
    
    #ifdef fakeGPS //fake gps data
