Interpreting magnetic compass pitch and roll

Click For Summary
SUMMARY

The discussion centers on the interpretation of pitch and roll measurements from the PNI TCM2 electronic compass module, which utilizes a 3-axis magnetometer and a 2-axis tiltmeter for tilt compensation. The equations provided in the manual for calculating the orientation of the module with respect to the level Earth frame are confirmed to be basic matrix transformations. Participants clarify that the pitch (P) and roll (R) values represent the angles of the module's local x and y axes relative to the horizontal plane. Understanding these concepts is crucial for accurately determining the orientation of the compass module.

PREREQUISITES
  • Understanding of 3-axis coordinate systems
  • Familiarity with tilt sensors and their applications
  • Basic knowledge of matrix transformations
  • Experience with magnetic compass technology
NEXT STEPS
  • Research the mathematical principles behind matrix transformations in 3D space
  • Learn about the functionality and applications of the PNI TCM2 electronic compass module
  • Explore tilt sensor technology and its integration with electronic compasses
  • Study the effects of pitch and roll on navigation systems
USEFUL FOR

This discussion is beneficial for engineers, developers, and researchers working with navigation systems, electronic compasses, and tilt sensors, as well as anyone interested in understanding the mathematical foundations of orientation measurements.

BobbyBear
Messages
162
Reaction score
1
Hello all,

I have a PNI TCM2 electronic compass module, which has a 3-axis magnetometer and a 2-axis tiltmeter (manual: http://www.mil.ufl.edu/projects/gnuman/spec_sheets/tcm2_man.pdf" ), and provides heading with tilt compensation.

The module also provides "pitch" and "roll" measurements. What I can't figure out is exactly what it is reporting as pitch and roll. The manual gives the following information (section 3.11 of the manual):

"The TCM2 uses a fluid-filled tilt sensor to measure the orientation of the compass with
respect to gravity. Since the compass also measures the complete magnetic field, the
TCM2 can correct for the tilt of the compass to provide an accurate heading.

You can use the tilt data output by the TCM2 to calculate the orientation of the TCM2 with
respect to the level Earth coordinate frame. Define a vector G that is perpendicular to the
compass board (and therefore is parallel to the z-axis of the compass.) The coordinates
of G = (X, Y, Z) in the level Earth frame will be

Z = (SQRT(1 + tan(P)2 + tan(R)2))-1
X = Z tan(P)
Y = Z tan(R)

where P and R are the pitch and roll reported by the TCM2.​

I don't understand where these equations come from - are they simplified equations? And anyway, how do you determine the orientation/attitude of the compass module.. and which is the (X,Y,Z) system (presumably X and Y axes form a horizontal plane as its the level Earth system, but is x the horizontal projection of X? Are P and R ("pitch" and "roll" values given by the compass module) the angles of the module's x and y axes w.r.t the horizontal plane (the x and y axes being the local axes of the compass that coincide with X and Y when the compass is horizontal) ? But wouldn't the tilt sensor measure, for example, the angle between the x-axis and the horizontal line contained in the xz plane (which is not the same as the angle between the x-axis and the horizontal plane)?

If anyone has any idea on what P and R are please help, I've never used a compass before so maybe I'm missing something evident.

Thank you!
 
Last edited by a moderator:
Engineering news on Phys.org
-Lay the module flat
-Choose your X and Y axes, (Roll and Pitch respectively) The orientation of the module doesn't matter, as long as you choose one as x and the other as Y
-Z will obviously be heading

The equations you have are a basic matrix transformation. To prove this to yourself set up a three axis system, place an arbitrary vector and derive its X,Y and Z components.
 
Thanks vioscousflow for your reply!

viscousflow said:
The equations you have are a basic matrix transformation. To prove this to yourself set up a three axis system, place an arbitrary vector and derive its X,Y and Z components.

In an X,Y,Z system, an arbitrary vector would have components: X=Z tan(a)sin(b), Y= Z tan(a)cos(b), Z = SQURT(X^2+Y^2)tan(a), where a is the angle between the vector and its horizontal projection, and b is the angle between the horizontal projection and the X axis.

I don't see what this has to do ... the equations they are giving are the components of the vector perpendicular to the module, G, in the level Earth system... but that does not tell me the orientation of the x and y axes of the module (ie. I can rotate the module around an axis that contains vector G).

Thanks, Bobby
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
4K
Replies
16
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
17
Views
3K
Replies
3
Views
3K
Replies
4
Views
3K