Interpreting magnetic compass pitch and roll

AI Thread Summary
The discussion focuses on understanding the pitch and roll measurements provided by the PNI TCM2 electronic compass module, which utilizes a fluid-filled tilt sensor for orientation relative to gravity. Users seek clarification on the equations related to pitch (P) and roll (R) and how they relate to the compass's orientation in a level Earth coordinate frame. There is confusion about whether P and R represent angles of the module's axes concerning the horizontal plane and how the tilt sensor measures these angles. The conversation also touches on the mathematical basis of the equations, suggesting they are matrix transformations for deriving components of a vector perpendicular to the module. Overall, participants are looking for a clearer explanation of the relationship between the compass's tilt data and its orientation.
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
 
How did you find PF?: Via Google search Hi, I have a vessel I 3D printed to investigate single bubble rise. The vessel has a 4 mm gap separated by acrylic panels. This is essentially my viewing chamber where I can record the bubble motion. The vessel is open to atmosphere. The bubble generation mechanism is composed of a syringe pump and glass capillary tube (Internal Diameter of 0.45 mm). I connect a 1/4” air line hose from the syringe to the capillary The bubble is formed at the tip...
Thread 'What type of toilet do I have?'
I was enrolled in an online plumbing course at Stratford University. My plumbing textbook lists four types of residential toilets: 1# upflush toilets 2# pressure assisted toilets 3# gravity-fed, rim jet toilets and 4# gravity-fed, siphon-jet toilets. I know my toilet is not an upflush toilet because my toilet is not below the sewage line, and my toilet does not have a grinder and a pump next to it to propel waste upwards. I am about 99% sure that my toilet is not a pressure assisted...
After over 25 years of engineering, designing and analyzing bolted joints, I just learned this little fact. According to ASME B1.2, Gages and Gaging for Unified Inch Screw Threads: "The no-go gage should not pass over more than three complete turns when inserted into the internal thread of the product. " 3 turns seems like way to much. I have some really critical nuts that are of standard geometry (5/8"-11 UNC 3B) and have about 4.5 threads when you account for the chamfers on either...
Back
Top