Euler Angle from Body Frame to Inertial Frame

Click For Summary

Discussion Overview

The discussion revolves around the conversion of angular acceleration from the body frame to the inertial frame in the context of modeling a quadcopter using Simulink. Participants explore the use of rotation matrices and Euler angles in this transformation, addressing both translational and rotational aspects of motion.

Discussion Character

  • Technical explanation
  • Exploratory
  • Debate/contested

Main Points Raised

  • One participant describes deriving equations of motion using the Newton-Euler method and questions how to convert angular acceleration to the inertial frame using a rotation matrix.
  • Another participant suggests that while rotational rates can be transformed like vectors, the challenge lies in the changing rates of Euler angles.
  • A participant proposes starting the simulation with aligned body and inertial frames at 0 degrees and using previously solved inertial angles for subsequent iterations.
  • Another participant warns about the complexities of using a rotating coordinate system for both linear and angular accelerations and recommends consulting established references for equations of motion in atmospheric flight.
  • There is mention of simplifying the approach by directly using measured accelerations and rotations in the context of control systems.

Areas of Agreement / Disagreement

Participants express differing views on the best approach to handle the transformation of angular acceleration and the implications of using a rotating coordinate system. No consensus is reached on the optimal method for the simulation.

Contextual Notes

Participants highlight the potential confusion surrounding the use of Euler angles and rotation matrices, as well as the dependency on the initial alignment of frames. The discussion reflects uncertainties regarding the correct application of these concepts in simulations.

Billwaa
Messages
5
Reaction score
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 Newton-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
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.
 
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:
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.
 

Similar threads

  • · Replies 22 ·
Replies
22
Views
2K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 78 ·
3
Replies
78
Views
8K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 25 ·
Replies
25
Views
3K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K