Skip to content

problem of bodyrate controller #109

Description

@johnwaneboy

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions