# From Yaw to Degree Heading

This topic is 3784 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I found this in a very old thread: ---------- In other words picture yourself in an airplane: Yaw is turning right or left Pitch is turning up or down Roll is dipping one wing or the other ---------- Is there an easy way or formula to convert Yaw (in this example) to a 360 degree heading?

##### Share on other sites
What units are your yaw calculations in?

What is the default facing vector of your models?

##### Share on other sites
It was mostly a philosophical question really, I hadn't really done anything practical as yet with it. I just was doing research on 'yaw'/'pitch'/'roll' and was curious if/how the translation would be done.

So, I suppose in answering the question we could use whatever the most standard default vector and units would be.

##### Share on other sites
The pitch/yaw/roll described in that excerpt is actually talking about relative motion in the airplane's local reference frame (i.e. what happens when you rotate the rudder or ailerons), not an absolute orientation. It doesn't make sense to "convert" between them. For instance, if you knew that turning the steering of your car to the right always turned your car right, that wouldn't actually be enough information to know what direction your car was heading. Ironically, that's something you'd already need to know for steering to be useful.

So if you already had an absolute orientation, then you would be able to determine how it changed depending on the airplane's relative motion. But this is something you need to know a priori.

##### Share on other sites
You could project your local forward vector onto the ground plane and get the heading using a simple atan2-call. You should be able to get a local forward vector in global coordinates using your Yaw/pitch/roll-values, or a local-to-global-matrix constructed from those Yaw/pitch/roll-values.

Hope this helps :)

1. 1
Rutin
45
2. 2
3. 3
4. 4
5. 5

• 10
• 28
• 20
• 9
• 20
• ### Forum Statistics

• Total Topics
633407
• Total Posts
3011699
• ### Who's Online (See full list)

There are no registered users currently online

×