 
 void loop(void)
 {
-
   tx_payload.throttle = joystickMapValues( analogRead(PIN_THROTTLE), 100, 500, 900, false );
   tx_payload.yaw      = joystickMapValues( analogRead(PIN_YAW), 100, 500, 900, false );
   tx_payload.pitch    = joystickMapValues( analogRead(PIN_PITCH), 100, 500, 900, false );
   tx_payload.roll     = joystickMapValues( analogRead(PIN_ROLL), 100, 500, 900, false );
    
-  printf("Now sending throttle %d\n\r ",tx_payload.throttle);
+  if (DEBUG) {
+    //printf("Now sending throttle %d\n\r ",tx_payload.throttle);
+  }
   
   // Stop listening so we can talk.
   radio.stopListening();                                  

  unsigned long now = millis();
  if ( now - ppsLast > 1000 ) {
    pps = ppsCounter;
    ppsCounter = 0;
    ppsLast = now;
  }
    
  delay(50); // Temporary delay
}


unsigned long ppsLast = 0;
int ppsCounter = 0;
int pps = 0;
int ppsLost = 0;
int ppsLostCounter = 0;

void resetPayload() 
{
