<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[OpenIMU300RI]]></title><description><![CDATA[<p>Hi,<br />
we are trying to read the data from the Magnetometer but it looks like to saturate very quickly when the device get close to some iron. We found that the source code has the following struct to hold the data extracted from the sensor :</p>
<pre><code>typedef struct { 
    uint32_t rawSensors[N_RAW_SENS]; 
    double scaledSensors[N_RAW_SENS]; // g's, rad/s, G, deg C, (body frame) 
    int32_t scaledSensors_q27[N_RAW_SENS]; // g's, rad/s, G, deg C, (body frame) 
    uint64_t tstamp; // timestamp of last sample 
} sensors_data_t;
</code></pre>
<p>We noticed that the function</p>
<pre><code>void GetMagData_G(double *data) { 
     for(int i = 0; i &lt; 3; i++){ 
         data[i] = gSensorsData.scaledSensors[i+XMAG]; 
     } 
} 
</code></pre>
<p>retrieve the scaledSensor, how is it scaled, can it be changed by some parameter ? why does it saturate so quickly ? What's inside rawSensor ? Since the code of the library is not open, can you at least try to shed some light on how it works ?</p>
<p>Thanks Valerio</p>
]]></description><link>https://forum.aceinna.com//topic/224/openimu300ri</link><generator>RSS for Node</generator><lastBuildDate>Tue, 11 Aug 2026 16:57:13 GMT</lastBuildDate><atom:link href="https://forum.aceinna.com//topic/224.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Dec 2020 04:50:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to OpenIMU300RI on Thu, 03 Dec 2020 04:55:51 GMT]]></title><description><![CDATA[<p>Hi,<br />
we are trying to read the data from the Magnetometer but it looks like to saturate very quickly when the device get close to some iron. We found that the source code has the following struct to hold the data extracted from the sensor :</p>
<pre><code>typedef struct { 
    uint32_t rawSensors[N_RAW_SENS]; 
    double scaledSensors[N_RAW_SENS]; // g's, rad/s, G, deg C, (body frame) 
    int32_t scaledSensors_q27[N_RAW_SENS]; // g's, rad/s, G, deg C, (body frame) 
    uint64_t tstamp; // timestamp of last sample 
} sensors_data_t;
</code></pre>
<p>We noticed that the function</p>
<pre><code>void GetMagData_G(double *data) { 
     for(int i = 0; i &lt; 3; i++){ 
         data[i] = gSensorsData.scaledSensors[i+XMAG]; 
     } 
} 
</code></pre>
<p>retrieve the scaledSensor, how is it scaled, can it be changed by some parameter ? why does it saturate so quickly ? What's inside rawSensor ? Since the code of the library is not open, can you at least try to shed some light on how it works ?</p>
<p>Thanks Valerio</p>
]]></description><link>https://forum.aceinna.com//post/974</link><guid isPermaLink="true">https://forum.aceinna.com//post/974</guid><dc:creator><![CDATA[Valeriob]]></dc:creator><pubDate>Thu, 03 Dec 2020 04:55:51 GMT</pubDate></item><item><title><![CDATA[Reply to OpenIMU300RI on Thu, 03 Dec 2020 15:55:50 GMT]]></title><description><![CDATA[<p>Hi Valerio,<br />
the magnetometer reads values from -8 to +8 Gauss. The raw value (which will be between -32768 to +32768 counts) from the sensor is scaled to a floating point value where -1 represents -8 Gauss and +1 represents +8 Gauss.<br />
Values outside +-8 Gauss will cause the scaled sensor value to saturate at +-1.</p>
]]></description><link>https://forum.aceinna.com//post/975</link><guid isPermaLink="true">https://forum.aceinna.com//post/975</guid><dc:creator><![CDATA[StephenH]]></dc:creator><pubDate>Thu, 03 Dec 2020 15:55:50 GMT</pubDate></item><item><title><![CDATA[Reply to OpenIMU300RI on Fri, 04 Dec 2020 09:22:12 GMT]]></title><description><![CDATA[<p>Hi @stephen-hinchy ,</p>
<p>thanks for the answer, but the bytes i read from each axis from the struct gSensorsData.rawSensors[i+XMAG]; do not look like short int (2 bytes), because we see 3/4 bytes populated, so it looks like it's not in the -32768 to +32768 (16 bit short int) range <img
      src="https://forum.aceinna.com//plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=2fmmvjejj01"
      class="not-responsive emoji emoji-android emoji--disappointed"
      title=":disappointed:"
      alt="😞"
    /></p>
<p>Thanks</p>
]]></description><link>https://forum.aceinna.com//post/977</link><guid isPermaLink="true">https://forum.aceinna.com//post/977</guid><dc:creator><![CDATA[Valeriob]]></dc:creator><pubDate>Fri, 04 Dec 2020 09:22:12 GMT</pubDate></item></channel></rss>