Implementing a piece of code into the XBee Wireless transmitter.

Hope this is in the right place. I am new here.
I need to implement this into the wireless transmitter/receiver for the Xbee. Its with an Arduino Uno.
Code is here.
Joystick commands need to be transmitted to board.

I am confused. What is it you are looking for assistance with?