<?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>topic Re: Save MAG CALibration Data in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403353#M1632</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Oct 2015 21:23:42 GMT</pubDate>
    <dc:creator>a8Chcx</dc:creator>
    <dc:date>2015-10-15T21:23:42Z</dc:date>
    <item>
      <title>Save MAG CALibration Data</title>
      <link>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403349#M1628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to save the following MAG calibration data:&lt;/P&gt;&lt;P&gt;thisMagCal.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;fV&lt;/SPAN&gt;[0]=8.80, thisMagCal.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;fV&lt;/SPAN&gt;[1]=61.10, thisMagCal.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;fV&lt;/SPAN&gt;[2]=3.20, thisMagCal.&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;fB&lt;/SPAN&gt; = 45.2&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[0][0] = 0.990,&amp;nbsp; thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[0][1] = -0.022, thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[0][2] = -0.018&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[1][0] = -0.022, thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[1][1] = 0.996,&amp;nbsp; thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[1][2]) = -0.032&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[2][0] = -0.018, thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[2][1] = -0.032, thisMagCal.&lt;/SPAN&gt;&lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;finvW&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;[2][2] = 1.046&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See attached file for the calibration data.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After RESET/POWER ON, I copied these data to thisMagCal structure and set &lt;SPAN style="color: #0000c0; font-size: 10pt;"&gt;fFitErrorpc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt; = 10.0F;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I checked the heading and there is the big difference between original one.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Could you tell me where I did wrong? How long it will wait for the right data?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Christie&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338828" target="_blank"&gt;magnetics.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403349#M1628</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2026-02-03T21:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Save MAG CALibration Data</title>
      <link>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403350#M1629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure you have set the magnetic calibration flag iValidMagCal to true after reading in your stored calibration coefficients. Otherwise the software does not know it has a calibration and will not apply it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 20:35:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403350#M1629</guid>
      <dc:creator>markpedley</dc:creator>
      <dc:date>2015-10-15T20:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Save MAG CALibration Data</title>
      <link>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403351#M1630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to set iValidMagCal==4 and works fine. I have the following questions:&lt;/P&gt;&lt;P&gt;1) Which number should I use, 4, 7, 10?&lt;/P&gt;&lt;P&gt;2) I set FitError=10.0F, is it OK? Or there is better number?&lt;/P&gt;&lt;P&gt;3) What is FitError value to allow me to override the old saved data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 21:02:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403351#M1630</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-10-15T21:02:07Z</dc:date>
    </item>
    <item>
      <title>Re: Save MAG CALibration Data</title>
      <link>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403352#M1631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;iValidMagCal acts as both a flag and to identify the level of calibration model used.&lt;/P&gt;&lt;P&gt;4, 7, 10 mean the calibration was computed using the 4, 7 and 10 element models and in C these non-zero values are also interpreted a logical 'true' meaning there is a good calibration.&lt;/P&gt;&lt;P&gt;The calibration that you stored was computed with the 10 element calibration (since it has off diagonal matrix elements) so why not store iValidMagCal along with the calibration data and then read it in along with the calibration.&lt;/P&gt;&lt;P&gt;What you've done works but is slightly imprecise in that you've read in a 10 element calibration but told the software that it has a calibration (iValidMagCal = 4 is true) from the 4 element model.&lt;/P&gt;&lt;P&gt;Setting a value of 10% for the saved calibration probably about right. On power up, the old calibration may not be valid because of temperature changes so we want to replace it fairly quickly. As soon as new data is in the magnetic buffer, the new calibration will be computed and will almost certainly have a fit error below 10% and will therefore over-ride the stored value. The software replaces any calibration in use once it finds a solution with a lower fit error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 21:12:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403352#M1631</guid>
      <dc:creator>markpedley</dc:creator>
      <dc:date>2015-10-15T21:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: Save MAG CALibration Data</title>
      <link>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403353#M1632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Mark.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Oct 2015 21:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/Save-MAG-CALibration-Data/m-p/403353#M1632</guid>
      <dc:creator>a8Chcx</dc:creator>
      <dc:date>2015-10-15T21:23:42Z</dc:date>
    </item>
  </channel>
</rss>

