<?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: accelerometer variables question.. in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445461#M2305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference is in the frame of reference.  The display on the Sensors tab is in the sensor’s frame of reference.  This is versus fAccGl, which is in the global frame of reference.  The sensor frame of reference rotates with respect to the global.  So although the vector is the same in both case, the basis vectors by which it is measured are different in the two frames of reference.  I did a couple of blogs on the topic a few years ago: &lt;A href="http://blogs.freescale.com/iot/2012/10/orientation-representations-part-1/" target="test_blank"&gt;http://blogs.freescale.com/iot/2012/10/orientation-representations-part-1/&lt;/A&gt; and &lt;A href="http://blogs.freescale.com/sensors/2013/01/orientation-representations-part-2/" target="test_blank"&gt;http://blogs.freescale.com/sensors/2013/01/orientation-representations-part-2/&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 20:22:08 GMT</pubDate>
    <dc:creator>michaelestanley</dc:creator>
    <dc:date>2015-10-08T20:22:08Z</dc:date>
    <item>
      <title>accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445459#M2303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi...&lt;/P&gt;&lt;P&gt;I'm testing a sensor fusion with library 5.0&lt;/P&gt;&lt;P&gt;and I want to use accelerometer variables to make other functions.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; a variable fGsAvg[3] is shown in Toolbox. and i think it is correct a raw sensor value &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="83914_83914.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120678i591F7ED4AD7F772C/image-size/large?v=v2&amp;amp;px=999" role="button" title="83914_83914.png" alt="83914_83914.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/58741i7A80A4059A39C992/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;but, in fusion.c , it explains that fAccGl[3] is the linear acceleration in the global frame&lt;/P&gt;&lt;P&gt;what is difference between fGsAvg[3] and fAccGl[3] ??&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:08:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445459#M2303</guid>
      <dc:creator>josol</dc:creator>
      <dc:date>2026-02-03T21:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445460#M2304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is fGsAvg is "average value of raw sensor data".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 19:24:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445460#M2304</guid>
      <dc:creator>vikasy</dc:creator>
      <dc:date>2015-10-08T19:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445461#M2305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The difference is in the frame of reference.  The display on the Sensors tab is in the sensor’s frame of reference.  This is versus fAccGl, which is in the global frame of reference.  The sensor frame of reference rotates with respect to the global.  So although the vector is the same in both case, the basis vectors by which it is measured are different in the two frames of reference.  I did a couple of blogs on the topic a few years ago: &lt;A href="http://blogs.freescale.com/iot/2012/10/orientation-representations-part-1/" target="test_blank"&gt;http://blogs.freescale.com/iot/2012/10/orientation-representations-part-1/&lt;/A&gt; and &lt;A href="http://blogs.freescale.com/sensors/2013/01/orientation-representations-part-2/" target="test_blank"&gt;http://blogs.freescale.com/sensors/2013/01/orientation-representations-part-2/&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 20:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445461#M2305</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2015-10-08T20:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445462#M2306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 21:13:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445462#M2306</guid>
      <dc:creator>michaelestanley</dc:creator>
      <dc:date>2015-10-08T21:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445463#M2307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;Thank you for kindly answer.&lt;/SPAN&gt;&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;Actually, i tried to use &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;acceleration values with the attempt to create a velocity Making a integration function&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;and i found a &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;variable &lt;/SPAN&gt;fVelGl[3] meaning velocity (m/s) in global frame by chance!!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;as result of debug, the value of &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;fVelGl[3] seems unstable. because when the board is not moving, its value goes up rapidly..&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;so it is usable variable to get a real velocity valuse? or should i change algorithm and function? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thank you every time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN lang="en"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 17:01:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445463#M2307</guid>
      <dc:creator>josol</dc:creator>
      <dc:date>2015-10-09T17:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445464#M2308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We added the inertial integration of acceleration (global frame) to velocity and to position to check out the limits of what is possible with consumer grade accelerometer, magnetometer and gyroscope sensors. Our conclusion is that inertial navigation is not feasible with the current generation of consumer devices. There are two fundamental problems. The first is that the problem is mathematically unconstrained so integration errors from sensor errors accumulate quadratically. The second is that we live in a 1g gravity field so that orientation must be known precisely in order to subtract off the 1g gravity field.&lt;/P&gt;&lt;P&gt;Take a look at the accelerometer display in the Sensors tab. You'll see that the magnitude of the accelerometer output even at rest is not precisely 1g. So when we subtract off the 1g gravity field we have a small residual acceleration error which very quickly leads to significant positional errors within a short time of order seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The source code highlights this with the comment:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// integrate the acceleration to velocity and displacement in the global frame.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// Note: integration errors accumulate without limit over time and this code should only be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;// used for inertial integration of the order of seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3f7f5f; font-size: 10pt;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 20:02:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445464#M2308</guid>
      <dc:creator>markpedley</dc:creator>
      <dc:date>2015-10-09T20:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445465#M2309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you mean that i can not get a velocity using &lt;A href="http://www.freescale.com/products/sensors/accelerometers/3-axis-accelerometers/2g-4g-8g-low-g-14-bit-digital-accelerometer:FXLS8471Q" style="color: #017bba; font-family: arial, sans-serif;"&gt;FXLS8471Q&lt;/A&gt;​​ and &lt;A href="http://www.freescale.com/products/sensors/accelerometers/3-axis-accelerometers/2g-4g-8g-low-g-12-bit-digital-accelerometer:MMA8652FC" style="color: #017bba; font-family: arial, sans-serif;"&gt;MMA8652FC&lt;/A&gt;​ ?? or should try another way not &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt; inertial integration?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 10:52:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445465#M2309</guid>
      <dc:creator>josol</dc:creator>
      <dc:date>2015-10-11T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: accelerometer variables question..</title>
      <link>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445466#M2310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Short answer, no you cannot get velocity nor displacement from any consumer grade sensor whether from Freescale or any other supplier.&lt;/P&gt;&lt;P&gt;Longer answer: a consumer accelerometer is accurate to perhaps 25mg to 50mg. Multiply by 9.81 to convert from g to m/s2 and then multiply by time t and that gives your velocity error. It very rapidly becomes significant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Oct 2015 18:10:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/accelerometer-variables-question/m-p/445466#M2310</guid>
      <dc:creator>markpedley</dc:creator>
      <dc:date>2015-10-11T18:10:17Z</dc:date>
    </item>
  </channel>
</rss>

