 }
 
 void monitor_setLocalData() {
-  static byte i = 5; 
+  static uint8_t i = 5; 
 
   comm_t payload;
   payload.key = i;
   switch (i) {
     case NRF24_KEY_THROTTLE:
-      payload.val = tx_payload.throttle; 
+      payload.val = throttle; 
       break;
     case NRF24_KEY_YAW:
-      payload.val = tx_payload.yaw; 
+      payload.val = yaw; 
       break;
     case NRF24_KEY_PITCH:
-      payload.val = tx_payload.pitch; 
+      payload.val = pitch; 
       break;
     case NRF24_KEY_ROLL:
-      payload.val = tx_payload.roll; 
+      payload.val = roll; 
       break;
   } 
   

  // Stop listening so we can talk.
  radio.stopListening();                                  
        
  // Take the time, and send it.  This will block until complete 
  //unsigned long time = micros();  
  if (!radio.write( &tx_payload, sizeof(tx_t))) {
    // Got no ack.
    if (DEBUG) {

int ppsLost = 0;
int ppsLostCounter = 0;

uint16_t throttle;
uint16_t yaw;
uint16_t pitch; 
uint16_t roll; 

uint8_t switches = 0; // bit flag

void resetPayload() 
