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.
https://codebender.cc/sketch:187355
Joystick commands need to be transmitted to board.
Thanks

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