Question about rotation and reference

  • Thread starter Thread starter fenestren
  • Start date Start date
  • Tags Tags
    Reference Rotation
Click For Summary

Discussion Overview

The discussion revolves around the transformation of the Earth's magnetic field vector from the Earth-NED reference frame to the Body-NED reference frame of a car. It explores the complexities involved in using yaw, pitch, and roll angles to describe the car's orientation and how these affect magnetometer readings while the car is in motion.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes the reference systems for the car and the Earth's magnetic field, detailing the orientation of axes and the definition of yaw, pitch, and roll angles.
  • Another participant suggests forming a single transformation matrix to convert the magnetic field vector from the Earth-NED frame to the Body-NED frame, noting the complexities of using yaw-pitch-roll angles.
  • A participant expresses confusion about the relationship between roll, pitch, and yaw, particularly how changing one affects the others when the car is in motion.
  • Another participant recommends consulting Wikipedia for information on creating rotation matrices from yaw-pitch-roll angles, acknowledging the challenges involved in the process.
  • A later reply indicates that the original poster found a solution through further reading online, implying that the discussion may have reached a resolution for them personally.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the transformation of the magnetic field vector and the use of yaw-pitch-roll angles. While one participant claims to have solved the issue, others remain uncertain about the complexities involved, indicating that multiple views on the topic persist.

Contextual Notes

The discussion highlights limitations in understanding the interaction between different rotational angles and their impact on magnetometer readings, as well as the potential for confusion in applying rotation matrices.

fenestren
Messages
9
Reaction score
0
Hi.

Let's suppose to have a car with a reference system called Body-NED with its origin in the center of gravity of the car, Xb-axis (called North) pointing towards the front of the car, Yb-axis (called East) pointing towards the right door and Zb-axis (called Down) pointing...down the street of course :smile:

On this car there is a magnetometer to measure the magnetic field.

Finally we have the Earth's magnetic field that has it's own reference system called Earth-NED with center in the Earth's surface where the car is located and with X-North and Y-East axes laying on the plane perpendicular to Earth's gravity field, while Z-Down is parallel to Earth's gravity field: therefore, X-North points toward magnetic North and Y-East is perpendicular to X-North and Z-Down as regards to the right hand rule.

The Earth's magnetic field is a vector H with components He_x, He_y and He_z with respect to Earth-NED X,Y,Z reference.

Three attitude angles for the car are referenced to the local horizontal plane which is perpendicular to Earth’s gravity.

Yaw is defined as the angle between the Xb axis and the magnetic north on the horizontal plane measured in a clockwise direction when viewing from the top of the car.

Pitch is defined as the angle between the Xb axis and the horizontal plane. When the car is rotating around the Yb axis with the Xb axis moving upwards, pitch is positive and increasing.

Roll is defined as the angle between the Yb axis and the horizontal plane. When the car is rotating around the Xb axis with the Yb axis moving downwards, roll is positive and increasing.

What's the magnetic field measured by the magnetometer on the car?

I know that there are three rotation matrices built on yaw, pitch and roll angles and the product of them has to be used, but I'm confused about the sequence and the change of reference field.

Can you help me please?
Thank you.

 
Engineering news on Phys.org
If I understand you correctly, your problem is transforming the H vector from the Earth-NED frame to the Body-NED frame? You should be able to form a single transformation matrix which you can multiply by the H vector to get it in the Body-NED frame.

This is a common task for 3D graphics so if you look in that area you can find plenty of information.

Do you really have to express the car's orientation as yaw-pitch-roll? They're extremely confusing variables. For example if it's got a non-zero roll, then you try to change the pitch, you have to also change either the roll angle or the yaw angle at the same time.

If you express the orientation as 2 vectors in Earth-NED space, say Xb and Yb, then it's quite easy to form the transformation matrix. Tho I can't remember how off the top of my head. I think you basically just put the 3 orientation vectors (the 3rd is uniquely determined by the other 2), into each row or column of a 3x3 matrix, and it's finished.
 
Hi,
yes, my problem is that the car, while running on the road, can go up/down a hill (pitch), or can have side slope (roll) or even not-zero yaw, pitch and roll angle at the same time and magnetometer readings are attitude-related :(

For example if it's got a non-zero roll, then you try to change the pitch, you have to also change either the roll angle or the yaw angle at the same time.

I can't understand...sorry.
 
fenestren said:
Hi,
yes, my problem is that the car, while running on the road, can go up/down a hill (pitch), or can have side slope (roll) or even not-zero yaw, pitch and roll angle at the same time and magnetometer readings are attitude-related :(

Yea. Wikipedia "Rotation matrix" should explain how to create the matrix from yaw-pitch-roll. I can't quite see it myself because of an internet problem. There are still lots of choices you have to make, but it should get you on the right track.
 
Last edited:
[SOLVED] Question about rotation and reference

Hi,

I solved reading on Wikipedia and following a few links on internet.
Thank you for your help
 

Similar threads

Replies
12
Views
6K
  • · Replies 2 ·
Replies
2
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
12K
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K