How to program APM 2 board to read Futaba R6014HS Receiver Signal

Hi,

How do I program APM 2 (ArduPilotMega purple board) to read Futaba R6014HS Receiver Signal after connecting the receiver outputs to the input channels of the APM 2 board? (Transmitter is Futaba 14MZ)

Am I right to say the receiver outputs PWM signal?

Previously, I was using APM 1 and the source code in the link below to get signal value and it works. However, it does not work when I implement it on APM 2. Can someone guide me on this? Thanks!
https://code.google.com/p/ardupilot-mega/source/browse/Tools/ArduPilotMega_demo/Timers.pde?spec=svn65cd457772401712a1ec00079f41f575d9a65bb0&r=65cd457772401712a1ec00079f41f575d9a65bb0

I think your best bet is to post this on the http://diydrones.com/ forum as it is more specific to the ArduCopter APM.

The APM should already be programmed for the receiver and you will need to download the MissionPlanner to calibrate the APM once it is connected to USB.

Hope that helps a little.

Steve