<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet href="http://blogs.forum.nokia.com/styles/rss.css" type="text/css"?>
 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://my.netscape.com/rdf/simple/0.9/">
 <channel>
  <title>Paul Coulton's Forum Nokia Blog - Understanding the Magnetometer (Digital compass) Sensor</title>
  <description>Forum Nokia Blogs</description>
  <link>http://blogs.forum.nokia.com/summary.php</link>
 </channel>
    <item>
     
   <title>Meaning of magnetometer outputs</title>
   <description>&lt;p&gt;I am having a hard time understanding the meaning of the magnetometers outputs. I thought they were supposed to be the coordinates of the North vector expressed in local coordinates (x, y and z-axis of the cellphone) but that seems not to be the case.&lt;/p&gt;
&lt;p&gt;For example if you measure X,Y,Z for one position of the cellphone and you rotate the cellphone 180° around z-axis, I would expect the outputs to be -X,-Y and Z. But this is not the case.&lt;/p&gt;
&lt;p&gt;What does these outputs means if this is not the north vector in local coordinates? And also, how can you determine the orientation of the cellphone from these outputs?&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
</description>
   <link>http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog/2009/03/17/understanding-the-magnetometer-digital-compass-sensor#comment27214</link>
  </item>
    <item>
     
   <title>Magnetometer data</title>
   <description>&lt;p&gt;Thank you very much for this post, this very useful.&lt;br /&gt;
I am currently working on an augmented reality application on a N97, and I would like to get the orientation of the phone. I was wondering if the magnetometer sensor enables to get the full orientation of the cellphone (by this I mean getting the orientation for the three axes).&lt;br /&gt;
How do you convert the magnetometer data to angles? My goal is to get a rotation matrix from these 3 channels (or at least the direction at which the cellphone is pointing if the whole information is not available).&lt;br /&gt;
Also, can you point me to some documentation about the magnetometer APIs? I did not find anything in the official documentation.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;
Remi&lt;/p&gt;
</description>
   <link>http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog/2009/03/17/understanding-the-magnetometer-digital-compass-sensor#comment27190</link>
  </item>
  </rdf:RDF>