Camera stabilization setup

In AC2 what is the method for adjusting the amount of correction for camera stabilization?In Ardupirates NG I recall having to edit two values in the code, and compiling the code to adjust the amount of roll and pitch to apply to the camera mount servos.

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

Join diydrones

Email me when people reply –


  • Moderator

    Ok so I still have to edit the code.  I was kinda hopping camera stablization setting could be edited on the fly in mission planner or via the CLI

  • You have to go on Camera.pde and there you can trim the cam and reverse the channel:

        g.rc_camera_pitch.radio_min     = 1000;
        g.rc_camera_pitch.radio_trim     = 1500;
        g.rc_camera_pitch.radio_max     = 2000;

        g.rc_camera_roll.radio_min         = 1000;
        g.rc_camera_roll.radio_trim     = 1300;
        g.rc_camera_roll.radio_max         = 2000;


    Pitch: from + to -

    APM_RC.OutputCh(CH_5, g.rc_camera_pitch.radio_out);


    APM_RC.OutputCh(CH_5, -g.rc_camera_pitch.radio_out);


    Roll: from + to -

    APM_RC.OutputCh(CH_6, g.rc_camera_roll.radio_out);


    APM_RC.OutputCh(CH_6, -g.rc_camera_roll.radio_out);


    I hope I helped you

This reply was deleted.


Shivchand Jaysaval liked Shivchand Jaysaval's profile
Aug 25