Euler Angle from Body Frame to Inertial Frame?

64 ビュー (過去 30 日間)
Yu Hin Hau
Yu Hin Hau 2015 年 3 月 21 日
回答済み: Christiaan 2015 年 3 月 23 日
I am trying to build a Simulink model for my quadcopter project.
I derived the equations of motion using the Newtown-Euler method in the body frame to get transnational and angular acceleration.
For the transnational part, I can simply use a rotation matrix to convert the accelerations back into the inertial frame.
But what about the rotational part?
Assuming that subscript n is the inertial frame and subscript c is the body frame. And then in the rotation matrix, c is cos and s is sin.
The equations on the top right are derived in body frame. I want to convert to inertial frame by transposing the rotation matrix in lower right. The rotation matrix is derived using Euler ZYX multiplication. The angles in the rotation matrix are inertial frame?
To run this process in a simulation loop, I will use the inertial angles from the previous loop for the rotation matrix to get current inertial angle?
Thanks,

回答 (1 件)

Christiaan
Christiaan 2015 年 3 月 23 日
Dear Yu Hin Hau,
If the transformation matrix from the inertial frame to the body frame is known, and you would like to know the transformation matrix from the the body frame to the inertial frame, you could use the MATLAB function transpose, to switch the indices of the transformation matrix. This is allowed, since the transformation matrix is orthogonal.
Good luck! Christiaan

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by