I have two different systems (Engine A, Engine B). Engine A (Motive Tracking Software) generates (Yaw, Pitch, Roll) and Engine B (Cinema 4D) expects (Heading, Pitch, Bank).

My research brought me to the result that there is no difference between those two systems.

Yaw     Pitch   Roll
Heading Pitch   Bank
Y       X       Z

However, for some reason, when I import the values, I get a mismatch.

My Input values are the following.

Frame, Yaw, Pitch, Roll 

0,  179.98199463, 5.58994007, 20.91039276

1,  -0.02482126, 0.21532322, -0.06678514

2,  -0.03007862, 0.24067645, -0.12998220

But when I import the values, I am getting weird numbers:

Frame, Heading, Pitch, Bank

0, 119.383, -16.126, 72.529

1, -1.422, 12.337, -3.827

2, -1.723, 13.79, -7.447

It would be great if you could give me a hint, or if there is a difference between those systems, that you provide me the correct calculation.

有帮助吗?

解决方案

Yaw, Pitch, Roll is the same as Heading, Pitch, Bank.

I was getting weird numbers as Cinema4D was expecting radiant numbers. I've figured out as I was passing for testing purposes (1, 1, 1) for all three axes.

其他提示

Outdated post maybe but I must correct something here. Heading is not the same as yaw. If for example, an aircraft pitches up by 45 deg, and then yaws to the left by 15 degrees, it will not change in heading by 15 deg. Instead it will pitch down and to the left and the heading and pitch will change by less than 15 deg, although the total angle change of heading and pitch combined will be 15 deg.

Yaw, pitch, and roll are different from heading, attitude, and bank. Heading, attitude, and bank are what the 3-2-1 Euler angles correspond to. Yaw, pitch, and roll should be thought of as motions. "The vehicle pitches, the vehicle yaws, the vehicle rolls," etc. If you have the angular velocity vector, then projections along the vehicle frame yield the yaw rate, pitch rate, and roll rate.

As another user pointed out, if a vehicle pitches up 45 degrees to an attitude of 45 degrees, and then executes a yawing motion, you are not only varying the heading, but the attitude and bank as well. For example, if the vehicle then yaws 90 degrees, the end result will be that its heading will be 90 degrees off from the original configuration, its attitude will be 0 degrees, and its bank will be 45 degrees.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top