<?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[Compass Data Output]]></title><description><![CDATA[<p>I want to bring data into a data logger via simple serial connection, and initially just need a basic Roll/Pitch/Yaw for development, later on we might customise the IMU application.</p>
<p>The 'Compass' demo app from the developer website sends a 'C1' message out the serial port (SCK &amp; MOSI pins), without needing to configure anything, whereas the AHRS and IMU don't send serial without configuration commands via the USB serial port (I think?)</p>
<p>I can't find a specification of the contents of the C1 message - nor can I locate the source code to look it up. I would expect the definition of the message would be in the .json file.<br />
Could you point me to a definition of the file (data and scaling)?<br />
also, is the example code  available?<br />
Ta!</p>
]]></description><link>https://forum.aceinna.com//topic/148/compass-data-output</link><generator>RSS for Node</generator><lastBuildDate>Sat, 15 Aug 2026 04:22:16 GMT</lastBuildDate><atom:link href="https://forum.aceinna.com//topic/148.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 02 Mar 2020 10:53:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Compass Data Output on Mon, 02 Mar 2020 10:53:19 GMT]]></title><description><![CDATA[<p>I want to bring data into a data logger via simple serial connection, and initially just need a basic Roll/Pitch/Yaw for development, later on we might customise the IMU application.</p>
<p>The 'Compass' demo app from the developer website sends a 'C1' message out the serial port (SCK &amp; MOSI pins), without needing to configure anything, whereas the AHRS and IMU don't send serial without configuration commands via the USB serial port (I think?)</p>
<p>I can't find a specification of the contents of the C1 message - nor can I locate the source code to look it up. I would expect the definition of the message would be in the .json file.<br />
Could you point me to a definition of the file (data and scaling)?<br />
also, is the example code  available?<br />
Ta!</p>
]]></description><link>https://forum.aceinna.com//post/700</link><guid isPermaLink="true">https://forum.aceinna.com//post/700</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Mon, 02 Mar 2020 10:53:19 GMT</pubDate></item><item><title><![CDATA[Reply to Compass Data Output on Tue, 03 Mar 2020 01:44:44 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/197">@Richard</a> Hi Richard，currently we do not support the ecompass open source code in aceinna extension,  you could check the json file to locate the payload of the &quot;c1&quot; package. btw, i attached the ecompass source code for your reference also.<a href="https://navview.blob.core.windows.net/forum/upload/190122-135845-Compass-k7b8ausu.zip" rel="nofollow">190122-135845-Compass.zip</a></p>
]]></description><link>https://forum.aceinna.com//post/703</link><guid isPermaLink="true">https://forum.aceinna.com//post/703</guid><dc:creator><![CDATA[Li YiFan]]></dc:creator><pubDate>Tue, 03 Mar 2020 01:44:44 GMT</pubDate></item><item><title><![CDATA[Reply to Compass Data Output on Tue, 03 Mar 2020 08:10:43 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/4">@Li-YiFan</a><br />
I played around with the prebuilt demo code in the IMU a little<br />
(V1.0.0 As available from <a href="http://developers.aceinna.com/code/apps" rel="nofollow">developers.aceinna.com/code/apps</a>),<br />
and discovered that the data fields in it requires an 'endian swap'.<br />
(&amp; for anyone interested - the payload is sort of spec'd in &quot;UserMessaging.c&quot; in the zipfile you provided.)</p>
<p>I eventually decided that it was easier to modify the AHRS code to output 'e1' messages at my desired data rate - than persist with the Compass Code.<br />
(I have the dev kit to do this) That is working nicely for me.<br />
Thank you for your help!</p>
]]></description><link>https://forum.aceinna.com//post/705</link><guid isPermaLink="true">https://forum.aceinna.com//post/705</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Tue, 03 Mar 2020 08:10:43 GMT</pubDate></item><item><title><![CDATA[Reply to Compass Data Output on Wed, 04 Mar 2020 01:16:06 GMT]]></title><description><![CDATA[<p>you are welcome, thanks for sharing!</p>
]]></description><link>https://forum.aceinna.com//post/712</link><guid isPermaLink="true">https://forum.aceinna.com//post/712</guid><dc:creator><![CDATA[Li YiFan]]></dc:creator><pubDate>Wed, 04 Mar 2020 01:16:06 GMT</pubDate></item><item><title><![CDATA[Reply to Compass Data Output on Wed, 04 Mar 2020 05:36:56 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/4">@Li-YiFan</a><br />
Regarding compass output - the IMU and AHRS code don't seem to initalise the heading from the magnetic sensor.  The heading direction is set to 0.00degrees at the power on position.<br />
I haven't yet had the chance to try - but I presume that by having a GPS attached, and some motion of the body - then the North direction would be resolved.<br />
I notice in the code that there is an option of (algorithm.h)</p>
<pre><code>// Define heading initialization reliability
#define HEADING_UNINITIALIZED   0
#define HEADING_MAG             1
#define HEADING_GNSS_LOW        2
#define HEADING_GNSS_HIGH       3
</code></pre>
<p>But there doesn't appear to be any code to handle the MAG case.<br />
I presume I would need to add in some of the code from the Compass example to initialise the heading, or is there an easier way??</p>
]]></description><link>https://forum.aceinna.com//post/718</link><guid isPermaLink="true">https://forum.aceinna.com//post/718</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Wed, 04 Mar 2020 05:36:56 GMT</pubDate></item><item><title><![CDATA[Reply to Compass Data Output on Wed, 04 Mar 2020 06:18:26 GMT]]></title><description><![CDATA[<p>Generally in UserAlgorithm.c, you will find:<br />
static uint8_t algoType = AHRS;<br />
it means heading calculation from mag, pls check.<br />
Already enabled in VG_AHRS app on ANS( <a href="http://developers.aceinna.com/code/apps" rel="nofollow">developers.aceinna.com/code/apps</a>), you can test.<br />
Just a reminder, we didn't calibrated the 300ZI mag in plant, for mag is too easy influenced by environment. and you need to calibrated by your self if you need, steps in topic_11(<a href="https://forum.aceinna.com/topic/93/top-topics-of-common-operations-with-openimu-products/2">https://forum.aceinna.com/topic/93/top-topics-of-common-operations-with-openimu-products/2</a>)</p>
]]></description><link>https://forum.aceinna.com//post/719</link><guid isPermaLink="true">https://forum.aceinna.com//post/719</guid><dc:creator><![CDATA[cek]]></dc:creator><pubDate>Wed, 04 Mar 2020 06:18:26 GMT</pubDate></item><item><title><![CDATA[Reply to Compass Data Output on Wed, 04 Mar 2020 23:07:25 GMT]]></title><description><![CDATA[<p><a class="plugin-mentions-user plugin-mentions-a" href="https://forum.aceinna.com//uid/87">@cek</a> Thankyou!<br />
Seems I managed to confuse myself during initial testing - AHRS does report mag based heading straight off <img
      src="https://forum.aceinna.com//plugins/nodebb-plugin-emoji/emoji/android/263a.png?v=2fmmvjejj01"
      class="not-responsive emoji emoji-android emoji--relaxed"
      title=":relaxed:"
      alt="☺"
    /><br />
Thankyou for pointers to relevant code &amp; reminder.<br />
I have code working, have created my own messages &amp; and have completed mag calibration - very happy. <img
      src="https://forum.aceinna.com//plugins/nodebb-plugin-emoji/emoji/android/1f603.png?v=2fmmvjejj01"
      class="not-responsive emoji emoji-android emoji--smiley"
      title=":smiley:"
      alt="😃"
    /></p>
]]></description><link>https://forum.aceinna.com//post/722</link><guid isPermaLink="true">https://forum.aceinna.com//post/722</guid><dc:creator><![CDATA[Richard]]></dc:creator><pubDate>Wed, 04 Mar 2020 23:07:25 GMT</pubDate></item></channel></rss>