[Xastir] Aloha Circle

Curt archer at eskimo.com
Thu Nov 15 09:37:31 EST 2007


On Thu, 15 Nov 2007, Curt wrote:

> On Thu, 15 Nov 2007, Kevin Paetzold wrote:
> 
> > I also find that not being able to permanently disable the aloha
> > circle to an annoyance as well.  I run several XASTIRs that essentially
> > never transmit on RF but because I want them to be able to see the
> > local RF traffic (so I can pick up local messages etc..).  However
> > still have to see the aloha circle until I turn it off.  One of the
> > things on my list to do is to come up with my own code change/patch
> > to turn this off.
> 
> Probably the easiest option is to change the '1' to a '0' at line
> 547 of main.c, which should disable it until you manually turn it
> on:

If someone needs a full-blown diff, here it is.  I just tested it
and the toggle in "Station->Filter Display->Display Aloha Circle"
comes up as default off now when Xastir is started.  Note that it
takes a half-hour after bringing up Xastir with a local TNC before
the Aloha circle is computed and displayed.

For those that don't know what a "diff" is, it's a difference file
between two versions.  You apply this particular patch like so:

Save the text between the lines in a file, let's call it
"aloha.patch" in this case.

    cd xastir/src
    patch -p0 <aloha.patch

Of course editing one line in main.c is probably easier than
applying the patch using "patch" in this case.  It's easy to see
that the line containing '1' is replaced by the line containing '0'.

---------------------------------------------------
> diff -u main.c main.aloha.c
--- main.c      2007-11-07 08:17:18.000000000 -0800
+++ main.aloha.c        2007-11-15 06:24:25.000000000 -0800
@@ -544,7 +544,7 @@
                              1, // temperature_only
                              1, // wind_barb
 
-                             1, // aloha_circle
+                             0, // aloha_circle
                              1, // ambiguity
                              1, // phg
                              1, // default_phg
---------------------------------------------------

-- 
Curt, WE7U.				archer at eskimo dot com
http://www.eskimo.com/~archer
  Lotto:  A tax on people who are bad at math. - unknown
Windows:  Microsoft's tax on computer illiterates. - WE7U.
The world DOES revolve around me:  I picked the coordinate system!"



More information about the Xastir mailing list