   msg[0] = sw_joy;
   msg[1] = x_joy;
   msg[2] = y_joy;
-  radio.write(msg,1);
+  radio.write(msg,3);
+//  Serial.print(msg[0]);
+//  Serial.print('\t');
+//  Serial.print(msg[1]);
+//  Serial.print('\t');
+//  Serial.println(msg[2]);
 /*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 = 2; //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

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