How do I determine roll given before and after vectors for the orientation of a planes face, belly, and wing?
2 views (last 30 days)
Show older comments
For example my before (t=0 seconds) vectors are
Face = -0.19i - 0.69j + 0.69k
Belly = -0.92i - 0.12j - 0.37k
Wing = -0.34i + 0.71j + 0.62k
and my after vectors (t=0.03 seconds) are
Face = -0.14i - 0.71j + 0.69k
Belly = -0.93i - 0.15j - 0.34k
Wing = -0.34i + 0.69j + 0.64k
2 Comments
Jim Riggs
on 23 Jun 2018
Edited: Jim Riggs
on 23 Jun 2018
It is common to use i,j, and k as unit (basis) vectors along the x, y, and z axes, respectively.
Still, there is not enough description of the problem. A picture is worth a thousand words. In fact, you might find that when you draw the picture, you will answer your question.
Answers (1)
Matt J
on 24 Jun 2018
Edited: Matt J
on 25 Jun 2018
If you download ABSOR you can use it to figure out the rotation matrix corresponding to the change in the plane's orientation,
Before=[-0.92, - 0.12, - 0.37;
-.19,-.69,+.69;
-0.34, + 0.71, + 0.62].';
Before=Before./sqrt(sum(Before.^2));
After=[-0.14, - 0.71, + 0.69;
-0.34, + 0.69, + 0.64
-0.93, - 0.15, - 0.34;].';
After=After./sqrt(sum(After.^2));
reg=absor(Before,After,'doTrans',0);
You can then use the attached utility files to convert to yaw-pitch-roll,
ypr=rot2ypr(reg.R);
roll=ypr(3),
4 Comments
Matt J
on 29 Jun 2018
Great, then it seems I answered your question? If so, please Accept-click the answer to certify that it addressed your issue.
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!