<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Home</title><link>https://sourceforge.net/p/picompass/wiki/Home/</link><description>Recent changes to Home</description><atom:link href="https://sourceforge.net/p/picompass/wiki/Home/feed" rel="self"/><language>en</language><lastBuildDate>Mon, 18 Oct 2021 02:16:45 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/picompass/wiki/Home/feed" rel="self" type="application/rss+xml"/><item><title>Home modified by Wes Peters</title><link>https://sourceforge.net/p/picompass/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -1,8 +1,36 @@
-Welcome to your wiki!
+# Compass? Who uses a compass?
+Boats do.  In particular, electronic navigation programs like to know what direction the boat is pointed, along with a GPS track, this allows them to calculate a critical piece of information known as the 'cross-track error.'  Since boats (and airplanes) move in a fluid medium, the direction the boat (plane) is travelling is influenced by current (wind).  Knowing what direction the boat (plane) is headed allows the navigation program to calculate how much effect the current (wind) is having on the boat (or plane.)

-This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: [SamplePage].
+This was an afternoon exercise to create a compass module that can communicate using the NMEA format used by a lot of boat (or ship) navigation equipment.  At this time, this is quite a simple program.  It can only accept a single network connection at a time, which meets my current needs.  It does handle the network connection terminating, it will listen for a new connection and resume reporting the heading.

-The wiki uses [Markdown](/p/picompass/wiki/markdown_syntax/) syntax.
+No provision is made at this time to compensate for the orientation of the physical compass sensor.  The typical HMC5883L breakout board will have the X/Y axis marked on the board, this assumes the board X axis is accurate and aligned with the centerline of the boat.
+
+I will probably make this fancier once we've had a change to install it and test it on an actual boat.  There is a fair bit of calibration you *should* do to use one of these with any accuracy.  It is also possible to compensate for pitching and yawing on the boat using only the magnetometer data, so I expect at some point to improve this a fair bit.
+
+# How to use
+It's a pretty simple python3 script.  It has been tested on a Raspberry Pi 3B+.  For now, the listen address and TCP port are hard-coded, I will parameterize those.  The TCP port was chosen to be 1 more than the usual port for a GPS, to make NMEA muxing simple.
+
+You can watch it with nc:
+~~~
+% nc -v 192.168.1.221 2948
+Connection to 192.168.1.221 port 2948 [tcp/wap-push] succeeded!
+$HCHDM,351.9,M*27
+$HCHDM,351.9,M*27
+$HCHDM,343.9,M*24
+$HCHDM,345.3,M*28
+$HCHDM,345.8,M*23
+$HCHDM,347.7,M*2e
+$HCHDM,352.8,M*25
+$HCHDM,15.5,M*18
+$HCHDM,17.0,M*1f
+$HCHDM,19.6,M*17
+$HCHDM,21.1,M*1b
+$HCHDM,24.0,M*1f
+$HCHDM,24.6,M*19
+$HCHDM,32.0,M*18
+$HCHDM,36.2,M*1e
+~~~
+The changing heading came from turning the protoboard the module is currently mounted on my desktop.

 [[members limit=20]]
 [[download_button]]
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wes Peters</dc:creator><pubDate>Mon, 18 Oct 2021 02:16:45 -0000</pubDate><guid>https://sourceforge.net7057c3577076e1ae53c40a62e4f026e45ef16f1a</guid></item><item><title>Home modified by Wes Peters</title><link>https://sourceforge.net/p/picompass/wiki/Home/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Welcome to your wiki!&lt;/p&gt;
&lt;p&gt;This is the default page, edit it as you see fit. To add a new page simply reference it within brackets, e.g.: &lt;span&gt;[SamplePage]&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;The wiki uses &lt;a class="" href="/p/picompass/wiki/markdown_syntax/"&gt;Markdown&lt;/a&gt; syntax.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;h6&gt;Project Members:&lt;/h6&gt;
	&lt;ul class="md-users-list"&gt;
		&lt;li&gt;&lt;a href="/u/softweyr/"&gt;Wes Peters&lt;/a&gt; (admin)&lt;/li&gt;
		
	&lt;/ul&gt;&lt;br/&gt;
&lt;p&gt;&lt;span class="download-button-616cd4277bbdb9a989d01905" style="margin-bottom: 1em; display: block;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Wes Peters</dc:creator><pubDate>Mon, 18 Oct 2021 01:55:51 -0000</pubDate><guid>https://sourceforge.net9e5d653d825cbdf04bc7be9998c1a4c31d10a290</guid></item></channel></rss>