<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="en"> 
    <title>Paul Coulton's Forum Nokia Blog - Understanding the Magnetometer (Digital compass) Sensor</title>  
                    <updated>2009-09-14T05:31:50Z</updated>
    <id>http://blogs.forum.nokia.com,8.9/</id>
    <link rel="alternate" type="text/html" hreflang="en" href="http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog/2009/03/17/understanding-the-magnetometer-digital-compass-sensor" />
    <rights>Copyright (c) 2008 Nokia</rights> 
    <generator uri="http://www.lifetype.net/" version="1.2">LifeType</generator> 

                                    <entry>
            <title>Meaning of magnetometer outputs</title>
            <link rel="alternate" type="text/html" href="http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog/2009/03/17/understanding-the-magnetometer-digital-compass-sensor#comment27214" />
            <id>tag:blogs.forum.nokia.com,2009-09-14:27214</id>
                        <updated>2009-09-14T05:31:50Z</updated>
            <published>2009-09-14T05:31:50Z</published>
            <summary type="html"> 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 ...</summary>
            <author>
                <name>torsak1</name>
                <uri>http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog</uri>
            </author>
            <content type="text/html" xml:lang="en" xml:base="http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog">
                &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;

            </content>
        </entry>
                                    <entry>
            <title>Magnetometer data</title>
            <link rel="alternate" type="text/html" href="http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog/2009/03/17/understanding-the-magnetometer-digital-compass-sensor#comment27190" />
            <id>tag:blogs.forum.nokia.com,2009-09-01:27190</id>
                        <updated>2009-09-01T20:58:52Z</updated>
            <published>2009-09-01T20:58:52Z</published>
            <summary type="html"> Thank you very much for this post, this very useful. 
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 ...</summary>
            <author>
                <name>torsak1</name>
                <uri>http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog</uri>
            </author>
            <content type="text/html" xml:lang="en" xml:base="http://blogs.forum.nokia.com/blog/paul-coultons-forum-nokia-blog">
                &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;

            </content>
        </entry>
    </feed>