 on the receiver to verify the message was successfully sent.
 */
   radio.powerDown(); 
-  delay(1000);
+  delay(100);
   radio.powerUp();
 }

  msg[0] = sw_joy;
  msg[1] = x_joy;
  msg[2] = y_joy;
  radio.write(msg,1);
/*delay sending for a short period of time.  radio.powerDown()/radio.powerupp
//with a delay in between have worked well for this purpose(just using delay seems to
//interrupt the transmission start). However, this method could still be improved



//JOYSTICK
const int SW_pin = 3; //Digital pin connected to switch input
const int X_pin = A0; //Analog pin connected to X output
const int Y_pin = A1; //Analog pin connecte to Y output
int x_joy;            //Joystick X Output
