DIrection cosine matrix sequence question. Roll - pitch - moment.

2 ビュー (過去 30 日間)
David Ahlmark
David Ahlmark 2017 年 2 月 1 日
編集済み: John D'Errico 2017 年 2 月 1 日
Hello! When trying to first make a roll-pitch-moment and then another roll, it cannot convert the second transformation, the 3D plot goes into an unwanted direction.
[cosd(teta) 0 -sind(teta);[1 0 0 ;
0 cosd(phi) sind(phi);
0 -sind(phi) cosd(phi)]*
0 1 0 ;
sind(teta) 0 cosd(teta)]*Velocity_matrix=New_velocity_matrix
And then perform
[1 0 0 ;
0 cosd(phi) sind(phi);
0 -sind(phi) cosd(phi)]*New_velocity_matrix
it doesnt work but flips it with respect to inertial frame. Any suggestion? Kind regards
  1 件のコメント
Jan
Jan 2017 年 2 月 1 日
編集済み: Jan 2017 年 2 月 1 日
I assume something went wrong during typing the message: The first matrix contains another matrix. Is this intented? Use the "{} Code" button for formatting. Thanks.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2017 年 2 月 1 日
編集済み: Jan 2017 年 2 月 1 日
The code does exactly, what is defined mathematically. If this moves the vectors in an "unwanted direction", you want to do something else - but we cannot guess what it is.
A frequent problem with rotation matrices is the definition, if the rotate the vectors or the reference frame. Both points of view are valid, but the results differ. Does applying the transposed rotation matrices satisfy your needs?

カテゴリ

Help Center および File ExchangeCreating and Concatenating Matrices についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by