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

problem of bodyrate controller #109

Open
johnwaneboy opened this issue Dec 18, 2021 · 0 comments
Open

problem of bodyrate controller #109

johnwaneboy opened this issue Dec 18, 2021 · 0 comments

Comments

@johnwaneboy
Copy link

I want to control the UAV in the mode of BODY_RATES.

the related code is as follow:
self.pub_setpoint = rospy.Publisher('/hummingbird/autopilot/control_command_input', ControlCommand, queue_size=10)
aa=ControlCommand()
aa.header.stamp =rospy.Time.now()
aa.expected_execution_time =rospy.Time.now()
aa.control_mode = 2
aa.armed = True
aa.bodyrates.x =pi/12
aa.bodyrates.y =pi/12
aa.bodyrates.z =pi/12
aa.collective_thrust = 3.0
self.pub_setpoint.publish(aa)

And the rate is 50Hz

But the UAV has no response, and still in hover state. So what is the problem?

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

No branches or pull requests

1 participant