Skip to content
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

Enable gimbal control using SET_ACTUATOR_CONTROL_TARGET while controlling the vehicle offboard #12146

Merged
merged 2 commits into from
Jun 16, 2019

Conversation

Jaeyoung-Lim
Copy link
Member

@Jaeyoung-Lim Jaeyoung-Lim commented Jun 3, 2019

Describe problem solved by the proposed pull request
When trying to control the gimbal using mavlink command SET_ACTUATOR_CONTROL_TARGET, all other will be ignored. This results in a crash when you try the gimbal with SET_ACTUATOR_CONTROL_TARGET and fly the vehicle in offboard mode by body_rate and thrust setpoints.( Issue reported in #12029)

This PR sets a flag so that not all setpoints are ignored when SET_ACTUATOR_CONTROL_TARGET is controlling the gimbal control group. This enables applications such as human tracking while the vehicle is in offboard mode.

Test data / coverage
The gimbal actuator setpoints were tested while the vehicle was flown a circular trajectory with body_rate and thrust setpoints. vmount was disabled in order to control the gimbal directly in all the tests. Video

Screenshot from 2019-06-03 02-44-47

Describe your preferred solution
SET_ACTUATOR_CONTROL_TARGET is not ignored iff the control group of the actuator setpoint is a gimbal.

Additional context
Sending high rate actuator_setpoints still make the vehicle unstable. body_rate setpoints becomes jittery when actuator setpoints are sent at high rates(100Hz). This is still being looked into, but enabling this at 10Hz seems still worth merging into master.

@Jaeyoung-Lim Jaeyoung-Lim force-pushed the pr-actuator-setpoints branch 2 times, most recently from 08d7bd1 to 91f1846 Compare June 4, 2019 01:51
@Jaeyoung-Lim Jaeyoung-Lim force-pushed the pr-actuator-setpoints branch from 91f1846 to 02ef019 Compare June 4, 2019 12:03
Copy link
Contributor

@julianoes julianoes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thanks @Jaeyoung-Lim!

@dagar dagar merged commit d7d0bd2 into PX4:master Jun 16, 2019
@Jaeyoung-Lim Jaeyoung-Lim deleted the pr-actuator-setpoints branch June 16, 2019 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants