Centering servo before disarm

For my project I am using a linear servo. When the pixhawk is disarmed the linear servo will stay in position. So if it is fully extended for a left turn, when the pixhawk is disarmed the servo will stay fully extended.

Is there a way (such as a command) that will center a steering servo? The uav will be controlled via cellular signal commands to the pixhawk via mavlink pushed by an arduino board.

Example: Before sending a command to the pixhawk to disarm, i want to make sure the servo is in the neutral position. So I would want to send a "servo return to neutral position" command before the "pixhawk disarm" command.

thanks!

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

Join diydrones

Email me when people reply –

Replies

  • Switching to HOLD mode before you disarm should set the steering and throttle to their trim positions.

     

    Depending on the speed of your steering, you may want to give a one or two second delay before the disarm.

  • Admin

    @TSC,

    I believe that when the Pixhawk is disarmed the Servo Output channels go to OFF (no output). That is what I have seen with my servo tester, that can measure the PWM output of a servo output channel, on the throttle channel and I would assume the steering channel too, prior to arming and after disarming the Pixhawk.

    Regards,

    TCIII ArduRover2 Developer

  • Developer

    Hi The Sea Captain,

    i guess you want to checkout MANUAL_CONTROL

    or RC_CHANNELS_OVERRIDE for this.

    Regards,

    Linus

This reply was deleted.