<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>SensorsのトピックCardinal points with eCompass</title>
    <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466027#M2647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello everyone,&lt;BR /&gt;I found the following document &lt;SPAN&gt;on the implementation&lt;/SPAN&gt; of eCompass:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2Fsensors%2Fdoc%2Fapp_note%2FAN4248.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;The described algorithm allows to find &lt;SPAN&gt;ways&lt;/SPAN&gt; of movement of the three corners.&lt;BR /&gt;But how do I figure out which &lt;SPAN&gt;cardinal point is&lt;/SPAN&gt; &lt;SPAN&gt;addressed&lt;/SPAN&gt;?&lt;BR /&gt;Is there a document that explains it&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="g-unit"&gt;&lt;SPAN class="short_text" lang="en"&gt;Thanks &lt;SPAN&gt;for any help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 21:50:40 GMT</pubDate>
    <dc:creator>nikivendola</dc:creator>
    <dc:date>2026-02-03T21:50:40Z</dc:date>
    <item>
      <title>Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466027#M2647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Hello everyone,&lt;BR /&gt;I found the following document &lt;SPAN&gt;on the implementation&lt;/SPAN&gt; of eCompass:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fcache.freescale.com%2Ffiles%2Fsensors%2Fdoc%2Fapp_note%2FAN4248.pdf" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;The described algorithm allows to find &lt;SPAN&gt;ways&lt;/SPAN&gt; of movement of the three corners.&lt;BR /&gt;But how do I figure out which &lt;SPAN&gt;cardinal point is&lt;/SPAN&gt; &lt;SPAN&gt;addressed&lt;/SPAN&gt;?&lt;BR /&gt;Is there a document that explains it&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="g-unit"&gt;&lt;SPAN class="short_text" lang="en"&gt;Thanks &lt;SPAN&gt;for any help&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:50:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466027#M2647</guid>
      <dc:creator>nikivendola</dc:creator>
      <dc:date>2026-02-03T21:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466028#M2648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure I 100% understand your question, but let me take a stab at it...&lt;/P&gt;&lt;P&gt;You ask "which cardinal point"... I believe the answer is "ALL of them".&amp;nbsp; Whatever your device is, we assume it is a rigid body, and all axes rotate together.&lt;/P&gt;&lt;P&gt;Also, if you haven't already, I strongly suggest you download the sensor fusion library from nxp.com/sensorfusion. For eCompass to work properly, you really want access to our full magnetic calibration library.&amp;nbsp; Both are included as in the fusion library.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Apr 2016 13:46:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466028#M2648</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2016-04-21T13:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466029#M2649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I wanted to ask where I have to read the values for the component V to correct the Hard-Iron effect.&lt;BR /&gt;&lt;BR /&gt;That is, if you look at the eqn. 23 of page 9 of the link &lt;/SPAN&gt;&lt;SPAN lang="en"&gt;to the previous document sees that it is composed of 3 terms: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;- Bp which is the value measured by the magnetometer, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;- V which is the correction factor Hard-Iron,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;- B which is the &lt;SPAN&gt;correct&lt;/SPAN&gt; &lt;SPAN&gt;value&lt;/SPAN&gt; &lt;SPAN&gt;of the&lt;/SPAN&gt; &lt;SPAN&gt;magnetic field&lt;/SPAN&gt; from the value of Hard -Iron.&lt;BR /&gt;&lt;BR /&gt;I only know Bp, the value V &lt;SPAN&gt;where is it&lt;/SPAN&gt;&lt;SPAN&gt;?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Thanks again.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 09:16:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466029#M2649</guid>
      <dc:creator>nikivendola</dc:creator>
      <dc:date>2016-04-25T09:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466030#M2650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Excuse me&lt;/SPAN&gt;, &lt;SPAN&gt;I'll send&lt;/SPAN&gt; &lt;SPAN&gt;a new message&lt;/SPAN&gt; &lt;SPAN&gt;because I can not&lt;/SPAN&gt; &lt;SPAN&gt;change&lt;/SPAN&gt; &lt;SPAN&gt;my answer&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;V &lt;SPAN&gt;the&lt;/SPAN&gt; &lt;SPAN&gt;inverse&lt;/SPAN&gt; &lt;SPAN&gt;revenue&lt;/SPAN&gt; &lt;SPAN&gt;of&lt;/SPAN&gt; &lt;SPAN&gt;eqn&lt;/SPAN&gt;. 23.&lt;BR /&gt;&lt;SPAN&gt;The problem is where&lt;/SPAN&gt; &lt;SPAN&gt;I have to read&lt;/SPAN&gt; B.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems to me&lt;/SPAN&gt; &lt;SPAN&gt;that the document&lt;/SPAN&gt; &lt;SPAN&gt;tells me that&lt;/SPAN&gt; &lt;SPAN&gt;I have to&lt;/SPAN&gt; &lt;SPAN&gt;read&lt;/SPAN&gt; &lt;SPAN&gt;the following site&lt;/SPAN&gt;:&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.freescale.com/external-link.jspa?url=http%3A%2F%2Fwdc.kugi.kyoto-u.ac.jp%2Figrf%2F" rel="nofollow" target="_blank"&gt;http://wdc.kugi.kyoto-u.ac.jp/igrf/&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But where?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you give me&lt;/SPAN&gt; &lt;SPAN&gt;an example&lt;/SPAN&gt; &lt;SPAN&gt;with B&lt;/SPAN&gt; &lt;SPAN&gt;relative&lt;/SPAN&gt; &lt;SPAN&gt;to a zone&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and greetings.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 12:12:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466030#M2650</guid>
      <dc:creator>nikivendola</dc:creator>
      <dc:date>2016-04-25T12:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466031#M2651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would help if you told us a bit more of what you are trying to do.&lt;/P&gt;&lt;P&gt;Are you attempting to write your own magcal code?&lt;/P&gt;&lt;P&gt;Are you attempting to use Freescale's standalone magnetic calibration?&lt;/P&gt;&lt;P&gt;Are you using NXP's Sensor Fusion library which incorporates magnetic calibration?&lt;/P&gt;&lt;P&gt;Regardless, you do not "look up" V or B.&amp;nbsp; You compute them from measured values and knowledge of the way the fields work.&amp;nbsp; See "Magnetometer Autocalibation Leveraging Measurement Locus Constraints" by Dr. Demoz Gebre-Egziabher in the July-August 2008 Journal of Aircraft for a theoretical background on the topic.&lt;/P&gt;&lt;P&gt;If using Freescale's standalone magnetic calibration, we recommend you upgrade to our sensor fusion integrated version.&amp;nbsp; The standalone version is no longer supported.&lt;/P&gt;&lt;P&gt;If already using the NXP sensor fusion library, you don't need to deal with any of this.&amp;nbsp; It is already taken care of for you.&amp;nbsp; You simply read the calibrated sensor readings as described in section 3.3.2 of the Version 5.00 sensor fusion user guide.&lt;/P&gt;&lt;P&gt;If you are using the sensor fusion library, and truly want to know the hidden details, look at magnetic.h in the source directory of any of the FSFK examples in the kit.&amp;nbsp; struct MagCalibration contains what you are after.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 14:33:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466031#M2651</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2016-04-25T14:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466032#M2652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt;Hi,&lt;BR /&gt;Sorry for the delayed response but I thought I had found the way but I still have doubts.&lt;BR /&gt;&lt;BR /&gt;I try to explain better.&lt;BR /&gt;I have a self-produced board with Freescale components, I am not referring to any card or your program.&lt;BR /&gt;&lt;BR /&gt;I found the document in question and I thought that the algorithm therein is sufficient to implement a eCompass.&lt;BR /&gt;&lt;BR /&gt;I thought I would use the one in C # suitably modified for C.&lt;BR /&gt;&lt;BR /&gt;Only I miss the value of V. I have not figured out how I return the value of V.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have other&lt;/SPAN&gt; suggestions?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and greetings&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 12:13:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466032#M2652</guid>
      <dc:creator>nikivendola</dc:creator>
      <dc:date>2016-04-29T12:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466033#M2653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;V is the hard iron offset.&amp;nbsp; If you take many, many, measurements from your magnetometer, while rotating it in all directions in 3-dimensional space, then plot the points, you will get a 3D ellipsoid.&amp;nbsp; V is the 3D coordinate of the center of that ellipsoid.&amp;nbsp; We get it in our software, along with soft iron components, by doing a full least squares fit to a rather complex equation.&amp;nbsp; If you want only hard iron offsets, you could simply take the average of all those points (crude), or fit to an ellipsoid and take the center of that (better).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 15:31:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466033#M2653</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2016-04-29T15:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466034#M2654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;I used the algorithm that I found in this document.&lt;BR /&gt;&lt;A href="http://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf" title="http://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf"&gt;http://cache.freescale.com/files/sensors/doc/app_note/AN4248.pdf&lt;/A&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;To calculate the V B I used to correct the final part of this document.&lt;BR /&gt;&lt;A href="http://www.nxp.com/files/sensors/doc/app_note/AN4246.pdf" title="http://www.nxp.com/files/sensors/doc/app_note/AN4246.pdf"&gt;http://www.nxp.com/files/sensors/doc/app_note/AN4246.pdf&lt;/A&gt; &lt;BR /&gt;I get the value of this type:&lt;BR /&gt;&lt;/SPAN&gt;iPhi:-52;&lt;/P&gt;&lt;P&gt;iThe: 29;&lt;/P&gt;&lt;P&gt;iPsi: -12440.&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;In your opinion &lt;SPAN&gt;they are correct&lt;/SPAN&gt;? Ie the order of magnitude is possible?&lt;BR /&gt;Now how do I build &lt;SPAN&gt;virtual&lt;/SPAN&gt; &lt;SPAN&gt;compass&lt;/SPAN&gt;?&lt;BR /&gt;I can contact in private &lt;SPAN&gt;perhaps to&lt;/SPAN&gt; e-mail?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and greetings&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 16:18:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466034#M2654</guid>
      <dc:creator>nikivendola</dc:creator>
      <dc:date>2016-06-02T16:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cardinal points with eCompass</title>
      <link>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466035#M2655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these intended to be magnetic offsets or angles?&amp;nbsp; If the former, then -12440 seems way too big.&amp;nbsp; If angles, then you should be in the range of 0 to 360.&amp;nbsp; You can contact me at &lt;A href="mailto:Mike.Stanley@nxp.com"&gt;Mike.Stanley@nxp.com&lt;/A&gt;.&amp;nbsp; I would still ask, why are you not using the eCompass example in the V5.00 Sensor Fusion code at nxp.com/sensorfusion?&amp;nbsp; It does everything for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 21:08:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Cardinal-points-with-eCompass/m-p/466035#M2655</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2016-06-02T21:08:58Z</dc:date>
    </item>
  </channel>
</rss>

