bebop_autonomy icon indicating copy to clipboard operation
bebop_autonomy copied to clipboard

How can i get yaw angle with respect to north?

Open lwcworld opened this issue 7 years ago • 2 comments

Can anybody help me to receive the global yaw angle with respect to north ? i can get lat, lon, alt data using ros. But to control the drone outdoor, i need heading anlge. i can get the yaw angle from odometry, but it is not enough to guide it to the specific geodetic position. There are compass and magnetometer sensor in bebop2 drone, but i don't know how to access them.

lwcworld avatar Mar 20 '18 07:03 lwcworld

See the documentation for attitude:

Ardrone3PilotingStateAttitudeChanged

Yaw should be heading in global frame. Please check and comment with result.

thomas-bamford avatar Mar 20 '18 11:03 thomas-bamford

@thomas-bamford Thank you!. i can get global yaw data from Ardrone3PilotingStateAttitudeChanged.

lwcworld avatar Mar 20 '18 12:03 lwcworld