Assigning an output channel to control a servo motor

Hi all, I am a newbie modifying the ardupilot code. I am trying to control this  fuel mixture controller which is a needle valve controller based on servo movement. I am trying to modify the code to move the servo according to a mathematical model based on barometer readings for altitude that I got for my IC engine. For this purpose I am trying to modify the ardupilot code for implementing my custom function. For doing that I have been trying to understand the RC_Channel library. My question is: How do I assign the APM output channel to read the PWM value that I want?

Thank you 

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • I was just read something last night that may help you. It was in the CHDK section in the instructions. This may help it may not as its definitely off topic. See how you go  maybe going through the other instructions on the ardupilot site may help. Read the "Intergrating CHDK with APM" http://plane.ardupilot.com/wiki/common-chdk-camera-control-tutorial.... From there you may find what you need in the code of the APM.

This reply was deleted.