New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Copter: gimbal servos sent to limits during startup #168

Closed
ethomas997 opened this Issue Mar 25, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@ethomas997
Contributor

ethomas997 commented Mar 25, 2013

Using ArduCopter v2.9.1, the camera gimbal servos run OK after the copter has finished its startup procedure, but during the startup the servos are sent to one end of travel. It seems like the 'aux' servo outputs are enabled before they are commanded to any position. I tried some different things with the code, but the best work-around I could come up with is to add these lines to the end of the 'init_rc_in()' function in "radio.pde":

RC_Channel_aux::move_servo(RC_Channel_aux::k_mount_roll, 500, 0, 1000);
RC_Channel_aux::move_servo(RC_Channel_aux::k_mount_tilt, 500, 0, 1000);
RC_Channel_aux::move_servo(RC_Channel_aux::k_mount_pan, 500, 0, 1000);

This initializes the mount servo outputs to the mid position, rather than defaulting to the end. A copy of the v2.9.1 "radio.pde" file with the above work-around is available here: http://www.etheli.com/miscfiles/radio_pde_mountFix.zip

A couple of other people have also had the same issue and posted in the comments here: http://code.google.com/p/arducopter/wiki/AC2_Camera

--ET

@jmachuca77

This comment has been minimized.

Show comment
Hide comment
@jmachuca77

jmachuca77 Jul 17, 2018

Contributor

Refers to very old code I think this can be closed.

Contributor

jmachuca77 commented Jul 17, 2018

Refers to very old code I think this can be closed.

@ethomas997

This comment has been minimized.

Show comment
Hide comment
@ethomas997

ethomas997 Jul 17, 2018

Contributor

Agreed.

Contributor

ethomas997 commented Jul 17, 2018

Agreed.

@ethomas997 ethomas997 closed this Jul 17, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment