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)
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
Jan
Jan on 23 Jun 2018
Edited: Jan on 23 Jun 2018
The question is not clear. What does "-0.19i - 0.69j + 0.69k" mean? While 1i and 1j are the imaginary units, what is 0.69k? Please edit the question and add mire details.
Jim Riggs
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.

Sign in to comment.

Answers (1)

Matt J
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
Jeffrey Hanson
Jeffrey Hanson on 29 Jun 2018
I did truncate the values. I'm also learning by doing, please forgive my ignorance.
To give some context, I've got a Tethered Undersea Kite (it looks like a drone with wings) traveling through the water. It's continually performing a figure 8 along the sphere that is the tether length. At the outer edge of the figure 8 the kite needs to perform a roll such that it's belly is still facing the tether origin. It's important to know how much the kite rolls from point to point because that affects the Lift to Drag Ratio (L/D is a Performance Indicator).
I have the means to determine which way the Face, Belly, and Wing are facing at any given point. So if I could determine Yaw-Pitch-Roll angles from that it would be extremely useful.
Matt J
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.

Sign in to comment.

Categories

Find more on Simulink in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!