         payload.flags.payload_abort = 0;
         break;
       case DIR_BEGIN_LAUNCH:
-        
+        payload.flags.main_launch = 1;
+        tx_pd = LAUNCH_TX_PD;
         break;
       default:
         digitalWrite(PIN_TEST,LOW);

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

Payload payload_start;
Payload* ptr_payload = &payload;

int tx_pd = STANDBY_TX_PD; //time between message transmission, in ms

// 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);

