Euler Angle from Body Frame to Inertial Frame

In summary: However, if you are working on a more controlled problem with sensors and actuators, you will need to account for the coordinate transformations.
  • #1
Billwaa
5
0
Hi,

This is not really a homework problem, but a project I'm working on.
So, I am trying to build a Simulink model for my quadcopter.

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? Can I use the rotation matrix to get my angular acceleration in inertial frame? If so, how do I obtain the angles inside the rotation matrix since they are in inertia frame to start with I assume...

Can this problem be solved by starting the simulation aligning the Body Frame and Inertial Frame, using all 0 degrees as the initial inertial angle. Then in the next iteration, just use the inertial frame angles solved in the previous iteration?

Thanks,
 
Physics news on Phys.org
  • #2
Billwaa said:
But what about the rotational part? Can I use the rotation matrix to get my angular acceleration in inertial frame?
Rotational rate is a vector and can be transformed like any other vector, But as you stated, the problem is that the Euler angles have a rate of change.
Can this problem be solved by starting the simulation aligning the Body Frame and Inertial Frame, using all 0 degrees as the initial inertial angle. Then in the next iteration, just use the inertial frame angles solved in the previous iteration?
Yes. The rotational forces and rates can be analysed in the inertial coordinate system that is instantaneously aligned with the body axis.
 
  • #3
Euler%20Angle%20to%20Inertia%20Frame.png
Thanks for the response! So just to make sure I understand this correctly since this stuffs is kinda confusing.

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 inertia angle?

Thanks again :)
 
Last edited:
  • #4
If you are trying to calculate the motion of an airplane for analysis or simulations, you can not avoid the problems with a rotating coordinate system, even for the linear accelerations. You should look at some references for the equations of motion and follow those equations. In atmospheric flight, some standard references are "Aircraft Dynamics and Automatic Control" by McGruer et al, or "Dynamics of Atmospheric Flight" by Etkin.

If you are worrying about the control system and the gyro/accelerometer inputs, then you can probably simplify things greatly. The measured accelerations and rotations are often what you want to use directly.
 

1. What are Euler angles?

Euler angles are a set of three angles that represent the orientation of a rigid body in three-dimensional space. They are used to describe the rotation of a body from one coordinate system (body frame) to another (inertial frame).

2. How are Euler angles measured?

Euler angles are measured in radians or degrees, depending on the preference of the user. The angles are typically measured in a specific order (e.g. roll, pitch, yaw) and around a specific set of axes (e.g. x, y, z).

3. What is the difference between Euler angles and quaternions?

Euler angles and quaternions are both used to describe the orientation of a rigid body. However, quaternions use four numbers to represent orientation, while Euler angles use three. Quaternions are also less prone to issues such as gimbal lock, making them more commonly used in computer graphics and robotics applications.

4. How do I convert Euler angles to a rotation matrix?

To convert Euler angles to a rotation matrix, you can use trigonometric functions to calculate the values for each element in the matrix. The specific calculations will depend on the order and sequence of the Euler angles being used.

5. Why are Euler angles useful?

Euler angles are useful because they provide a simple way to represent the orientation of a rigid body in three-dimensional space. This makes them commonly used in applications such as flight dynamics, robotics, and computer graphics. Additionally, they can be easily converted to other forms of orientation representation, such as quaternions or rotation matrices.

Similar threads

Replies
12
Views
3K
  • Introductory Physics Homework Help
Replies
3
Views
941
  • Engineering and Comp Sci Homework Help
Replies
10
Views
962
  • Engineering and Comp Sci Homework Help
Replies
1
Views
3K
  • Special and General Relativity
3
Replies
78
Views
4K
Replies
25
Views
1K
Replies
18
Views
964
Replies
1
Views
536
  • Introductory Physics Homework Help
Replies
1
Views
827
Back
Top