<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-2018</id>
	<title>Nabble - GPSBabel - Dev</title>
	<updated>2009-12-11T14:13:51Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/GPSBabel---Dev-f2018.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/GPSBabel---Dev-f2018.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-26752223</id>
	<title>Patch: Heartrate/cadence write support for GPX</title>
	<published>2009-12-11T14:13:51Z</published>
	<updated>2009-12-11T14:13:51Z</updated>
	<author>
		<name>Martin Buck-4</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;the attached patch adds support for writing heartrate and cadence
&lt;br&gt;information to GPX files using the Garmin trackpoint extensions (i.e.
&lt;br&gt;compatible to the heartrate/cadence reading support that's already in
&lt;br&gt;gpx.c). It's enabled only if the &amp;quot;garminextensions&amp;quot; option has been
&lt;br&gt;specified.
&lt;br&gt;&lt;br&gt;I know that there have been discussions about whether heartrate and cadence
&lt;br&gt;is something that should be stored in GPX files, but IIRC, one of the last
&lt;br&gt;statements from Robert was that he wouldn't be opposed to it if somebody
&lt;br&gt;would implement it. So here we go... Would be great to see this in official
&lt;br&gt;gpsbabel release so that I don't have to maintain my own branch.
&lt;br&gt;&lt;br&gt;Questions? Comments?
&lt;br&gt;&lt;br&gt;Martin
&lt;br&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;--- gpsbabel-cvs-20091119/gpx.c.orig	2009-12-08 17:24:18.000000000 +0100
&lt;br&gt;+++ gpsbabel-cvs-20091119/gpx.c	2009-12-09 19:18:07.000000000 +0100
&lt;br&gt;@@ -1608,29 +1608,38 @@
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static void
&lt;br&gt;-gpx_write_common_depth(const waypoint *waypointp, const char *indent)
&lt;br&gt;+gpx_write_common_extensions(const waypoint *waypointp, const char *indent)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	if (waypointp-&amp;gt;depth != 0 || waypointp-&amp;gt;temperature != 0) {
&lt;br&gt;-		if (opt_humminbirdext || opt_garminext) {
&lt;br&gt;-			gbfprintf(ofd, &amp;quot;%s&amp;lt;extensions&amp;gt;\n&amp;quot;, indent);
&lt;br&gt;-			if (waypointp-&amp;gt;depth != 0) {
&lt;br&gt;-				if (opt_humminbirdext)
&lt;br&gt;-					gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;h:depth&amp;gt;%f&amp;lt;/h:depth&amp;gt;\n&amp;quot;,
&lt;br&gt;-				 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	 &amp;nbsp;indent, waypointp-&amp;gt;depth*100.0);
&lt;br&gt;-				if (opt_garminext)
&lt;br&gt;-					gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;gpxx:Depth&amp;gt;%f&amp;lt;/gpxx:Depth&amp;gt;\n&amp;quot;,
&lt;br&gt;-				 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	 &amp;nbsp;indent, waypointp-&amp;gt;depth);
&lt;br&gt;-			}
&lt;br&gt;-			if (waypointp-&amp;gt;temperature != 0) {
&lt;br&gt;-				if (opt_humminbirdext)
&lt;br&gt;-					gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;h:temperature&amp;gt;%f&amp;lt;/h:temperature&amp;gt;\n&amp;quot;,
&lt;br&gt;-				 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	 &amp;nbsp;indent, waypointp-&amp;gt;temperature);
&lt;br&gt;-				if (opt_garminext)
&lt;br&gt;-					gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;gpxx:Temperature&amp;gt;%f&amp;lt;/gpxx:Temperature&amp;gt;\n&amp;quot;,
&lt;br&gt;-					 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;indent, waypointp-&amp;gt;temperature);
&lt;br&gt;-			}
&lt;br&gt;-			gbfprintf(ofd, &amp;quot;%s&amp;lt;/extensions&amp;gt;\n&amp;quot;, indent);
&lt;br&gt;+	if (((opt_humminbirdext || opt_garminext) &amp;&amp; (waypointp-&amp;gt;depth != 0 || waypointp-&amp;gt;temperature != 0))
&lt;br&gt;+	 &amp;nbsp; &amp;nbsp;|| (opt_garminext &amp;&amp; (waypointp-&amp;gt;heartrate != 0 || waypointp-&amp;gt;cadence != 0))) {
&lt;br&gt;+		gbfprintf(ofd, &amp;quot;%s&amp;lt;extensions&amp;gt;\n&amp;quot;, indent);
&lt;br&gt;+		if (waypointp-&amp;gt;depth != 0) {
&lt;br&gt;+			if (opt_humminbirdext)
&lt;br&gt;+				gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;h:depth&amp;gt;%f&amp;lt;/h:depth&amp;gt;\n&amp;quot;,
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	 &amp;nbsp;indent, waypointp-&amp;gt;depth*100.0);
&lt;br&gt;+			if (opt_garminext)
&lt;br&gt;+				gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;gpxx:Depth&amp;gt;%f&amp;lt;/gpxx:Depth&amp;gt;\n&amp;quot;,
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	 &amp;nbsp;indent, waypointp-&amp;gt;depth);
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;+		if (waypointp-&amp;gt;temperature != 0) {
&lt;br&gt;+			if (opt_humminbirdext)
&lt;br&gt;+				gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;h:temperature&amp;gt;%f&amp;lt;/h:temperature&amp;gt;\n&amp;quot;,
&lt;br&gt;+			 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;	 &amp;nbsp;indent, waypointp-&amp;gt;temperature);
&lt;br&gt;+			if (opt_garminext)
&lt;br&gt;+				gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;gpxx:Temperature&amp;gt;%f&amp;lt;/gpxx:Temperature&amp;gt;\n&amp;quot;,
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;indent, waypointp-&amp;gt;temperature);
&lt;br&gt;+		}
&lt;br&gt;+		if (opt_garminext &amp;&amp; (waypointp-&amp;gt;heartrate != 0 || waypointp-&amp;gt;cadence != 0)) {
&lt;br&gt;+			gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;gpxtpx:TrackPointExtension&amp;gt;\n&amp;quot;, indent);
&lt;br&gt;+			if (waypointp-&amp;gt;heartrate != 0)
&lt;br&gt;+				gbfprintf(ofd, &amp;quot;%s &amp;nbsp; &amp;nbsp;&amp;lt;gpxtpx:hr&amp;gt;%u&amp;lt;/gpxtpx:hr&amp;gt;\n&amp;quot;,
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;indent, waypointp-&amp;gt;heartrate);
&lt;br&gt;+			if (waypointp-&amp;gt;cadence != 0)
&lt;br&gt;+				gbfprintf(ofd, &amp;quot;%s &amp;nbsp; &amp;nbsp;&amp;lt;gpxtpx:cad%u&amp;lt;/gpxtpx:cad&amp;gt;\n&amp;quot;,
&lt;br&gt;+				 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;indent, waypointp-&amp;gt;cadence);
&lt;br&gt;+			gbfprintf(ofd, &amp;quot;%s &amp;nbsp;&amp;lt;/gpxtpx:TrackPointExtension&amp;gt;\n&amp;quot;, indent);
&lt;br&gt;+		}
&lt;br&gt;+		gbfprintf(ofd, &amp;quot;%s&amp;lt;/extensions&amp;gt;\n&amp;quot;, indent);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1688,7 +1697,7 @@
&lt;br&gt;&amp;nbsp;		/* MapSource doesn't accepts extensions from 1.0 */
&lt;br&gt;&amp;nbsp;		garmin_fs_xml_fprint(ofd, waypointp);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	gpx_write_common_depth(waypointp, &amp;quot; &amp;nbsp;&amp;quot;);
&lt;br&gt;+	gpx_write_common_extensions(waypointp, &amp;quot; &amp;nbsp;&amp;quot;);
&lt;br&gt;&amp;nbsp;	gbfprintf(ofd, &amp;quot;&amp;lt;/wpt&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1750,7 +1759,7 @@
&lt;br&gt;&amp;nbsp;		fprint_xml_chain( fs_gpx-&amp;gt;tag, waypointp );
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	gpx_write_common_depth(waypointp, &amp;quot; &amp;nbsp;&amp;quot;);
&lt;br&gt;+	gpx_write_common_extensions(waypointp, &amp;quot; &amp;nbsp;&amp;quot;);
&lt;br&gt;&amp;nbsp;	gbfprintf(ofd, &amp;quot;&amp;lt;/trkpt&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1805,7 +1814,7 @@
&lt;br&gt;&amp;nbsp;		fprint_xml_chain( fs_gpx-&amp;gt;tag, waypointp );
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	gpx_write_common_depth(waypointp, &amp;quot; &amp;nbsp; &amp;nbsp;&amp;quot;);
&lt;br&gt;+	gpx_write_common_extensions(waypointp, &amp;quot; &amp;nbsp; &amp;nbsp;&amp;quot;);
&lt;br&gt;&amp;nbsp;	gbfprintf(ofd, &amp;quot; &amp;nbsp;&amp;lt;/rtept&amp;gt;\n&amp;quot;);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -1878,7 +1887,8 @@
&lt;br&gt;&amp;nbsp;	if (opt_humminbirdext)
&lt;br&gt;&amp;nbsp;		gbfprintf(ofd, &amp;quot; &amp;nbsp;xmlns:h=\&amp;quot;http://humminbird.com\&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp;	if (opt_garminext)
&lt;br&gt;-		gbfprintf(ofd, &amp;quot; &amp;nbsp;xmlns:gpxx=\&amp;quot;http://www.garmin.com/xmlschemas/GpxExtensions/v3\&amp;quot;&amp;quot;);
&lt;br&gt;+		gbfprintf(ofd, &amp;quot; &amp;nbsp;xmlns:gpxx=\&amp;quot;http://www.garmin.com/xmlschemas/GpxExtensions/v3\&amp;quot;\n&amp;quot;
&lt;br&gt;+		 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;quot; &amp;nbsp;xmlns:gpxtpx=\&amp;quot;http://www.garmin.com/xmlschemas/TrackPointExtension/v1\&amp;quot;\n&amp;quot;);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	gbfprintf(ofd, &amp;quot; &amp;nbsp;xmlns=\&amp;quot;http://www.topografix.com/GPX/%c/%c\&amp;quot;\n&amp;quot;, gpx_wversion[0], gpx_wversion[2]);
&lt;br&gt;&amp;nbsp;	if (xsi_schema_loc) {
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26752223&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Patch%3A-Heartrate-cadence-write-support-for-GPX-tp26752223p26752223.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26701948</id>
	<title>issue when trying to convert mtk binary log to another format</title>
	<published>2009-12-08T14:25:44Z</published>
	<updated>2009-12-08T14:25:44Z</updated>
	<author>
		<name>jean-luc malet</name>
	</author>
	<content type="html">Hi!
&lt;br&gt;I didn't found if this issue has been reported
&lt;br&gt;it was working fine with an older version of gpsbabel
&lt;br&gt;I have a qstarz Q1000p data logger, I use it to record every 5m
&lt;br&gt;(tipical use is hicking)
&lt;br&gt;the command used &amp;nbsp;is :
&lt;br&gt;gpsbabel -D 2 -t -w -i mtk -f /dev/ttyUSB0 -o gpx -F out.gpx
&lt;br&gt;&lt;br&gt;the bin is downloading fine, the file contain data
&lt;br&gt;however the created gpx is an empty one, only the headers are
&lt;br&gt;provided, I tried to re-do the conversion using mtk-bin for -i but the
&lt;br&gt;result is the same.
&lt;br&gt;I tried to create the gpx using bt747 and here all is ok, I get a
&lt;br&gt;valid gpx file....
&lt;br&gt;it was working some time ago, I don't remember the version of gpsbabel
&lt;br&gt;I was using then
&lt;br&gt;thanks and regards
&lt;br&gt;JLM
&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;KISS! (Keep It Simple, Stupid!)
&lt;br&gt;(garde le simple, imbécile!)
&lt;br&gt;&amp;quot;mais qu'est-ce que tu m'as pondu comme usine à gaz? fait des choses
&lt;br&gt;simples et qui marchent, espèce d'imbécile!&amp;quot;
&lt;br&gt;-----------------------------
&lt;br&gt;&amp;quot;Si vous pensez que vous êtes trop petit pour changer quoique ce soit,
&lt;br&gt;essayez donc de dormir avec un moustique dans votre chambre.&amp;quot; Betty
&lt;br&gt;Reese
&lt;br&gt;&lt;a href=&quot;http://www.grainesdechangement.com/citations.htm&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.grainesdechangement.com/citations.htm&lt;/a&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Return on Information:
&lt;br&gt;Google Enterprise Search pays you back
&lt;br&gt;Get the facts.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/google-dev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/google-dev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26701948&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/issue-when-trying-to-convert-mtk-binary-log-to-another-format-tp26701948p26701948.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26618333</id>
	<title>Re: patch to increase precision in unicsv.c</title>
	<published>2009-12-02T15:14:34Z</published>
	<updated>2009-12-02T15:14:34Z</updated>
	<author>
		<name>hamish_b</name>
	</author>
	<content type="html">Robert wrote:
&lt;br&gt;&amp;gt; Under what circumstances does this patch actually improve
&lt;br&gt;&amp;gt; precision?
&lt;br&gt;&lt;br&gt;after a trip into the field last week I was downloading &amp;
&lt;br&gt;converting the data and losing info in the process. Specifically
&lt;br&gt;river depths from the sounder are better than 10cm while
&lt;br&gt;shallow, and temperature is given better than 0.1 deg C.
&lt;br&gt;This was from a consumer grade Garmin depth sounder.
&lt;br&gt;&lt;br&gt;HDOP et al were just along for the ride, the idea being that
&lt;br&gt;units using meters should report to the mm (to accomodate
&lt;br&gt;survey grade/RTK GPSs). For lat/lon that means about %.9f btw.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt;  Do you really have a device that returns temperature to a
&lt;br&gt;&amp;gt; thousandth of a degree
&lt;br&gt;&lt;br&gt;actually I do, but that's a bit besides the point &amp; I'm not
&lt;br&gt;really asking you to support research gear (but for the cost
&lt;br&gt;of 1 sigf dig that would sure be nice).
&lt;br&gt;&lt;br&gt;good thermistors are pretty cheap these days, something that
&lt;br&gt;gets you to better than 0.1 deg C is less than $0.50 so lots
&lt;br&gt;of things have that. The idea of going to 0.001 deg instead
&lt;br&gt;of 0.01 deg was to avoid introducing any FP rounding errors.
&lt;br&gt;(mostly an issue for lat/lon which needs to be stored in a
&lt;br&gt;double, but after tearing my hair out so many times due to
&lt;br&gt;that (after the source data was gone) I try to preserve
&lt;br&gt;precision+1 for everything now and let gzip worry about any
&lt;br&gt;added zeros)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; or that returns DOP with meaningful values in the hundredths
&lt;br&gt;&amp;gt; position? 
&lt;br&gt;&lt;br&gt;DOP was just to standardize at 1mm reporting. No arguement that
&lt;br&gt;that will be slight overkill. I'll have a peek at some of our
&lt;br&gt;Trible logs and see if I get any really tiny DOP numbers out of
&lt;br&gt;that (should be good to about 2mm position in the horizontal).
&lt;br&gt;I've got a feeling that the DOP there is in pseudo-meters though,
&lt;br&gt;Gpsd has some code to convert, I'm not really sure how correct
&lt;br&gt;their approach is though.
&lt;br&gt;&lt;br&gt;&amp;gt; If there is actually valid information, I
&lt;br&gt;&amp;gt; don't mind bloating the output,
&lt;br&gt;&lt;br&gt;sure, I see your point.
&lt;br&gt;&lt;br&gt;for bit balance, the GPX output doesn't need to go to %.6f for
&lt;br&gt;those things.
&lt;br&gt;&lt;br&gt;&amp;gt; but it's not like speed (which is almost always computed and
&lt;br&gt;&amp;gt; not measured)
&lt;br&gt;&lt;br&gt;are you sure about that? I seem to recall something recently
&lt;br&gt;discussing how the speed solution was often better than fix as
&lt;br&gt;it took phase differences into account.
&lt;br&gt;&lt;br&gt;&amp;gt; from consumer grade GPS has two significant digits past the
&lt;br&gt;&amp;gt; decimal.
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Hamish
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Join us December 9, 2009 for the Red Hat Virtual Experience,
&lt;br&gt;a free event focused on virtualization and cloud computing. 
&lt;br&gt;Attend in-depth sessions from your desk. Your couch. Anywhere.
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/redhat-sfdev2dev&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/redhat-sfdev2dev&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26618333&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-increase-precision-in-unicsv.c-tp26523633p26618333.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575545</id>
	<title>Re: patch to increase precision in unicsv.c</title>
	<published>2009-11-30T06:25:16Z</published>
	<updated>2009-11-30T06:25:16Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Under what circumstances does this patch &lt;i&gt;actually&lt;/i&gt; improve precision?   Do you really have a device that returns temperature to a thousandth of a degree or that returns DOP with meaningful values in the hundredths position?   If there is actually valid information, I don&amp;#39;t mind bloating the output, but it&amp;#39;s not like speed (which is almost always computed and not measured) from consumer grade GPS has two significant digits past the decimal.&lt;br&gt;
&lt;br&gt;RJL&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 25, 2009 at 8:19 PM, Hamish &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575545&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;hamish_b@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi,&lt;br&gt;
&lt;br&gt;
the attached patch increases output precision for fields like depth and&lt;br&gt;
temperature with the unicsv output format. To-the-mm is perhaps erring on&lt;br&gt;
the side of overkill, but to-the-decimeter was losing valid information.&lt;br&gt;
No point in throwing away good data...&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
thanks,&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;Hamish&lt;br&gt;
&lt;/font&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575545&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575545&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-increase-precision-in-unicsv.c-tp26523633p26575545.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26575400</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-30T06:13:16Z</published>
	<updated>2009-11-30T06:13:16Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Yes, thanx Rogier.   This is what I committed.&lt;br&gt;&lt;br&gt;Index: garmin.c&lt;br&gt;===================================================================&lt;br&gt;RCS file: /cvsroot/gpsbabel/gpsbabel/garmin.c,v&lt;br&gt;retrieving revision 1.133&lt;br&gt;
diff -p -u -r1.133 garmin.c&lt;br&gt;--- garmin.c    23 Jun 2009 03:14:21 -0000    1.133&lt;br&gt;+++ garmin.c    30 Nov 2009 14:12:07 -0000&lt;br&gt;@@ -638,16 +638,13 @@ pvt2wpt(GPS_PPvt_Data pvt, waypoint *wpt&lt;br&gt;         wpt-&amp;gt;longitude = pvt-&amp;gt;lon;&lt;br&gt;
     WAYPT_SET(wpt,course,1);&lt;br&gt;     WAYPT_SET(wpt,speed,1);&lt;br&gt;-    /* convert to true course in degrees */&lt;br&gt;-    if ( pvt-&amp;gt;east &amp;gt;= 0.0 )&lt;br&gt;-        wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;br&gt;
-    else&lt;br&gt;-        wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;br&gt;-#if 0&lt;br&gt;+&lt;br&gt;+    wpt-&amp;gt;course = 180 + DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));&lt;br&gt;+&lt;br&gt;     /* velocity in m/s */&lt;br&gt;-    wpt-&amp;gt;speed = sqrt(pvt-&amp;gt;north*pvt-&amp;gt;north + pvt-&amp;gt;east*pvt-&amp;gt;east);&lt;br&gt;
-    wpt-&amp;gt;vs = pvt-&amp;gt;up;&lt;br&gt;-#endif&lt;br&gt;+    WAYPT_SET(wpt,speed, sqrt(pvt-&amp;gt;north*pvt-&amp;gt;north + pvt-&amp;gt;east*pvt-&amp;gt;east));&lt;br&gt;+    // wpt-&amp;gt;vs = pvt-&amp;gt;up;&lt;br&gt;+&lt;br&gt;     /*&lt;br&gt;      * The unit reports time in three fields:&lt;br&gt;
      * 1) The # of days to most recent Sun. since  1989-12-31 midnight UTC.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 28, 2009 at 1:34 PM, Jeff McFadden &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575400&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.mcfadden@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Roger,&lt;br&gt;&lt;br&gt;Thanks for explaining how that all works. A very elegant solution and now I understand a lot more about how all these trig functions are working.&lt;br&gt;
&lt;br&gt;thanks!&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;&lt;br&gt;-- Jeff&lt;/font&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;

On Thu, Nov 26, 2009 at 2:11 AM, Rogier Wolff &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575400&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;


&lt;div&gt;On Thu, Nov 26, 2009 at 09:55:48AM +0100, Rogier Wolff wrote:&lt;br&gt;
&amp;gt;   wpt-&amp;gt;course = 180 DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Typo:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;
wpt-&amp;gt;course = 180 + DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));&lt;br&gt;
&lt;br&gt;
        Roger.&lt;br&gt;
--&lt;br&gt;
** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575400&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt; ** +31-15-2600998 **&lt;br&gt;
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **&lt;br&gt;
*-- BitWizard writes Linux device drivers for any device you may have! --*&lt;br&gt;
Q: It doesn&amp;#39;t work. A: Look buddy, doesn&amp;#39;t work is an ambiguous statement.&lt;br&gt;
Does it sit on the couch all day? Is it unemployed? Please be specific!&lt;br&gt;
Define &amp;#39;it&amp;#39; and what it isn&amp;#39;t doing. --------- Adapted from lxrbot FAQ&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575400&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26575400&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26575400.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26556265</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-28T11:34:00Z</published>
	<updated>2009-11-28T11:34:00Z</updated>
	<author>
		<name>Jeff-193</name>
	</author>
	<content type="html">Roger,&lt;br&gt;&lt;br&gt;Thanks for explaining how that all works. A very elegant solution and now I understand a lot more about how all these trig functions are working.&lt;br&gt;&lt;br&gt;thanks!&lt;br&gt;&lt;br&gt;-- Jeff&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;

On Thu, Nov 26, 2009 at 2:11 AM, Rogier Wolff &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26556265&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

&lt;div class=&quot;im&quot;&gt;On Thu, Nov 26, 2009 at 09:55:48AM +0100, Rogier Wolff wrote:&lt;br&gt;
&amp;gt;   wpt-&amp;gt;course = 180 DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Typo:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
wpt-&amp;gt;course = 180 + DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));&lt;br&gt;
&lt;br&gt;
        Roger.&lt;br&gt;
--&lt;br&gt;
** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26556265&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt; ** +31-15-2600998 **&lt;br&gt;
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **&lt;br&gt;
*-- BitWizard writes Linux device drivers for any device you may have! --*&lt;br&gt;
Q: It doesn&amp;#39;t work. A: Look buddy, doesn&amp;#39;t work is an ambiguous statement.&lt;br&gt;
Does it sit on the couch all day? Is it unemployed? Please be specific!&lt;br&gt;
Define &amp;#39;it&amp;#39; and what it isn&amp;#39;t doing. --------- Adapted from lxrbot FAQ&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26556265&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26556265.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526466</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-26T01:11:07Z</published>
	<updated>2009-11-26T01:11:07Z</updated>
	<author>
		<name>rew</name>
	</author>
	<content type="html">On Thu, Nov 26, 2009 at 09:55:48AM +0100, Rogier Wolff wrote:
&lt;br&gt;&amp;gt; &amp;nbsp; wpt-&amp;gt;course = 180 DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));
&lt;br&gt;&lt;br&gt;Typo:
&lt;br&gt;&lt;br&gt;wpt-&amp;gt;course = 180 + DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Roger. 
&lt;br&gt;-- 
&lt;br&gt;** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526466&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt;&amp;nbsp;** +31-15-2600998 **
&lt;br&gt;** &amp;nbsp; &amp;nbsp;Delftechpark 26 2628 XH &amp;nbsp;Delft, The Netherlands. KVK: 27239233 &amp;nbsp; &amp;nbsp;**
&lt;br&gt;*-- BitWizard writes Linux device drivers for any device you may have! --*
&lt;br&gt;Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
&lt;br&gt;Does it sit on the couch all day? Is it unemployed? Please be specific! 
&lt;br&gt;Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526466&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26526466.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26526314</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-26T00:55:48Z</published>
	<updated>2009-11-26T00:55:48Z</updated>
	<author>
		<name>rew</name>
	</author>
	<content type="html">On Wed, Nov 25, 2009 at 11:58:17AM -0700, Jeff McFadden wrote:
&lt;br&gt;&amp;gt; Sorry for the delay (left town for Thanksgiving vacation). Here's a patch
&lt;br&gt;&amp;gt; for the changes.
&lt;br&gt;&amp;gt; + if(pvt-&amp;gt;east == 0.0){
&lt;br&gt;&amp;gt; + wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don't divide by zero please
&lt;br&gt;&amp;gt; + }else if(pvt-&amp;gt;east &amp;gt; 0.0){
&lt;br&gt;&amp;gt; + wpt-&amp;gt;course = 90 - DEG(atan2(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt; + }else{
&lt;br&gt;&amp;gt; + wpt-&amp;gt;course = 270 - DEG(atan2(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt; + }
&lt;br&gt;&lt;br&gt;I think it should be something like: 
&lt;br&gt;&lt;br&gt;&amp;nbsp; wpt-&amp;gt;course = DEG(atan2(pvt-&amp;gt;east, pvt-&amp;gt;north));
&lt;br&gt;&lt;br&gt;Your patch should at least give a warning, because atan2 needs a
&lt;br&gt;second argument.
&lt;br&gt;&lt;br&gt;Notice that I've rotated the result by 90 degree by swapping east and
&lt;br&gt;north and then putting a minus in front of &amp;quot;north&amp;quot;. Mathematicians start
&lt;br&gt;counting at east, and count counter clockwise. Course is clockwise, so
&lt;br&gt;should go the other way. So to achieve that, we should flip the whole
&lt;br&gt;thing. This is done by adding another minus sign. 
&lt;br&gt;&lt;br&gt;Now there is one more problem: The result of atan2 is between -PI and
&lt;br&gt;+PI, so we also get negative courses. We could add: 
&lt;br&gt;&lt;br&gt;if (wpt-&amp;gt;course &amp;lt; 0) wpt-&amp;gt;course += 360; 
&lt;br&gt;&lt;br&gt;but we can ddo this more elegantly. If we rotate the result by 180
&lt;br&gt;degrees and add 180 degrees the result will be between 0 and 360... 
&lt;br&gt;&lt;br&gt;&amp;nbsp; wpt-&amp;gt;course = 180 DEG(atan2(-pvt-&amp;gt;east, -pvt-&amp;gt;north));
&lt;br&gt;&lt;br&gt;Roger. 
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526314&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt;&amp;nbsp;** +31-15-2600998 **
&lt;br&gt;** &amp;nbsp; &amp;nbsp;Delftechpark 26 2628 XH &amp;nbsp;Delft, The Netherlands. KVK: 27239233 &amp;nbsp; &amp;nbsp;**
&lt;br&gt;*-- BitWizard writes Linux device drivers for any device you may have! --*
&lt;br&gt;Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
&lt;br&gt;Does it sit on the couch all day? Is it unemployed? Please be specific! 
&lt;br&gt;Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26526314&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26526314.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26523633</id>
	<title>patch to increase precision in unicsv.c</title>
	<published>2009-11-25T18:19:33Z</published>
	<updated>2009-11-25T18:19:33Z</updated>
	<author>
		<name>hamish_b</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;&lt;br&gt;the attached patch increases output precision for fields like depth and
&lt;br&gt;temperature with the unicsv output format. To-the-mm is perhaps erring on
&lt;br&gt;the side of overkill, but to-the-decimeter was losing valid information.
&lt;br&gt;No point in throwing away good data...
&lt;br&gt;&lt;br&gt;&lt;br&gt;thanks,
&lt;br&gt;Hamish
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[unicsv_precisions.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;Index: unicsv.c
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvsroot/gpsbabel/gpsbabel/unicsv.c,v
&lt;br&gt;retrieving revision 1.47
&lt;br&gt;diff -u -r1.47 unicsv.c
&lt;br&gt;--- unicsv.c	20 Sep 2008 20:13:53 -0000	1.47
&lt;br&gt;+++ unicsv.c	26 Nov 2009 01:55:33 -0000
&lt;br&gt;@@ -1372,7 +1372,7 @@
&lt;br&gt;&amp;nbsp;		unicsv_print_str((wpt-&amp;gt;icon_descr != NULL) ? wpt-&amp;gt;icon_descr : &amp;quot;Waypoint&amp;quot;);
&lt;br&gt;&amp;nbsp;	if FIELD_USED(fld_depth) {
&lt;br&gt;&amp;nbsp;		if WAYPT_HAS(wpt, depth)
&lt;br&gt;-			gbfprintf(fout, &amp;quot;%s%.1f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;depth);
&lt;br&gt;+			gbfprintf(fout, &amp;quot;%s%.3f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;depth);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			gbfputs(unicsv_fieldsep, fout);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;@@ -1384,13 +1384,13 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if FIELD_USED(fld_temperature) {
&lt;br&gt;&amp;nbsp;		if WAYPT_HAS(wpt, temperature)
&lt;br&gt;-			gbfprintf(fout, &amp;quot;%s%.1f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;temperature);
&lt;br&gt;+			gbfprintf(fout, &amp;quot;%s%.3f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;temperature);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			gbfputs(unicsv_fieldsep, fout);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if FIELD_USED(fld_speed) {
&lt;br&gt;&amp;nbsp;		if WAYPT_HAS(wpt, speed)
&lt;br&gt;-			gbfprintf(fout, &amp;quot;%s%.1f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;speed);
&lt;br&gt;+			gbfprintf(fout, &amp;quot;%s%.2f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;speed);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			gbfputs(unicsv_fieldsep, fout);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;@@ -1415,19 +1415,19 @@
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if FIELD_USED(fld_hdop) {
&lt;br&gt;&amp;nbsp;		if (wpt-&amp;gt;hdop &amp;gt; 0)
&lt;br&gt;-			gbfprintf(fout, &amp;quot;%s%.1f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;hdop);
&lt;br&gt;+			gbfprintf(fout, &amp;quot;%s%.2f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;hdop);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			gbfputs(unicsv_fieldsep, fout);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if FIELD_USED(fld_vdop) {
&lt;br&gt;&amp;nbsp;		if (wpt-&amp;gt;vdop &amp;gt; 0)
&lt;br&gt;-			gbfprintf(fout, &amp;quot;%s%.1f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;vdop);
&lt;br&gt;+			gbfprintf(fout, &amp;quot;%s%.2f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;vdop);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			gbfputs(unicsv_fieldsep, fout);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if FIELD_USED(fld_pdop) {
&lt;br&gt;&amp;nbsp;		if (wpt-&amp;gt;pdop &amp;gt; 0)
&lt;br&gt;-			gbfprintf(fout, &amp;quot;%s%.1f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;pdop);
&lt;br&gt;+			gbfprintf(fout, &amp;quot;%s%.2f&amp;quot;, unicsv_fieldsep, wpt-&amp;gt;pdop);
&lt;br&gt;&amp;nbsp;		else
&lt;br&gt;&amp;nbsp;			gbfputs(unicsv_fieldsep, fout);
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26523633&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/patch-to-increase-precision-in-unicsv.c-tp26523633p26523633.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26518400</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-25T10:58:17Z</published>
	<updated>2009-11-25T10:58:17Z</updated>
	<author>
		<name>Jeff-193</name>
	</author>
	<content type="html">Sorry for the delay (left town for Thanksgiving vacation). Here&amp;#39;s a patch for the changes.&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- Jeff&lt;br&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Index: garmin.c&lt;/div&gt;&lt;div&gt;===================================================================&lt;/div&gt;

&lt;div&gt;RCS file: /cvsroot/gpsbabel/gpsbabel/garmin.c,v&lt;/div&gt;&lt;div&gt;retrieving revision 1.133&lt;/div&gt;&lt;div&gt;diff -u -r1.133 garmin.c&lt;/div&gt;&lt;div&gt;--- garmin.c&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;23 Jun 2009 03:14:21 -0000&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;1.133&lt;/div&gt;

&lt;div&gt;+++ garmin.c&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;25 Nov 2009 18:56:49 -0000&lt;/div&gt;&lt;div&gt;@@ -633,21 +633,25 @@&lt;/div&gt;&lt;div&gt; {&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;double wptime, wptimes;&lt;/div&gt;

&lt;div&gt; &lt;/div&gt;&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;wpt-&amp;gt;altitude = pvt-&amp;gt;alt;&lt;/div&gt;&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;wpt-&amp;gt;latitude = pvt-&amp;gt;lat;&lt;/div&gt;
&lt;div&gt;
-        wpt-&amp;gt;longitude = pvt-&amp;gt;lon;&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;wpt-&amp;gt;altitude  = pvt-&amp;gt;alt;&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;wpt-&amp;gt;latitude  = pvt-&amp;gt;lat;&lt;/div&gt;

&lt;div&gt;+    wpt-&amp;gt;longitude = pvt-&amp;gt;lon;&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;WAYPT_SET(wpt,course,1);&lt;/div&gt;&lt;div&gt;

-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;WAYPT_SET(wpt,speed,1);&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;/* convert to true course in degrees */&lt;/div&gt;

&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if ( pvt-&amp;gt;east &amp;gt;= 0.0 )&lt;/div&gt;&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;else&lt;/div&gt;&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;-#if 0&lt;/div&gt;

&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if(pvt-&amp;gt;east == 0.0){&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don&amp;#39;t divide by zero please&lt;/div&gt;

&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else if(pvt-&amp;gt;east &amp;gt; 0.0){&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan2(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan2(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;
+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;
&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;/* velocity in m/s */&lt;/div&gt;&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;wpt-&amp;gt;speed = sqrt(pvt-&amp;gt;north*pvt-&amp;gt;north + pvt-&amp;gt;east*pvt-&amp;gt;east);&lt;/div&gt;

&lt;div&gt;-&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;wpt-&amp;gt;vs = pvt-&amp;gt;up;&lt;/div&gt;&lt;div&gt;-#endif&lt;/div&gt;&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;WAYPT_SET(wpt,speed,sqrt(pvt-&amp;gt;north*pvt-&amp;gt;north + pvt-&amp;gt;east*pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;+&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;//wpt-&amp;gt;vs = pvt-&amp;gt;up;&lt;/div&gt;&lt;div&gt;+&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;/*&lt;/div&gt;&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * The unit reports time in three fields:&lt;/div&gt;

&lt;div&gt; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt; * 1) The # of days to most recent Sun. since  1989-12-31 midnight UTC.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 19, 2009 at 9:31 AM, Rogier Wolff &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518400&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;

&lt;div class=&quot;im&quot;&gt;On Thu, Nov 19, 2009 at 10:08:54AM -0600, Robert Lipe wrote:&lt;br&gt;
&amp;gt; Good call, guys.   atan2 is in C89, so it should be available everywhere we&lt;br&gt;
&amp;gt; care.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; Roger, I was indeed trying to defend against the case of floating point&lt;br&gt;
&amp;gt; jitter near, but not quite equal to zero.  The values in question do come&lt;br&gt;
&amp;gt; from 32-bit floats from the device (not ascii) and there&amp;#39;s nothing that&lt;br&gt;
&amp;gt; actually stops the device from reporting amounts of or arbitrarily close to&lt;br&gt;
&amp;gt; zero; it&amp;#39;s not &amp;quot;just&amp;quot; NMEA/ASCII that we&amp;#39;re reading.   But I&amp;#39;m quite happy&lt;br&gt;
&amp;gt; making this atan2&amp;#39;s problem.&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;atan (x) is only just a little more than &amp;quot;x&amp;quot; when x is small.&lt;br&gt;
&lt;br&gt;
This is what implementations use to implement atan. Many atan2 (and&lt;br&gt;
atan) functions will start with something like:&lt;br&gt;
&lt;br&gt;
double atan2 (double y, double x)&lt;br&gt;
{&lt;br&gt;
   if (abs (y) &amp;lt; abs(x)) return (PI/4 - atan2 (x, y));&lt;br&gt;
&lt;br&gt;
   return x + epsilon (x/y);&lt;br&gt;
&lt;div class=&quot;im&quot;&gt;}&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; Jeff, since you&amp;#39;re in this section of code, want to drop it in and us send a&lt;br&gt;
&amp;gt; patch?&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;Good patches reduce the size of the code. (which is possible in this&lt;br&gt;
case!)&lt;br&gt;
&lt;br&gt;
        Roger.&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&lt;br&gt;
--&lt;br&gt;
** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518400&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt; ** +31-15-2600998 **&lt;br&gt;
**    Delftechpark 26 2628 XH  Delft, The Netherlands. KVK: 27239233    **&lt;br&gt;
*-- BitWizard writes Linux device drivers for any device you may have! --*&lt;br&gt;
Q: It doesn&amp;#39;t work. A: Look buddy, doesn&amp;#39;t work is an ambiguous statement.&lt;br&gt;
Does it sit on the couch all day? Is it unemployed? Please be specific!&lt;br&gt;
Define &amp;#39;it&amp;#39; and what it isn&amp;#39;t doing. --------- Adapted from lxrbot FAQ&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26518400&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26518400.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26483063</id>
	<title>Re: Write support for binary lmx</title>
	<published>2009-11-23T10:01:05Z</published>
	<updated>2009-11-23T10:01:05Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/23 Christian Bühler &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483063&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christian@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I also thought about creating a seperate format, but the structure of&lt;br&gt;
the binary and XML format are very similar to each other, so this would&lt;br&gt;
have meant quite a lot of duplicate code.&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;The way we&amp;#39;ve handled this in the past has been to expose two separate entries in vecs.c (thus allowing two different menu options in the GUI) and then have the foo_init set or clear  the equivalent of your &amp;#39;binary&amp;#39; variable.   You can see an extreme case of this in magproto.c where the &amp;quot;same&amp;quot; protocol is both a serial and two annoyingly different file-based ones.&lt;br&gt;
&lt;br&gt;If we were convinced anybody used binary LMX, I&amp;#39;d be more inclined to tackle this. :-)   Let&amp;#39;s just go with it for now.&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;

Also the original specification sais, that implementations should&lt;br&gt;
support both formats. So I think, it makes sense to keep both&lt;br&gt;
implementations close to each other.&lt;br&gt;
&lt;br&gt;
(This also means, that even Nokia does not comply strictly to their own&lt;br&gt;
specification :-)&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Yes, this project has made it very clear that even when vendors do publish specs for such things, they&amp;#39;re frequently not followed even internally within the company.&lt;br&gt;&lt;br&gt;
Later,&lt;br&gt;RJL&lt;br&gt;&lt;br&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;
Am Montag, den 23.11.2009, 00:37 -0600 schrieb Robert Lipe:&lt;br&gt;
&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;&amp;gt; Thanx.  This seems pretty sane to me.  My first inclination is to make&lt;br&gt;
&amp;gt; binary LMX a different format but if they&amp;#39;re not supporting it on&lt;br&gt;
&amp;gt; their current devices and this is just a historic thing, it might not&lt;br&gt;
&amp;gt; be so bad.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; I&amp;#39;ve applied this.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; 2009/11/6 Christian Bühler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483063&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christian@...&lt;/a&gt;&amp;gt;&lt;br&gt;
&amp;gt;         Hi,&lt;br&gt;
&amp;gt;         I sat down a while and implemented write support for the&lt;br&gt;
&amp;gt;         binary lmx&lt;br&gt;
&amp;gt;         format.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         I also implicitly fixed some mistakes in the lmx xml format:&lt;br&gt;
&amp;gt;         - XML files support UTF-8, so no need to convert special&lt;br&gt;
&amp;gt;         characters&lt;br&gt;
&amp;gt;         - Shortnames are now handled just like in gpx&lt;br&gt;
&amp;gt;         - There was a missing space in the xsi:schemaLocation&lt;br&gt;
&amp;gt;         - indentation is now with tabs just like it is generated by my&lt;br&gt;
&amp;gt;         Nokia N82&lt;br&gt;
&amp;gt;         - added a test to testo for the binary format&lt;br&gt;
&amp;gt;         - I also added a bit to the lmx documentation&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         Feel free to fine tune the documentation as I am not a native&lt;br&gt;
&amp;gt;         english&lt;br&gt;
&amp;gt;         speaker.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         Unfortunately, just after I finished this, I realized that my&lt;br&gt;
&amp;gt;         mobile&lt;br&gt;
&amp;gt;         does not support the binary format at all, so I won&amp;#39;t use this&lt;br&gt;
&amp;gt;         in&lt;br&gt;
&amp;gt;         production. But I hope this is of use for someone else.&lt;br&gt;
&amp;gt;         However, it was&lt;br&gt;
&amp;gt;         a good practice :-)&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         Regards,&lt;br&gt;
&amp;gt;         Christian&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;         ------------------------------------------------------------------------------&lt;br&gt;
&amp;gt;         Let Crystal Reports handle the reporting - Free Crystal&lt;br&gt;
&amp;gt;         Reports 2008 30-Day&lt;br&gt;
&amp;gt;         trial. Simplify your report design, integration and deployment&lt;br&gt;
&amp;gt;         - and focus on&lt;br&gt;
&amp;gt;         what you do best, core application coding. Discover what&amp;#39;s new&lt;br&gt;
&amp;gt;         with&lt;br&gt;
&amp;gt;         Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;
&amp;gt;         _______________________________________________&lt;br&gt;
&amp;gt;         Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&amp;gt;         &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483063&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&amp;gt;         &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;br&gt;
&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26483063&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Write-support-for-binary-lmx-tp26236347p26483063.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26482222</id>
	<title>Re: Write support for binary lmx</title>
	<published>2009-11-23T09:14:34Z</published>
	<updated>2009-11-23T09:14:34Z</updated>
	<author>
		<name>Christian Bühler</name>
	</author>
	<content type="html">I also thought about creating a seperate format, but the structure of
&lt;br&gt;the binary and XML format are very similar to each other, so this would
&lt;br&gt;have meant quite a lot of duplicate code.
&lt;br&gt;&lt;br&gt;Also the original specification sais, that implementations should
&lt;br&gt;support both formats. So I think, it makes sense to keep both
&lt;br&gt;implementations close to each other.
&lt;br&gt;&lt;br&gt;(This also means, that even Nokia does not comply strictly to their own
&lt;br&gt;specification :-)
&lt;br&gt;&lt;br&gt;Am Montag, den 23.11.2009, 00:37 -0600 schrieb Robert Lipe:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; Thanx. &amp;nbsp;This seems pretty sane to me. &amp;nbsp;My first inclination is to make
&lt;br&gt;&amp;gt; binary LMX a different format but if they're not supporting it on
&lt;br&gt;&amp;gt; their current devices and this is just a historic thing, it might not
&lt;br&gt;&amp;gt; be so bad.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; I've applied this.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 2009/11/6 Christian Bühler &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482222&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christian@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Hi,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I sat down a while and implemented write support for the
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; binary lmx
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; format.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I also implicitly fixed some mistakes in the lmx xml format:
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - XML files support UTF-8, so no need to convert special
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; characters
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Shortnames are now handled just like in gpx
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - There was a missing space in the xsi:schemaLocation
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - indentation is now with tabs just like it is generated by my
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Nokia N82
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - added a test to testo for the binary format
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - I also added a bit to the lmx documentation
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Feel free to fine tune the documentation as I am not a native
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; english
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; speaker.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Unfortunately, just after I finished this, I realized that my
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; mobile
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; does not support the binary format at all, so I won't use this
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; in
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; production. But I hope this is of use for someone else.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; However, it was
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a good practice :-)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Regards,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Christian
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Let Crystal Reports handle the reporting - Free Crystal
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Reports 2008 30-Day
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; trial. Simplify your report design, integration and deployment
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - and focus on
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; what you do best, core application coding. Discover what's new
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; with
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482222&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;&amp;gt; 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26482222&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Write-support-for-binary-lmx-tp26236347p26482222.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26473383</id>
	<title>Re: Write support for binary lmx</title>
	<published>2009-11-22T22:37:39Z</published>
	<updated>2009-11-22T22:37:39Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Thanx.  This seems pretty sane to me.  My first inclination is to make binary LMX a different format but if they&amp;#39;re not supporting it on their current devices and this is just a historic thing, it might not be so bad.&lt;br&gt;
&lt;br&gt;I&amp;#39;ve applied this.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/11/6 Christian Bühler &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473383&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;christian@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi,&lt;br&gt;
I sat down a while and implemented write support for the binary lmx&lt;br&gt;
format.&lt;br&gt;
&lt;br&gt;
I also implicitly fixed some mistakes in the lmx xml format:&lt;br&gt;
- XML files support UTF-8, so no need to convert special characters&lt;br&gt;
- Shortnames are now handled just like in gpx&lt;br&gt;
- There was a missing space in the xsi:schemaLocation&lt;br&gt;
- indentation is now with tabs just like it is generated by my Nokia N82&lt;br&gt;
- added a test to testo for the binary format&lt;br&gt;
- I also added a bit to the lmx documentation&lt;br&gt;
&lt;br&gt;
Feel free to fine tune the documentation as I am not a native english&lt;br&gt;
speaker.&lt;br&gt;
&lt;br&gt;
Unfortunately, just after I finished this, I realized that my mobile&lt;br&gt;
does not support the binary format at all, so I won&amp;#39;t use this in&lt;br&gt;
production. But I hope this is of use for someone else. However, it was&lt;br&gt;
a good practice :-)&lt;br&gt;
&lt;br&gt;
Regards,&lt;br&gt;
&lt;font color=&quot;#888888&quot;&gt;Christian&lt;br&gt;
&lt;/font&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473383&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26473383&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Write-support-for-binary-lmx-tp26236347p26473383.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26429464</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-19T08:31:44Z</published>
	<updated>2009-11-19T08:31:44Z</updated>
	<author>
		<name>rew</name>
	</author>
	<content type="html">On Thu, Nov 19, 2009 at 10:08:54AM -0600, Robert Lipe wrote:
&lt;br&gt;&amp;gt; Good call, guys. &amp;nbsp; atan2 is in C89, so it should be available everywhere we
&lt;br&gt;&amp;gt; care.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Roger, I was indeed trying to defend against the case of floating point
&lt;br&gt;&amp;gt; jitter near, but not quite equal to zero. &amp;nbsp;The values in question do come
&lt;br&gt;&amp;gt; from 32-bit floats from the device (not ascii) and there's nothing that
&lt;br&gt;&amp;gt; actually stops the device from reporting amounts of or arbitrarily close to
&lt;br&gt;&amp;gt; zero; it's not &amp;quot;just&amp;quot; NMEA/ASCII that we're reading. &amp;nbsp; But I'm quite happy
&lt;br&gt;&amp;gt; making this atan2's problem.
&lt;br&gt;&lt;br&gt;atan (x) is only just a little more than &amp;quot;x&amp;quot; when x is small. 
&lt;br&gt;&lt;br&gt;This is what implementations use to implement atan. Many atan2 (and
&lt;br&gt;atan) functions will start with something like:
&lt;br&gt;&lt;br&gt;double atan2 (double y, double x)
&lt;br&gt;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;if (abs (y) &amp;lt; abs(x)) return (PI/4 - atan2 (x, y));
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp;return x + epsilon (x/y);
&lt;br&gt;}
&lt;br&gt;&lt;br&gt;&lt;br&gt;&amp;gt; Jeff, since you're in this section of code, want to drop it in and us send a
&lt;br&gt;&amp;gt; patch?
&lt;br&gt;&lt;br&gt;Good patches reduce the size of the code. (which is possible in this
&lt;br&gt;case!)
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Roger. 
&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429464&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt;&amp;nbsp;** +31-15-2600998 **
&lt;br&gt;** &amp;nbsp; &amp;nbsp;Delftechpark 26 2628 XH &amp;nbsp;Delft, The Netherlands. KVK: 27239233 &amp;nbsp; &amp;nbsp;**
&lt;br&gt;*-- BitWizard writes Linux device drivers for any device you may have! --*
&lt;br&gt;Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
&lt;br&gt;Does it sit on the couch all day? Is it unemployed? Please be specific! 
&lt;br&gt;Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429464&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26429464.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26429034</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-19T08:08:54Z</published>
	<updated>2009-11-19T08:08:54Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Good call, guys.   atan2 is in C89, so it should be available everywhere we care.  &lt;br&gt;&lt;br&gt;Roger, I was indeed trying to defend against the case of floating point jitter near, but not quite equal to zero.  The values in question do come from 32-bit floats from the device (not ascii) and there&amp;#39;s nothing that actually stops the device from reporting amounts of or arbitrarily close to zero; it&amp;#39;s not &amp;quot;just&amp;quot; NMEA/ASCII that we&amp;#39;re reading.   But I&amp;#39;m quite happy making this atan2&amp;#39;s problem.&lt;br&gt;
&lt;br&gt;Jeff, since you&amp;#39;re in this section of code, want to drop it in and us send a patch?&lt;br&gt;&lt;br&gt;RJL&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Thu, Nov 19, 2009 at 3:23 AM, Mathias Adam &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429034&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;m.adam@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;Rogier Wolff schrieb:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;&lt;div class=&quot;im&quot;&gt;
The atan of a division by &amp;quot;almost&amp;quot; zero is well defined. Actually,&lt;br&gt;
in theory, the atan of 1/0 should simply be pi/4 (or whatever it is).&lt;br&gt;
&lt;br&gt;
So you&amp;#39;re defending against the &amp;quot;east&amp;quot; number being very very small,&lt;br&gt;
but that&amp;#39;s not a problem. &lt;br&gt;&lt;/div&gt;&lt;div class=&quot;im&quot;&gt;
So.... I would suggest:&lt;br&gt;
&lt;br&gt;
// Although the textbooks recommend against comparing for an exact&lt;br&gt;
// floating point value, we&amp;#39;ve thought about it and come to the // conclusion that in this case it&amp;#39;s appropriate. &lt;br&gt;
&lt;/div&gt;&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
I got this mail after sending my own reply. I agree on that, so I&amp;#39;d go this way too in case atan2 isn&amp;#39;t usable.&lt;br&gt;
(Note: I just checked atan2, it does give PI/4 for y=1,x=0)&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;&lt;font color=&quot;#888888&quot;&gt;
Mathias&lt;br&gt;
&lt;/font&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26429034&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26429034.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423179</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-19T01:23:14Z</published>
	<updated>2009-11-19T01:23:14Z</updated>
	<author>
		<name>Mathias Adam-2</name>
	</author>
	<content type="html">Rogier Wolff schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; The atan of a division by &amp;quot;almost&amp;quot; zero is well defined. Actually,
&lt;br&gt;&amp;gt; in theory, the atan of 1/0 should simply be pi/4 (or whatever it is).
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So you're defending against the &amp;quot;east&amp;quot; number being very very small,
&lt;br&gt;&amp;gt; but that's not a problem. 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; So.... I would suggest:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; // Although the textbooks recommend against comparing for an exact
&lt;br&gt;&amp;gt; // floating point value, we've thought about it and come to the 
&lt;br&gt;&amp;gt; // conclusion that in this case it's appropriate. 
&lt;/div&gt;&lt;br&gt;&lt;br&gt;I got this mail after sending my own reply. I agree on that, so I'd go 
&lt;br&gt;this way too in case atan2 isn't usable.
&lt;br&gt;(Note: I just checked atan2, it does give PI/4 for y=1,x=0)
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Mathias
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423179&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26423179.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26423515</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-19T01:08:07Z</published>
	<updated>2009-11-19T01:08:07Z</updated>
	<author>
		<name>Mathias Adam-2</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;perhaps atan2 is of any help here? it takes both x and y values 
&lt;br&gt;separately to get the quadrant right. However I'm not sure what it does 
&lt;br&gt;if y = 0 though. (I don't have such a device, just stumbled across the 
&lt;br&gt;mail on the list...)
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Mathias
&lt;br&gt;&lt;br&gt;Jeff McFadden schrieb:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; How about
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; if( pvt-&amp;gt;east &amp;lt; 0.1 &amp;&amp; pvt-&amp;gt;east &amp;gt; -0.1 ){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; since negative east value means moving west, so those are entirely expected.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -- Jeff
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wed, Nov 18, 2009 at 11:17 PM, Robert Lipe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423515&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robertlipe@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt;&amp;gt; Division by zero is bad. &amp;nbsp; Then again, so is numerical comparison with
&lt;br&gt;&amp;gt;&amp;gt; floating point zero. &amp;nbsp; If we change your patch to start with
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; if( pvt-&amp;gt;east &amp;lt; 0.1 ){
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; would you still like it as much? &amp;nbsp; &amp;nbsp; If so, I'll appy this and the patch
&lt;br&gt;&amp;gt;&amp;gt; that turns speed calcs on.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; We've shipped this for three years and never had bugreports of crashes
&lt;br&gt;&amp;gt;&amp;gt; here? &amp;nbsp; Wow.
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; RJL
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt; On Wed, Nov 18, 2009 at 1:07 PM, Jeff McFadden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423515&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.mcfadden@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I just delved into this today when working on a problem with velocity
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; data.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I noticed that in the function (garmin.c)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; pvt2wpt(GPS_PPvt_Data pvt, waypoint *wpt)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;That this code is running (line 635):
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if ( pvt-&amp;gt;east &amp;gt;= 0.0 ){
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;}else{
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Since the north and east values are velocity, my guess is that when the
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; gps is losing a fix it's returning a 0 for velocity, and the program is
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; crashing with a divide-by-zero error.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; A solution is something like
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; if( pvt-&amp;gt;east == 0.0 ){
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don't divide by zero please
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;}else if ( pvt-&amp;gt;east &amp;gt; 0.0 ){
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &amp;nbsp;}else{
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; }
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; That's a guess only, but it seems like it's an error whether that's
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; causing this specific crash or not.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; -- Jeff
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Robert Lipe &amp;lt;robertlipe@gp...&amp;gt; writes:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; On Tue, Oct 13, 2009 at 6:14 AM, Marc &amp;lt;dkm@ka...&amp;gt; wrote:
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; it, I read the sensors' value and add theses value in the output. &amp;nbsp;The
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; problem I have is that when the GPS looses signal, gpsbabel exits. I
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; It's not supposed to. &amp;nbsp;In fact, that was one of the test criteria for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; that
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; mode. &amp;nbsp; Now different GPSes have been added since my original work and
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; they may
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; have different failure states, but in the absence of debug traces, a GPS
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; model,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; connection media, operating system in use, or so on the search area for
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt; guessing is large.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks for your answer. I can already provide more info, but I'll
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; investigate exactly what happens by looking more deeply into the code
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; (which I already did some time ago...).
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; I'm using a Garmin Vista Cx through the USB on an Ubuntu 9.04 :)
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; But as I said, I'll gather more info to narrow down my problem.
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Thanks,
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Marc
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; 30-Day
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; on
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423515&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt;&amp;gt;&amp;gt;
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423515&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26423515&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26423515.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26422804</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-19T00:52:46Z</published>
	<updated>2009-11-19T00:52:46Z</updated>
	<author>
		<name>rew</name>
	</author>
	<content type="html">On Thu, Nov 19, 2009 at 12:17:46AM -0600, Robert Lipe wrote:
&lt;br&gt;&amp;gt; Division by zero is bad. &amp;nbsp; Then again, so is numerical comparison with
&lt;br&gt;&amp;gt; floating point zero. &amp;nbsp; If we change your patch to start with
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; if( pvt-&amp;gt;east &amp;lt; 0.1 ){
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; would you still like it as much? &amp;nbsp; &amp;nbsp; If so, I'll appy this and the patch
&lt;br&gt;&amp;gt; that turns speed calcs on.
&lt;br&gt;&lt;br&gt;The atan of a division by &amp;quot;almost&amp;quot; zero is well defined. Actually,
&lt;br&gt;in theory, the atan of 1/0 should simply be pi/4 (or whatever it is).
&lt;br&gt;&lt;br&gt;So you're defending against the &amp;quot;east&amp;quot; number being very very small,
&lt;br&gt;but that's not a problem. 
&lt;br&gt;&lt;br&gt;In theory, the division can overflow, if &amp;quot;north&amp;quot; is very large, and
&lt;br&gt;&amp;quot;east&amp;quot; very small. But because &amp;quot;north&amp;quot; is a speed from the physical
&lt;br&gt;world, it is unlikely to be near the maximum double floating point
&lt;br&gt;number. That only leaves east, which might be close to the absolute
&lt;br&gt;minimum value for a floating point number. This again is very very
&lt;br&gt;unlikely. Mostly because GPSes deliver their coordinates in
&lt;br&gt;fixed-point-ascii, so such a small velocity is unlikely to be
&lt;br&gt;representable.
&lt;br&gt;&lt;br&gt;So.... I would suggest:
&lt;br&gt;&lt;br&gt;// Although the textbooks recommend against comparing for an exact
&lt;br&gt;// floating point value, we've thought about it and come to the 
&lt;br&gt;// conclusion that in this case it's appropriate. 
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; roger
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; We've shipped this for three years and never had bugreports of crashes
&lt;br&gt;&amp;gt; here? &amp;nbsp; Wow.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; RJL
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; On Wed, Nov 18, 2009 at 1:07 PM, Jeff McFadden &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.mcfadden@...&lt;/a&gt;&amp;gt;wrote:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; &amp;gt; I just delved into this today when working on a problem with velocity data.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I noticed that in the function (garmin.c)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; pvt2wpt(GPS_PPvt_Data pvt, waypoint *wpt)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; That this code is running (line 635):
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; if ( pvt-&amp;gt;east &amp;gt;= 0.0 ){
&lt;br&gt;&amp;gt; &amp;gt; wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;}else{
&lt;br&gt;&amp;gt; &amp;gt; wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Since the north and east values are velocity, my guess is that when the gps
&lt;br&gt;&amp;gt; &amp;gt; is losing a fix it's returning a 0 for velocity, and the program is crashing
&lt;br&gt;&amp;gt; &amp;gt; with a divide-by-zero error.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; A solution is something like
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; if( pvt-&amp;gt;east == 0.0 ){
&lt;br&gt;&amp;gt; &amp;gt; wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don't divide by zero please
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;}else if ( pvt-&amp;gt;east &amp;gt; 0.0 ){
&lt;br&gt;&amp;gt; &amp;gt; wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt; &amp;gt; &amp;nbsp;}else{
&lt;br&gt;&amp;gt; &amp;gt; wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));
&lt;br&gt;&amp;gt; &amp;gt; }
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; That's a guess only, but it seems like it's an error whether that's causing
&lt;br&gt;&amp;gt; &amp;gt; this specific crash or not.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; -- Jeff
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Robert Lipe &amp;lt;robertlipe@gp...&amp;gt; writes:
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; On Tue, Oct 13, 2009 at 6:14 AM, Marc &amp;lt;dkm@ka...&amp;gt; wrote:
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; it, I read the sensors' value and add theses value in the output. &amp;nbsp;The
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; problem I have is that when the GPS looses signal, gpsbabel exits. I
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; It's not supposed to. &amp;nbsp;In fact, that was one of the test criteria for
&lt;br&gt;&amp;gt; &amp;gt; that
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; mode. &amp;nbsp; Now different GPSes have been added since my original work and
&lt;br&gt;&amp;gt; &amp;gt; they may
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; have different failure states, but in the absence of debug traces, a GPS
&lt;br&gt;&amp;gt; &amp;gt; model,
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; connection media, operating system in use, or so on the search area for
&lt;br&gt;&amp;gt; &amp;gt; &amp;gt; guessing is large.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks for your answer. I can already provide more info, but I'll
&lt;br&gt;&amp;gt; &amp;gt; investigate exactly what happens by looking more deeply into the code
&lt;br&gt;&amp;gt; &amp;gt; (which I already did some time ago...).
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; I'm using a Garmin Vista Cx through the USB on an Ubuntu 9.04 :)
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; But as I said, I'll gather more info to narrow down my problem.
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; Thanks,
&lt;br&gt;&amp;gt; &amp;gt; Marc
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
&lt;br&gt;&amp;gt; &amp;gt; trial. Simplify your report design, integration and deployment - and focus
&lt;br&gt;&amp;gt; &amp;gt; on
&lt;br&gt;&amp;gt; &amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; &amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; &amp;gt; Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422804&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;gt;
&lt;br&gt;&amp;gt; &amp;gt;
&lt;/div&gt;&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;&amp;gt; trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;&amp;gt; what you do best, core application coding. Discover what's new with
&lt;br&gt;&amp;gt; Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422804&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-- 
&lt;br&gt;** &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422804&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;R.E.Wolff@...&lt;/a&gt; ** &lt;a href=&quot;http://www.BitWizard.nl/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.BitWizard.nl/&lt;/a&gt;&amp;nbsp;** +31-15-2600998 **
&lt;br&gt;** &amp;nbsp; &amp;nbsp;Delftechpark 26 2628 XH &amp;nbsp;Delft, The Netherlands. KVK: 27239233 &amp;nbsp; &amp;nbsp;**
&lt;br&gt;*-- BitWizard writes Linux device drivers for any device you may have! --*
&lt;br&gt;Q: It doesn't work. A: Look buddy, doesn't work is an ambiguous statement. 
&lt;br&gt;Does it sit on the couch all day? Is it unemployed? Please be specific! 
&lt;br&gt;Define 'it' and what it isn't doing. --------- Adapted from lxrbot FAQ
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26422804&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26422804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26421060</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-18T22:34:23Z</published>
	<updated>2009-11-18T22:34:23Z</updated>
	<author>
		<name>Jeff-193</name>
	</author>
	<content type="html">How about&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;    if( pvt-&amp;gt;east &amp;lt; 0.1 &amp;amp;&amp;amp; pvt-&amp;gt;east &amp;gt; -0.1 ){&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;since negative east value means moving west, so those are entirely expected.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;

-- Jeff&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 18, 2009 at 11:17 PM, Robert Lipe &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26421060&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robertlipe@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;&quot;&gt;Division by zero is bad.   Then again, so is numerical comparison with floating point zero.   If we change your patch to start with&lt;br&gt;

&lt;br&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if( pvt-&amp;gt;east &amp;lt; 0.1 ){&lt;/div&gt;&lt;br&gt;
would you still like it as much?     If so, I&amp;#39;ll appy this and the patch that turns speed calcs on.&lt;br&gt;&lt;br&gt;We&amp;#39;ve shipped this for three years and never had bugreports of crashes here?   Wow.&lt;br&gt;&lt;br&gt;RJL&lt;br&gt;&lt;br&gt;&lt;br&gt;


&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;On Wed, Nov 18, 2009 at 1:07 PM, Jeff McFadden &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26421060&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.mcfadden@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;

&lt;/div&gt;&lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left:1px solid rgb(204, 204, 204);margin:0pt 0pt 0pt 0.8ex;padding-left:1ex&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class=&quot;h5&quot;&gt;
I just delved into this today when working on a problem with velocity data.&lt;br&gt;&lt;br&gt;I noticed that in the function (garmin.c)&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;pvt2wpt(GPS_PPvt_Data pvt, waypoint *wpt)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;

&lt;/div&gt;


&lt;div&gt;That this code is running (line 635):&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if ( pvt-&amp;gt;east &amp;gt;= 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;




&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Since the north and east values are velocity, my guess is that when the gps is losing a fix it&amp;#39;s returning a 0 for velocity, and the program is crashing with a divide-by-zero error.&lt;/div&gt;




&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;A solution is something like&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if( pvt-&amp;gt;east == 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don&amp;#39;t divide by zero please&lt;/div&gt;




&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else if ( pvt-&amp;gt;east &amp;gt; 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;That&amp;#39;s a guess only, but it seems like it&amp;#39;s an error whether that&amp;#39;s causing this specific crash or not.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- Jeff&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;Robert Lipe &amp;lt;robertlipe@gp...&amp;gt; writes:&lt;br&gt;





 &lt;br&gt;
 &amp;gt; On Tue, Oct 13, 2009 at 6:14 AM, Marc &amp;lt;dkm@ka...&amp;gt; wrote:&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt;     it, I read the sensors&amp;#39; value and add theses value in the output.  The&lt;br&gt;
 &amp;gt;     problem I have is that when the GPS looses signal, gpsbabel exits. I&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt; It&amp;#39;s not supposed to.  In fact, that was one of the test criteria for that&lt;br&gt;
 &amp;gt; mode.   Now different GPSes have been added since my original work and they may&lt;br&gt;
 &amp;gt; have different failure states, but in the absence of debug traces, a GPS model,&lt;br&gt;
 &amp;gt; connection media, operating system in use, or so on the search area for&lt;br&gt;
 &amp;gt; guessing is large.&lt;br&gt;
 &lt;br&gt;
 Thanks for your answer. I can already provide more info, but I&amp;#39;ll&lt;br&gt;
 investigate exactly what happens by looking more deeply into the code&lt;br&gt;
 (which I already did some time ago...).&lt;br&gt;
 &lt;br&gt;
 I&amp;#39;m using a Garmin Vista Cx through the USB on an Ubuntu 9.04 :)&lt;br&gt;
 &lt;br&gt;
 But as I said, I&amp;#39;ll gather more info to narrow down my problem.&lt;br&gt;
 &lt;br&gt;
 Thanks,&lt;br&gt;
 Marc
&lt;/div&gt;
&lt;br&gt;&lt;/div&gt;&lt;/div&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26421060&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26421060&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26421060.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420959</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-18T22:17:46Z</published>
	<updated>2009-11-18T22:17:46Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Division by zero is bad.   Then again, so is numerical comparison with floating point zero.   If we change your patch to start with&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if( pvt-&amp;gt;east &amp;lt; 0.1 ){&lt;/div&gt;&lt;br&gt;
would you still like it as much?     If so, I&amp;#39;ll appy this and the patch that turns speed calcs on.&lt;br&gt;&lt;br&gt;We&amp;#39;ve shipped this for three years and never had bugreports of crashes here?   Wow.&lt;br&gt;&lt;br&gt;RJL&lt;br&gt;&lt;br&gt;&lt;br&gt;
&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Nov 18, 2009 at 1:07 PM, Jeff McFadden &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420959&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jeff.mcfadden@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
I just delved into this today when working on a problem with velocity data.&lt;br&gt;&lt;br&gt;I noticed that in the function (garmin.c)&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;pvt2wpt(GPS_PPvt_Data pvt, waypoint *wpt)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;


&lt;div&gt;That this code is running (line 635):&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if ( pvt-&amp;gt;east &amp;gt;= 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;


&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Since the north and east values are velocity, my guess is that when the gps is losing a fix it&amp;#39;s returning a 0 for velocity, and the program is crashing with a divide-by-zero error.&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;A solution is something like&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;if( pvt-&amp;gt;east == 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don&amp;#39;t divide by zero please&lt;/div&gt;


&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}else if ( pvt-&amp;gt;east &amp;gt; 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;white-space: pre;&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;


&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;That&amp;#39;s a guess only, but it seems like it&amp;#39;s an error whether that&amp;#39;s causing this specific crash or not.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- Jeff&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;Robert Lipe &amp;lt;robertlipe@gp...&amp;gt; writes:&lt;br&gt;



 &lt;br&gt;
 &amp;gt; On Tue, Oct 13, 2009 at 6:14 AM, Marc &amp;lt;dkm@ka...&amp;gt; wrote:&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt;     it, I read the sensors&amp;#39; value and add theses value in the output.  The&lt;br&gt;
 &amp;gt;     problem I have is that when the GPS looses signal, gpsbabel exits. I&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt; It&amp;#39;s not supposed to.  In fact, that was one of the test criteria for that&lt;br&gt;
 &amp;gt; mode.   Now different GPSes have been added since my original work and they may&lt;br&gt;
 &amp;gt; have different failure states, but in the absence of debug traces, a GPS model,&lt;br&gt;
 &amp;gt; connection media, operating system in use, or so on the search area for&lt;br&gt;
 &amp;gt; guessing is large.&lt;br&gt;
 &lt;br&gt;
 Thanks for your answer. I can already provide more info, but I&amp;#39;ll&lt;br&gt;
 investigate exactly what happens by looking more deeply into the code&lt;br&gt;
 (which I already did some time ago...).&lt;br&gt;
 &lt;br&gt;
 I&amp;#39;m using a Garmin Vista Cx through the USB on an Ubuntu 9.04 :)&lt;br&gt;
 &lt;br&gt;
 But as I said, I&amp;#39;ll gather more info to narrow down my problem.&lt;br&gt;
 &lt;br&gt;
 Thanks,&lt;br&gt;
 Marc
&lt;/div&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420959&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420959&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26420959.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26420818</id>
	<title>Re: PATCH: detect serial ports in qt-gui under win32</title>
	<published>2009-11-18T21:54:16Z</published>
	<updated>2009-11-18T21:54:16Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Much simpler than the approaches I&amp;#39;d considered and it seems to get the job done.  Appliled.   Thanx.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Sat, Nov 14, 2009 at 7:31 AM, Tal &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420818&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;tal.bav@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;The new gui is great! I use it often in windows.&lt;br&gt;
This patch detects the available serial ports using the&lt;br&gt;
QueryDosDevice() function.&lt;br&gt;
According to an msdn page I&amp;#39;ve googled, this function is available&lt;br&gt;
from Windows 2000 and later.&lt;br&gt;
A version of windows without QueryDosDevice(), will probably not be&lt;br&gt;
able to load GpsBabelFE.exe at all, because this patch does not look&lt;br&gt;
for the function at runtime. I hope this is acceptable.&lt;br&gt;
&lt;br&gt;
See also, a relevant message in gpsbabel-misc:&lt;br&gt;
&lt;a href=&quot;http://sourceforge.net/mailarchive/message.php?msg_name=82a839a50911130917t41e5fd9es70e75196e351791%40mail.gmail.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/mailarchive/message.php?msg_name=82a839a50911130917t41e5fd9es70e75196e351791%40mail.gmail.com&lt;/a&gt;&lt;br&gt;

&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Index: gui/serial_win.cpp&lt;br&gt;
===================================================================&lt;br&gt;
RCS file: /cvsroot/gpsbabel/gpsbabel/gui/serial_win.cpp,v&lt;br&gt;
retrieving revision 1.1&lt;br&gt;
diff -U5 -r1.1 serial_win.cpp&lt;br&gt;
--- gui/serial_win.cpp  2 Sep 2009 19:05:27 -0000       1.1&lt;br&gt;
+++ gui/serial_win.cpp  14 Nov 2009 13:08:04 -0000&lt;br&gt;
@@ -19,10 +19,12 @@&lt;br&gt;
 //  USA&lt;br&gt;
 //&lt;br&gt;
&lt;br&gt;
 #include &amp;quot;mainwindow.h&amp;quot;&lt;br&gt;
&lt;br&gt;
+#if 0  // Does not require Windows 2000&lt;br&gt;
+&lt;br&gt;
 static const char *deviceNames[] = {&lt;br&gt;
   &amp;quot;com1:&amp;quot;,&lt;br&gt;
   &amp;quot;com2:&amp;quot;,&lt;br&gt;
   &amp;quot;com3:&amp;quot;,&lt;br&gt;
   &amp;quot;com4:&amp;quot;,&lt;br&gt;
@@ -33,5 +35,35 @@&lt;br&gt;
 {&lt;br&gt;
   for (int i=0; deviceNames[i]; i++) {&lt;br&gt;
     box-&amp;gt;addItem(deviceNames[i]);&lt;br&gt;
   }&lt;br&gt;
 }&lt;br&gt;
+&lt;br&gt;
+#else // This code assumes Windows 2000 or later&lt;br&gt;
+&lt;br&gt;
+#include &amp;lt;Windows.h&amp;gt; // QueryDosDevice(), Minimum supported: Windows&lt;br&gt;
2000 Professional/Server&lt;br&gt;
+#include &amp;lt;stdio.h&amp;gt;&lt;br&gt;
+&lt;br&gt;
+void MainWindow::osLoadDeviceNameCombos(QComboBox *box)&lt;br&gt;
+{&lt;br&gt;
+  char DevList[64*1024-1];  // a single byte more, and certain&lt;br&gt;
versions of windows&lt;br&gt;
+                            // always return QueryDosDevice()==0 &amp;amp;&amp;amp;&lt;br&gt;
GetLastError()==ERROR_MORE_DATA.&lt;br&gt;
+                            // see &lt;a href=&quot;http://support.microsoft.com/kb/931305&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://support.microsoft.com/kb/931305&lt;/a&gt;&lt;br&gt;
+  // Get a list of all existing MS-DOS device names. Stores one or&lt;br&gt;
more asciiz strings followed by an extra null.&lt;br&gt;
+  DWORD res = QueryDosDeviceA(NULL, DevList, sizeof(DevList));&lt;br&gt;
+  if (res == 0)&lt;br&gt;
+  {&lt;br&gt;
+    DWORD err = GetLastError(); // could check for&lt;br&gt;
ERROR_INSUFFICIENT_BUFFER, and retry with a larger buffer.&lt;br&gt;
+                                // but DevList is already at the&lt;br&gt;
maximum size it can be without running into kb 931305.&lt;br&gt;
+    fprintf(stderr,&amp;quot;QueryDosDevice() failed with %d.&lt;br&gt;
GetLastError()==%d.\n&amp;quot;, res, err);&lt;br&gt;
+    return;&lt;br&gt;
+  }&lt;br&gt;
+&lt;br&gt;
+  for (char *p=DevList; *p;) {&lt;br&gt;
+    int len = strlen(p);&lt;br&gt;
+    if (strncmp(p,&amp;quot;COM&amp;quot;,3)==0)&lt;br&gt;
+      box-&amp;gt;addItem((PCHAR)p);&lt;br&gt;
+    p += len+1; // +1 to also skip the null character of each string&lt;br&gt;
+  }&lt;br&gt;
+}&lt;br&gt;
+&lt;br&gt;
+#endif&lt;br&gt;
&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day&lt;br&gt;
trial. Simplify your report design, integration and deployment - and focus on&lt;br&gt;
what you do best, core application coding. Discover what&amp;#39;s new with&lt;br&gt;
Crystal Reports now.  &lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420818&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26420818&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PATCH%3A-detect-serial-ports-in-qt-gui-under-win32-tp26350281p26420818.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26413804</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-11-18T11:07:02Z</published>
	<updated>2009-11-18T11:07:02Z</updated>
	<author>
		<name>Jeff-193</name>
	</author>
	<content type="html">I just delved into this today when working on a problem with velocity data.&lt;br&gt;&lt;br&gt;I noticed that in the function (garmin.c)&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;pvt2wpt(GPS_PPvt_Data pvt, waypoint *wpt)&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;

&lt;div&gt;That this code is running (line 635):&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if ( pvt-&amp;gt;east &amp;gt;= 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Since the north and east values are velocity, my guess is that when the gps is losing a fix it&amp;#39;s returning a 0 for velocity, and the program is crashing with a divide-by-zero error.&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;A solution is something like&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;if( pvt-&amp;gt;east == 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = ( pvt-&amp;gt;north &amp;gt; 0 ? 0 : 180 ); // Don&amp;#39;t divide by zero please&lt;/div&gt;

&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else if ( pvt-&amp;gt;east &amp;gt; 0.0 ){&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 90 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;

&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}else{&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;		&lt;/span&gt;wpt-&amp;gt;course = 270 - DEG(atan(pvt-&amp;gt;north/pvt-&amp;gt;east));&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt;	&lt;/span&gt;}&lt;/div&gt;

&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;That&amp;#39;s a guess only, but it seems like it&amp;#39;s an error whether that&amp;#39;s causing this specific crash or not.&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;-- Jeff&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;br&gt;Robert Lipe &amp;lt;robertlipe@gp...&amp;gt; writes:&lt;br&gt;


 &lt;br&gt;
 &amp;gt; On Tue, Oct 13, 2009 at 6:14 AM, Marc &amp;lt;dkm@ka...&amp;gt; wrote:&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt;     it, I read the sensors&amp;#39; value and add theses value in the output.  The&lt;br&gt;
 &amp;gt;     problem I have is that when the GPS looses signal, gpsbabel exits. I&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt;&lt;br&gt;
 &amp;gt; It&amp;#39;s not supposed to.  In fact, that was one of the test criteria for that&lt;br&gt;
 &amp;gt; mode.   Now different GPSes have been added since my original work and they may&lt;br&gt;
 &amp;gt; have different failure states, but in the absence of debug traces, a GPS model,&lt;br&gt;
 &amp;gt; connection media, operating system in use, or so on the search area for&lt;br&gt;
 &amp;gt; guessing is large.&lt;br&gt;
 &lt;br&gt;
 Thanks for your answer. I can already provide more info, but I&amp;#39;ll&lt;br&gt;
 investigate exactly what happens by looking more deeply into the code&lt;br&gt;
 (which I already did some time ago...).&lt;br&gt;
 &lt;br&gt;
 I&amp;#39;m using a Garmin Vista Cx through the USB on an Ubuntu 9.04 :)&lt;br&gt;
 &lt;br&gt;
 But as I said, I&amp;#39;ll gather more info to narrow down my problem.&lt;br&gt;
 &lt;br&gt;
 Thanks,&lt;br&gt;
 Marc
&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26413804&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-Question-on-real-time-tracking-tp26413804p26413804.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26409636</id>
	<title>Re: delbin patch: recognize device error message</title>
	<published>2009-11-18T07:11:09Z</published>
	<updated>2009-11-18T07:11:09Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Excellent catch, Paul.  I&amp;#39;d missed that.   Thanx.  Applied.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Mon, Nov 16, 2009 at 10:44 PM, Paul Cornett &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409636&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;pc-gpsb@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;
&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;I just saw the report on the users list about somebody having trouble&lt;br&gt;
with a PN. Looking at the debug output he uploaded, I see the device&lt;br&gt;
sending an error message (id 0xa003) with a string of &amp;quot;internal error&amp;quot;.&lt;br&gt;
No idea if that is our fault (I&amp;#39;m inclined to think not), but we should&lt;br&gt;
probably just give up if we get an error like that from the device.&lt;br&gt;
Patch attached.&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26409636&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/delbin-patch%3A-recognize-device-error-message-tp26384555p26409636.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26384555</id>
	<title>delbin patch: recognize device error message</title>
	<published>2009-11-16T20:44:38Z</published>
	<updated>2009-11-16T20:44:38Z</updated>
	<author>
		<name>Paul Cornett-5</name>
	</author>
	<content type="html">I just saw the report on the users list about somebody having trouble
&lt;br&gt;with a PN. Looking at the debug output he uploaded, I see the device
&lt;br&gt;sending an error message (id 0xa003) with a string of &amp;quot;internal error&amp;quot;.
&lt;br&gt;No idea if that is our fault (I'm inclined to think not), but we should
&lt;br&gt;probably just give up if we get an error like that from the device.
&lt;br&gt;Patch attached.&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;Index: delbin.c
&lt;br&gt;===================================================================
&lt;br&gt;--- delbin.c	(revision 39)
&lt;br&gt;+++ delbin.c	(working copy)
&lt;br&gt;@@ -151,6 +151,7 @@
&lt;br&gt;&amp;nbsp;#define MSG_CAPABILITIES 0xb001
&lt;br&gt;&amp;nbsp;#define MSG_DELETE 0xb005
&lt;br&gt;&amp;nbsp;#define MSG_DELETE_SIZE 67
&lt;br&gt;+#define MSG_ERROR 0xa003
&lt;br&gt;&amp;nbsp;#define MSG_NAVIGATION 0xa010
&lt;br&gt;&amp;nbsp;#define MSG_REQUEST_ROUTES 0xb051
&lt;br&gt;&amp;nbsp;#define MSG_REQUEST_ROUTES_SIZE 65
&lt;br&gt;@@ -772,6 +773,10 @@
&lt;br&gt;&amp;nbsp;		if (id == 0) {
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;&amp;nbsp;		}
&lt;br&gt;+		if (id == MSG_ERROR) {
&lt;br&gt;+			const gbuint8* p = m-&amp;gt;data;
&lt;br&gt;+			fatal(MYNAME &amp;quot;: device error %u: \&amp;quot;%s\&amp;quot;\n&amp;quot;, *p, p + 1);
&lt;br&gt;+		}
&lt;br&gt;&amp;nbsp;		message_ack(id, m);
&lt;br&gt;&amp;nbsp;		if (id == msg_id || time(NULL) - time_start &amp;gt;= READ_TIMEOUT) {
&lt;br&gt;&amp;nbsp;			break;
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26384555&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/delbin-patch%3A-recognize-device-error-message-tp26384555p26384555.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26350281</id>
	<title>PATCH: detect serial ports in qt-gui under win32</title>
	<published>2009-11-14T05:31:26Z</published>
	<updated>2009-11-14T05:31:26Z</updated>
	<author>
		<name>Tal-14</name>
	</author>
	<content type="html">The new gui is great! I use it often in windows.
&lt;br&gt;This patch detects the available serial ports using the
&lt;br&gt;QueryDosDevice() function.
&lt;br&gt;According to an msdn page I've googled, this function is available
&lt;br&gt;from Windows 2000 and later.
&lt;br&gt;A version of windows without QueryDosDevice(), will probably not be
&lt;br&gt;able to load GpsBabelFE.exe at all, because this patch does not look
&lt;br&gt;for the function at runtime. I hope this is acceptable.
&lt;br&gt;&lt;br&gt;See also, a relevant message in gpsbabel-misc:
&lt;br&gt;&lt;a href=&quot;http://sourceforge.net/mailarchive/message.php?msg_name=82a839a50911130917t41e5fd9es70e75196e351791%40mail.gmail.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sourceforge.net/mailarchive/message.php?msg_name=82a839a50911130917t41e5fd9es70e75196e351791%40mail.gmail.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Index: gui/serial_win.cpp
&lt;br&gt;===================================================================
&lt;br&gt;RCS file: /cvsroot/gpsbabel/gpsbabel/gui/serial_win.cpp,v
&lt;br&gt;retrieving revision 1.1
&lt;br&gt;diff -U5 -r1.1 serial_win.cpp
&lt;br&gt;--- gui/serial_win.cpp	2 Sep 2009 19:05:27 -0000	1.1
&lt;br&gt;+++ gui/serial_win.cpp	14 Nov 2009 13:08:04 -0000
&lt;br&gt;@@ -19,10 +19,12 @@
&lt;br&gt;&amp;nbsp;// &amp;nbsp;USA
&lt;br&gt;&amp;nbsp;//
&lt;br&gt;&lt;br&gt;&amp;nbsp;#include &amp;quot;mainwindow.h&amp;quot;
&lt;br&gt;&lt;br&gt;+#if 0 &amp;nbsp;// Does not require Windows 2000
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static const char *deviceNames[] = {
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;com1:&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;com2:&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;com3:&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp;&amp;quot;com4:&amp;quot;,
&lt;br&gt;@@ -33,5 +35,35 @@
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp;for (int i=0; deviceNames[i]; i++) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;box-&amp;gt;addItem(deviceNames[i]);
&lt;br&gt;&amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+#else // This code assumes Windows 2000 or later
&lt;br&gt;+
&lt;br&gt;+#include &amp;lt;Windows.h&amp;gt; // QueryDosDevice(), Minimum supported: Windows
&lt;br&gt;2000 Professional/Server
&lt;br&gt;+#include &amp;lt;stdio.h&amp;gt;
&lt;br&gt;+
&lt;br&gt;+void MainWindow::osLoadDeviceNameCombos(QComboBox *box)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp;char DevList[64*1024-1]; &amp;nbsp;// a single byte more, and certain
&lt;br&gt;versions of windows
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// always return QueryDosDevice()==0 &amp;&amp;
&lt;br&gt;GetLastError()==ERROR_MORE_DATA.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// see &lt;a href=&quot;http://support.microsoft.com/kb/931305&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://support.microsoft.com/kb/931305&lt;/a&gt;&lt;br&gt;+ &amp;nbsp;// Get a list of all existing MS-DOS device names. Stores one or
&lt;br&gt;more asciiz strings followed by an extra null.
&lt;br&gt;+ &amp;nbsp;DWORD res = QueryDosDeviceA(NULL, DevList, sizeof(DevList));
&lt;br&gt;+ &amp;nbsp;if (res == 0)
&lt;br&gt;+ &amp;nbsp;{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;DWORD err = GetLastError(); // could check for
&lt;br&gt;ERROR_INSUFFICIENT_BUFFER, and retry with a larger buffer.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// but DevList is already at the
&lt;br&gt;maximum size it can be without running into kb 931305.
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;fprintf(stderr,&amp;quot;QueryDosDevice() failed with %d.
&lt;br&gt;GetLastError()==%d.\n&amp;quot;, res, err);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;return;
&lt;br&gt;+ &amp;nbsp;}
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp;for (char *p=DevList; *p;) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;int len = strlen(p);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (strncmp(p,&amp;quot;COM&amp;quot;,3)==0)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp;box-&amp;gt;addItem((PCHAR)p);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;p += len+1; // +1 to also skip the null character of each string
&lt;br&gt;+ &amp;nbsp;}
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+#endif
&lt;br&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26350281&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;gpsbabel-gui-serial-win.diff.zip&lt;/strong&gt; (1K) &lt;a href=&quot;http://old.nabble.com/attachment/26350281/0/gpsbabel-gui-serial-win.diff.zip&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/PATCH%3A-detect-serial-ports-in-qt-gui-under-win32-tp26350281p26350281.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26236347</id>
	<title>Write support for binary lmx</title>
	<published>2009-11-06T10:37:56Z</published>
	<updated>2009-11-06T10:37:56Z</updated>
	<author>
		<name>Christian Bühler</name>
	</author>
	<content type="html">Hi,
&lt;br&gt;I sat down a while and implemented write support for the binary lmx
&lt;br&gt;format.
&lt;br&gt;&lt;br&gt;I also implicitly fixed some mistakes in the lmx xml format:
&lt;br&gt;- XML files support UTF-8, so no need to convert special characters
&lt;br&gt;- Shortnames are now handled just like in gpx
&lt;br&gt;- There was a missing space in the xsi:schemaLocation
&lt;br&gt;- indentation is now with tabs just like it is generated by my Nokia N82
&lt;br&gt;- added a test to testo for the binary format
&lt;br&gt;- I also added a bit to the lmx documentation
&lt;br&gt;&lt;br&gt;Feel free to fine tune the documentation as I am not a native english
&lt;br&gt;speaker.
&lt;br&gt;&lt;br&gt;Unfortunately, just after I finished this, I realized that my mobile
&lt;br&gt;does not support the binary format at all, so I won't use this in
&lt;br&gt;production. But I hope this is of use for someone else. However, it was
&lt;br&gt;a good practice :-)
&lt;br&gt;&lt;br&gt;Regards,
&lt;br&gt;Christian
&lt;br&gt;&lt;br /&gt;&lt;tt&gt;[lmx_binary.diff]&lt;/tt&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff --git a/lmx.c b/lmx.c
&lt;br&gt;index f40762b..84fd561 100644
&lt;br&gt;--- a/lmx.c
&lt;br&gt;+++ b/lmx.c
&lt;br&gt;@@ -32,11 +32,15 @@
&lt;br&gt;&amp;nbsp;static gbfile *ofd;
&lt;br&gt;&amp;nbsp;static waypoint *wpt_tmp;
&lt;br&gt;&amp;nbsp;char *urllink, *urllinkt;
&lt;br&gt;+static char *binary = NULL;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#define MYNAME &amp;quot;lmx&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static
&lt;br&gt;&amp;nbsp;arglist_t lmx_args[] = {
&lt;br&gt;+	{ &amp;quot;binary&amp;quot;, &amp;binary,
&lt;br&gt;+		&amp;quot;Compact binary representation&amp;quot;,
&lt;br&gt;+		NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
&lt;br&gt;&amp;nbsp;	ARG_TERMINATOR
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -57,61 +61,181 @@ lmx_wr_deinit(void)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gbfclose(ofd);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+static char *
&lt;br&gt;+lmx_stag(int tag)
&lt;br&gt;+{
&lt;br&gt;+	switch (tag) {
&lt;br&gt;+	case 0xC5: return &amp;quot;lmx&amp;quot;;
&lt;br&gt;+	case 0x46: return &amp;quot;landmarkCollection&amp;quot;;
&lt;br&gt;+	case 0x47: return &amp;quot;landmark&amp;quot;;
&lt;br&gt;+	case 0x48: return &amp;quot;name&amp;quot;;
&lt;br&gt;+	case 0x49: return &amp;quot;description&amp;quot;;
&lt;br&gt;+	case 0x4A: return &amp;quot;coordinates&amp;quot;;
&lt;br&gt;+	case 0x4B: return &amp;quot;latitude&amp;quot;;
&lt;br&gt;+	case 0x4C: return &amp;quot;longitude&amp;quot;;
&lt;br&gt;+	case 0x4D: return &amp;quot;altitude&amp;quot;;
&lt;br&gt;+	case 0x4E: return &amp;quot;horizontalAccuracy&amp;quot;;
&lt;br&gt;+	case 0x4F: return &amp;quot;verticalAccuracy&amp;quot;;
&lt;br&gt;+	case 0x50: return &amp;quot;timeStamp&amp;quot;;
&lt;br&gt;+	case 0x51: return &amp;quot;coverageRadius&amp;quot;;
&lt;br&gt;+	case 0x52: return &amp;quot;category&amp;quot;;
&lt;br&gt;+	case 0x53: return &amp;quot;id&amp;quot;;
&lt;br&gt;+	case 0x54: return &amp;quot;addressInfo&amp;quot;;
&lt;br&gt;+	case 0x55: return &amp;quot;country&amp;quot;;
&lt;br&gt;+	case 0x56: return &amp;quot;countryCode&amp;quot;;
&lt;br&gt;+	case 0x57: return &amp;quot;state&amp;quot;;
&lt;br&gt;+	case 0x58: return &amp;quot;county&amp;quot;;
&lt;br&gt;+	case 0x59: return &amp;quot;city&amp;quot;;
&lt;br&gt;+	case 0x5A: return &amp;quot;district&amp;quot;;
&lt;br&gt;+	case 0x5B: return &amp;quot;postalCode&amp;quot;;
&lt;br&gt;+	case 0x5C: return &amp;quot;crossing1&amp;quot;;
&lt;br&gt;+	case 0x5D: return &amp;quot;crossing2&amp;quot;;
&lt;br&gt;+	case 0x5E: return &amp;quot;street&amp;quot;;
&lt;br&gt;+	case 0x5F: return &amp;quot;buildingName&amp;quot;;
&lt;br&gt;+	case 0x60: return &amp;quot;buildingFloor&amp;quot;;
&lt;br&gt;+	case 0x61: return &amp;quot;buildingZone&amp;quot;;
&lt;br&gt;+	case 0x62: return &amp;quot;buildingRoom&amp;quot;;
&lt;br&gt;+	case 0x63: return &amp;quot;extension&amp;quot;;
&lt;br&gt;+	case 0x64: return &amp;quot;phoneNumber&amp;quot;;
&lt;br&gt;+	case 0x65: return &amp;quot;mediaLink&amp;quot;;
&lt;br&gt;+	case 0x66: return &amp;quot;mime&amp;quot;;
&lt;br&gt;+	case 0x67: return &amp;quot;url&amp;quot;;
&lt;br&gt;+	default: return 0;
&lt;br&gt;+	}
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static void
&lt;br&gt;-lmx_write_xml(int indent_level, const char *tag, const char *data)
&lt;br&gt;+lmx_indent(int count)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp;	int i;
&lt;br&gt;-	char *tmp_ent = xml_entitize(data);
&lt;br&gt;+	for (i=0; i&amp;lt;count; i++)
&lt;br&gt;+		gbfputc('\t', ofd);
&lt;br&gt;+}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	for (i = 0; i &amp;lt; indent_level; i++) {
&lt;br&gt;-		gbfputs(&amp;quot; &amp;nbsp;&amp;quot;, ofd);
&lt;br&gt;+static void
&lt;br&gt;+lmx_start_tag(int tag, int indent)
&lt;br&gt;+{
&lt;br&gt;+	if (binary)
&lt;br&gt;+		gbfputc(tag, ofd);
&lt;br&gt;+	else {
&lt;br&gt;+		lmx_indent(indent);
&lt;br&gt;+		gbfprintf(ofd, &amp;quot;&amp;lt;lm:%s&amp;gt;&amp;quot;, lmx_stag(tag));
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;+}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	gbfprintf(ofd, &amp;quot;&amp;lt;%s&amp;gt;%s&amp;lt;/%s&amp;gt;\n&amp;quot;, tag, tmp_ent, tag);
&lt;br&gt;+static void
&lt;br&gt;+lmx_end_tag(int tag, int indent)
&lt;br&gt;+{
&lt;br&gt;+	if (binary)
&lt;br&gt;+		gbfputc(0x01, ofd);
&lt;br&gt;+	else {
&lt;br&gt;+		lmx_indent(indent);
&lt;br&gt;+		gbfprintf(ofd, &amp;quot;&amp;lt;/lm:%s&amp;gt;\n&amp;quot;, lmx_stag(tag));
&lt;br&gt;+	}
&lt;br&gt;+}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	xfree(tmp_ent);
&lt;br&gt;+static void
&lt;br&gt;+lmx_write_xml(int tag, const char *data, int indent)
&lt;br&gt;+{
&lt;br&gt;+	lmx_start_tag(tag, indent);
&lt;br&gt;+	
&lt;br&gt;+	if (binary) {
&lt;br&gt;+		gbfputc(0x03, ofd); // inline string follows
&lt;br&gt;+		gbfputcstr(data, ofd);
&lt;br&gt;+	}
&lt;br&gt;+	else {
&lt;br&gt;+		char *tmp_ent = xml_entitize(data);
&lt;br&gt;+		gbfputs(tmp_ent, ofd);
&lt;br&gt;+		xfree(tmp_ent);
&lt;br&gt;+	}
&lt;br&gt;+	
&lt;br&gt;+	lmx_end_tag(tag, 0);
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static void
&lt;br&gt;&amp;nbsp;lmx_print(const waypoint *wpt)
&lt;br&gt;&amp;nbsp;{	
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;\n&amp;quot;);
&lt;br&gt;-	if (wpt-&amp;gt;shortname) {
&lt;br&gt;-		lmx_write_xml(4, &amp;quot;lm:name&amp;quot;, global_opts.synthesize_shortnames ? wpt-&amp;gt;description : wpt-&amp;gt;shortname);
&lt;br&gt;+	const char *oname;
&lt;br&gt;+	char *odesc;
&lt;br&gt;+	char tbuf[100];
&lt;br&gt;+
&lt;br&gt;+	/*
&lt;br&gt;+	 * Desparation time, try very hard to get a good shortname
&lt;br&gt;+	 */
&lt;br&gt;+	odesc = wpt-&amp;gt;notes;
&lt;br&gt;+	if (!odesc) {
&lt;br&gt;+		odesc = wpt-&amp;gt;description;
&lt;br&gt;+	}
&lt;br&gt;+	if (!odesc) {
&lt;br&gt;+		odesc = wpt-&amp;gt;shortname;
&lt;br&gt;+	}
&lt;br&gt;+
&lt;br&gt;+	oname = global_opts.synthesize_shortnames ? odesc : wpt-&amp;gt;shortname;
&lt;br&gt;+
&lt;br&gt;+	lmx_start_tag(0x47, 2); // landmark
&lt;br&gt;+	if (!binary) gbfputc('\n', ofd);
&lt;br&gt;+	if (oname) {
&lt;br&gt;+		lmx_write_xml(0x48, oname, 3); // name
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;	if (wpt-&amp;gt;description) {
&lt;br&gt;-		lmx_write_xml(4, &amp;quot;lm:description&amp;quot;, wpt-&amp;gt;description);
&lt;br&gt;+		lmx_write_xml(0x49, wpt-&amp;gt;description, 3); // description
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;\n&amp;quot;);
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;%f&amp;lt;/lm:latitude&amp;gt;\n&amp;quot;, wpt-&amp;gt;latitude);
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;%f&amp;lt;/lm:longitude&amp;gt;\n&amp;quot;,wpt-&amp;gt;longitude);
&lt;br&gt;+	lmx_start_tag(0x4A, 3); // coordinates
&lt;br&gt;+	if (!binary) gbfputc('\n', ofd);
&lt;br&gt;+
&lt;br&gt;+	sprintf(tbuf, &amp;quot;%f&amp;quot;, wpt-&amp;gt;latitude);
&lt;br&gt;+	lmx_write_xml(0x4B, tbuf, 4); // latitude
&lt;br&gt;+
&lt;br&gt;+	sprintf(tbuf, &amp;quot;%f&amp;quot;, wpt-&amp;gt;longitude);
&lt;br&gt;+	lmx_write_xml(0x4C, tbuf, 4); // longitude
&lt;br&gt;+	
&lt;br&gt;&amp;nbsp;	if (wpt-&amp;gt;altitude &amp;&amp; (wpt-&amp;gt;altitude != unknown_alt)) {
&lt;br&gt;- &amp;nbsp;		gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:altitude&amp;gt;%f&amp;lt;/lm:altitude&amp;gt;\n&amp;quot;,wpt-&amp;gt;altitude);
&lt;br&gt;+		sprintf(tbuf, &amp;quot;%f&amp;quot;, wpt-&amp;gt;altitude);
&lt;br&gt;+		lmx_write_xml(0x4D, tbuf, 4); // altitude
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;\n&amp;quot;);
&lt;br&gt;+	lmx_end_tag(0x4A, 3); // coordinates
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;	if (wpt-&amp;gt;url &amp;&amp; wpt-&amp;gt;url[0]) {
&lt;br&gt;-		gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;\n&amp;quot;);
&lt;br&gt;+		lmx_start_tag(0x65, 3); // mediaLink
&lt;br&gt;+		if (!binary) gbfputc('\n', ofd);
&lt;br&gt;&amp;nbsp;		if (wpt-&amp;gt;url_link_text)
&lt;br&gt;-			lmx_write_xml(5,&amp;quot;lm:name&amp;quot;, wpt-&amp;gt;url_link_text);
&lt;br&gt;-		lmx_write_xml(5, &amp;quot;lm:url&amp;quot;, wpt-&amp;gt;url);
&lt;br&gt;-		gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;\n&amp;quot;);
&lt;br&gt;+			lmx_write_xml(0x48, wpt-&amp;gt;url_link_text, 4); // name
&lt;br&gt;+		lmx_write_xml(0x67, wpt-&amp;gt;url, 4); // url
&lt;br&gt;+		lmx_end_tag(0x65, 3); // mediaLink
&lt;br&gt;&amp;nbsp;	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;\n&amp;quot;);
&lt;br&gt;+	lmx_end_tag(0x47, 2); // landmark
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static void
&lt;br&gt;&amp;nbsp;lmx_write(void)
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;-	gbfprintf(ofd, &amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; ?&amp;gt;\n&amp;quot;);
&lt;br&gt;-	gbfprintf(ofd, &amp;quot;&amp;lt;lm:lmx xmlns:lm=\&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0\&amp;quot; xmlns:xsi=\&amp;quot;http://www.w3.org/2001/XMLSchema-instance\&amp;quot; xsi:schemaLocation=\&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0/lmx.xsd\&amp;quot;&amp;gt;&amp;quot;);
&lt;br&gt;+	if (binary) {
&lt;br&gt;+		gbfputc(0x03, ofd); // WBXML version 1.3
&lt;br&gt;+		gbfputuint16(0x04A4, ofd); // &amp;quot;-//NOKIA//DTD LANDMARKS 1.0//EN&amp;quot;
&lt;br&gt;+		gbfputc(106, ofd); // Charset=UTF-8
&lt;br&gt;+		gbfputc(0x00, ofd); // empty string table
&lt;br&gt;+		gbfputc(0xC5, ofd); // lmx
&lt;br&gt;+		gbfputc(0x05, ofd); // xmlns=http://www.nokia.com/schemas/location/landmarks/
&lt;br&gt;+		gbfputc(0x85, ofd); // 1/0/
&lt;br&gt;+		gbfputc(0x06, ofd); // xmlns:xsi=
&lt;br&gt;+		gbfputc(0x86, ofd); // http://www.w3.org/2001/XMLSchema-instance
&lt;br&gt;+		gbfputc(0x07, ofd); // xsi:schemaLocation=http://www.nokia.com/schemas/location/landmarks/
&lt;br&gt;+		gbfputc(0x85, ofd); // 1/0/
&lt;br&gt;+		gbfputc(0x87, ofd); // whitespace
&lt;br&gt;+		gbfputc(0x88, ofd); // lmx.xsd
&lt;br&gt;+		gbfputc(0x01, ofd); // END lmx attributes
&lt;br&gt;+	} else {
&lt;br&gt;+		gbfprintf(ofd, &amp;quot;&amp;lt;?xml version=\&amp;quot;1.0\&amp;quot; encoding=\&amp;quot;UTF-8\&amp;quot;?&amp;gt;\n&amp;quot;);
&lt;br&gt;+		gbfprintf(ofd, &amp;quot;&amp;lt;lm:lmx xmlns:lm=\&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0\&amp;quot; xmlns:xsi=\&amp;quot;http://www.w3.org/2001/XMLSchema-instance\&amp;quot; xsi:schemaLocation=\&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0/ lmx.xsd\&amp;quot;&amp;gt;\n&amp;quot;);
&lt;br&gt;+	}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp;&amp;lt;lm:landmarkCollection&amp;gt;\n&amp;quot;);
&lt;br&gt;+	lmx_start_tag(0x46, 1); // landmarkCollection
&lt;br&gt;+	if (!binary) gbfputc('\n', ofd);
&lt;br&gt;&amp;nbsp;	waypt_disp_all(lmx_print);
&lt;br&gt;-	gbfprintf(ofd, &amp;quot; &amp;nbsp;&amp;lt;/lm:landmarkCollection&amp;gt;\n&amp;quot;);
&lt;br&gt;-	gbfprintf(ofd, &amp;quot;&amp;lt;/lm:lmx&amp;gt;\n&amp;quot;);
&lt;br&gt;+	lmx_end_tag(0x46, 1); // landmarkCollection
&lt;br&gt;+	lmx_end_tag(0xC5, 0); // lmx
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;/*
&lt;br&gt;@@ -242,5 +366,5 @@ ff_vecs_t lmx_vecs = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lmx_write,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;lmx_args,
&lt;br&gt;-	CET_CHARSET_ASCII, 0	/* CET-REVIEW */
&lt;br&gt;+	CET_CHARSET_UTF8, 0	/* CET-REVIEW */
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;diff --git a/reference/binary.lmx b/reference/binary.lmx
&lt;br&gt;new file mode 100644
&lt;br&gt;index 0000000..cceb86e
&lt;br&gt;Binary files /dev/null and b/reference/binary.lmx differ
&lt;br&gt;diff --git a/reference/nokia.lmx b/reference/nokia.lmx
&lt;br&gt;index 1807707..01331e8 100644
&lt;br&gt;--- a/reference/nokia.lmx
&lt;br&gt;+++ b/reference/nokia.lmx
&lt;br&gt;@@ -1,112 +1,113 @@
&lt;br&gt;-&amp;lt;?xml version=&amp;quot;1.0&amp;quot; ?&amp;gt;
&lt;br&gt;-&amp;lt;lm:lmx xmlns:lm=&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:schemaLocation=&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0/lmx.xsd&amp;quot;&amp;gt; &amp;nbsp;&amp;lt;lm:landmarkCollection&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GCEBB&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;Mountain Bike Heaven by susy1313&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;35.972033&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-87.134700&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=3771&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC1A37&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;The Troll by a182pilot &amp;amp; Family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.090683&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.679550&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=6711&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC1C2B&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;Dive Bomber by JoGPS &amp;amp; family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;35.996267&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.620117&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=7211&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC25A9&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;FOSTER by JoGPS &amp;amp; Family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.038483&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.648617&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=9641&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC2723&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;Logan Lighthouse by JoGps &amp;amp; Family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.112183&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.741767&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=10019&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC2B71&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;Ganier Cache by Susy1313&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.064083&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.790517&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=11121&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC309F&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;Shy&amp;apos;s Hill by FireFighterEng33&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.087767&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.809733&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=12447&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC317A&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;GittyUp by JoGPS / Warner Parks&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.057500&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.892000&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=12666&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;GC317D&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:description&amp;gt;Inlighting by JoGPS / Warner Parks&amp;lt;/lm:description&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:latitude&amp;gt;36.082800&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:longitude&amp;gt;-86.867283&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=12669&amp;lt;/lm:url&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;- &amp;nbsp;&amp;lt;/lm:landmarkCollection&amp;gt;
&lt;br&gt;+&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&lt;br&gt;+&amp;lt;lm:lmx xmlns:lm=&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0&amp;quot; xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot; xsi:schemaLocation=&amp;quot;http://www.nokia.com/schemas/location/landmarks/1/0/ lmx.xsd&amp;quot;&amp;gt;
&lt;br&gt;+	&amp;lt;lm:landmarkCollection&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GCEBB&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;Mountain Bike Heaven by susy1313&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;35.972033&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-87.134700&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=3771&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC1A37&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;The Troll by a182pilot &amp;amp; Family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.090683&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.679550&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=6711&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC1C2B&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;Dive Bomber by JoGPS &amp;amp; family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;35.996267&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.620117&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=7211&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC25A9&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;FOSTER by JoGPS &amp;amp; Family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.038483&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.648617&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=9641&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC2723&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;Logan Lighthouse by JoGps &amp;amp; Family&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.112183&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.741767&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=10019&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC2B71&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;Ganier Cache by Susy1313&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.064083&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.790517&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=11121&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC309F&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;Shy&amp;apos;s Hill by FireFighterEng33&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.087767&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.809733&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=12447&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC317A&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;GittyUp by JoGPS / Warner Parks&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.057500&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.892000&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=12666&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+		&amp;lt;lm:landmark&amp;gt;
&lt;br&gt;+			&amp;lt;lm:name&amp;gt;GC317D&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+			&amp;lt;lm:description&amp;gt;Inlighting by JoGPS / Warner Parks&amp;lt;/lm:description&amp;gt;
&lt;br&gt;+			&amp;lt;lm:coordinates&amp;gt;
&lt;br&gt;+				&amp;lt;lm:latitude&amp;gt;36.082800&amp;lt;/lm:latitude&amp;gt;
&lt;br&gt;+				&amp;lt;lm:longitude&amp;gt;-86.867283&amp;lt;/lm:longitude&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:coordinates&amp;gt;
&lt;br&gt;+			&amp;lt;lm:mediaLink&amp;gt;
&lt;br&gt;+				&amp;lt;lm:name&amp;gt;Cache Details&amp;lt;/lm:name&amp;gt;
&lt;br&gt;+				&amp;lt;lm:url&amp;gt;http://www.geocaching.com/seek/cache_details.asp?ID=12669&amp;lt;/lm:url&amp;gt;
&lt;br&gt;+			&amp;lt;/lm:mediaLink&amp;gt;
&lt;br&gt;+		&amp;lt;/lm:landmark&amp;gt;
&lt;br&gt;+	&amp;lt;/lm:landmarkCollection&amp;gt;
&lt;br&gt;&amp;nbsp;&amp;lt;/lm:lmx&amp;gt;
&lt;br&gt;diff --git a/testo b/testo
&lt;br&gt;index 2134fb8..4edd485 100755
&lt;br&gt;--- a/testo
&lt;br&gt;+++ b/testo
&lt;br&gt;@@ -1298,6 +1298,8 @@ compare ${REFERENCE}/umsonstdraussen.gpx ${TMPDIR}/umsonstdraussen.gpx
&lt;br&gt;&amp;nbsp;#
&lt;br&gt;&amp;nbsp;gpsbabel -i lmx -f ${REFERENCE}/nokia.lmx -o lmx -F ${TMPDIR}/nokia.lmx
&lt;br&gt;&amp;nbsp;compare ${REFERENCE}/nokia.lmx ${TMPDIR}/nokia.lmx
&lt;br&gt;+gpsbabel -i lmx -f ${REFERENCE}/nokia.lmx -o lmx,binary -F ${TMPDIR}/binary.lmx
&lt;br&gt;+bincompare ${REFERENCE}/binary.lmx ${TMPDIR}/binary.lmx
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;#
&lt;br&gt;&amp;nbsp;# Swiss Map (.xol) tests
&lt;br&gt;diff --git a/xmldoc/formats/lmx.xml b/xmldoc/formats/lmx.xml
&lt;br&gt;index 8f512a8..f668be4 100644
&lt;br&gt;--- a/xmldoc/formats/lmx.xml
&lt;br&gt;+++ b/xmldoc/formats/lmx.xml
&lt;br&gt;@@ -1,6 +1,14 @@
&lt;br&gt;&amp;nbsp;&amp;lt;para&amp;gt; 
&lt;br&gt;-This format supports Nokia Landmark Exchange (LMX) files used by several
&lt;br&gt;-Nokia phones. &amp;nbsp; GPSBabel supports only the traditional XML format and 
&lt;br&gt;-not the compressed binary format. &amp;nbsp; 
&lt;br&gt;+This format supports
&lt;br&gt;+&amp;lt;ulink url=&amp;quot;http://sw.nokia.com/id/9001c8de-c19e-41a0-87d3-5be4297e4d4c/S60_Platform_Landmarks_Exchange_Specification_v1_0_en.pdf&amp;quot;&amp;gt;
&lt;br&gt;+Nokia Landmark Exchange (LMX) files&amp;lt;/ulink&amp;gt; used by several Nokia phones.
&lt;br&gt;+GPSBabel supports the traditional XML format for reading and writing. The
&lt;br&gt;+compressed binary format (WBXML) can be written, but most current Nokia phones
&lt;br&gt;+do not support it (confirmed with N82 and N95).
&lt;br&gt;+&amp;lt;/para&amp;gt;
&lt;br&gt;+&amp;lt;para&amp;gt;
&lt;br&gt;+With this format, landmarks can be imported into the landmark store of the
&lt;br&gt;+mobile phone. This landmark store is then used to display them on a map with
&lt;br&gt;+several applications. The most common ones are the pre-installed Ovi Maps (or
&lt;br&gt;+its predecessor Nokia Maps) and Google Maps Mobile.
&lt;br&gt;&amp;nbsp;&amp;lt;/para&amp;gt;
&lt;br&gt;-
&lt;br&gt;diff --git a/xmldoc/formats/options/lmx-binary.xml b/xmldoc/formats/options/lmx-binary.xml
&lt;br&gt;new file mode 100644
&lt;br&gt;index 0000000..dbf05fb
&lt;br&gt;--- /dev/null
&lt;br&gt;+++ b/xmldoc/formats/options/lmx-binary.xml
&lt;br&gt;@@ -0,0 +1,9 @@
&lt;br&gt;+&amp;lt;para&amp;gt;
&lt;br&gt;+This option specifies if you want to write the compressed binary format (WBXML)
&lt;br&gt;+instead of the XML format. However, most current Nokia phones do only support
&lt;br&gt;+the XML format (confirmed with N82 and N95).
&lt;br&gt;+&amp;lt;/para&amp;gt;
&lt;br&gt;+&amp;lt;para&amp;gt;
&lt;br&gt;+This option has no effect when used for input, only reading the traditional XML
&lt;br&gt;+format is supported.
&lt;br&gt;+&amp;lt;/para&amp;gt;
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt; &lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26236347&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&lt;div class=&quot;small&quot;&gt;&lt;br/&gt;&lt;img src=&quot;http://old.nabble.com/images/icon_attachment.gif&quot; &gt; &lt;strong&gt;binary.lmx&lt;/strong&gt; (1K) &lt;a href=&quot;http://old.nabble.com/attachment/26236347/0/binary.lmx&quot; target=&quot;_top&quot;&gt;Download Attachment&lt;/a&gt;&lt;/div&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Write-support-for-binary-lmx-tp26236347p26236347.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-26196530</id>
	<title>Re: mtk / m241 missing doc</title>
	<published>2009-11-04T05:42:44Z</published>
	<updated>2009-11-04T05:42:44Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">Applied.   Thanx.&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Wed, Oct 14, 2009 at 2:28 PM, P. Borgentun &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196530&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;e4borgen@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi,&lt;br&gt;
I&amp;#39;m to tiered at the moment to find the correct cvs diff parameters so&lt;br&gt;
I send the requested mtk documentation as-is.&lt;br&gt;
&lt;br&gt;
As the mtk and m241 are the same module so the docs should probably&lt;br&gt;
be copied to m241-log_enable.xml also.&lt;br&gt;
&lt;br&gt;
Regards&lt;br&gt;
Devlin&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&amp;gt; I was just tweaking the doc and noticed that&lt;br&gt;
&amp;gt; several of our newly added options are missing doc.   Even&lt;br&gt;
&amp;gt; if you don&amp;#39;t do docbook, a few sentences explaining why&lt;br&gt;
&amp;gt; an optio is useful is helpful.  It looks like we&amp;#39;re&lt;br&gt;
&amp;gt; missing:&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ./dg-100-erase_only.xml&lt;br&gt;
&amp;gt; ./gtrnctr-course.xml&lt;br&gt;
&amp;gt; ./gtrnctr-sport.xml&lt;br&gt;
&amp;gt; ./itracku-bin-backup.xml&lt;br&gt;
&amp;gt; ./itracku-bin-new.xml&lt;br&gt;
&amp;gt; ./m241-erase_only.xml&lt;br&gt;
&amp;gt; ./m241-log_enable.xml&lt;br&gt;
&amp;gt; ./mmo-ver.xml&lt;br&gt;
&amp;gt; ./mtk-erase_only.xml&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ./mtk-log_enable.xml&lt;br&gt;
&amp;gt; ./naviguide-output.xml&lt;br&gt;
&amp;gt; ./naviguide-reorder.xml&lt;br&gt;
&amp;gt; ./pathaway-dbicon.xml&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; If you&amp;#39;ve sent it to me before, please feel free to&lt;br&gt;
&amp;gt; call me a bozo before sending it again.&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; -----Inline Attachment Follows-----&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; ------------------------------------------------------------------------------&lt;br&gt;
&amp;gt; Come build with us! The BlackBerry(R) Developer Conference&lt;br&gt;
&amp;gt; in SF, CA&lt;br&gt;
&amp;gt; is the only developer event you need to attend this year.&lt;br&gt;
&amp;gt; Jumpstart your&lt;br&gt;
&amp;gt; developing skills, take BlackBerry mobile applications to&lt;br&gt;
&amp;gt; market and stay&lt;br&gt;
&amp;gt; ahead of the curve. Join us from November 9 - 12, 2009.&lt;br&gt;
&amp;gt; Register now!&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;
&amp;gt; -----Inline Attachment Follows-----&lt;br&gt;
&amp;gt;&lt;br&gt;
&amp;gt; _______________________________________________&lt;br&gt;
&amp;gt; Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196530&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&amp;gt;&lt;br&gt;
&lt;div class=&quot;hm&quot;&gt;&lt;br&gt;
__________________________________________________&lt;br&gt;
Do You Yahoo!?&lt;br&gt;
Tired of spam?  Yahoo! Mail has the best spam protection around&lt;br&gt;
&lt;a href=&quot;http://mail.yahoo.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://mail.yahoo.com&lt;/a&gt; &lt;/div&gt;&lt;br&gt;------------------------------------------------------------------------------&lt;br&gt;
Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;br&gt;
is the only developer event you need to attend this year. Jumpstart your&lt;br&gt;
developing skills, take BlackBerry mobile applications to market and stay&lt;br&gt;
ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196530&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
&lt;br&gt;trial. Simplify your report design, integration and deployment - and focus on 
&lt;br&gt;what you do best, core application coding. Discover what's new with
&lt;br&gt;Crystal Reports now. &amp;nbsp;&lt;a href=&quot;http://p.sf.net/sfu/bobj-july&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/bobj-july&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=26196530&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-mtk---m241-missing--doc-tp25898492p26196530.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25918720</id>
	<title>Patch for WSG-1000 to upload marks</title>
	<published>2009-10-15T18:36:21Z</published>
	<updated>2009-10-15T18:36:21Z</updated>
	<author>
		<name>Jamie Honan</name>
	</author>
	<content type="html">The WSG-1000 is similar to WBT-200/100/201, but it also allows waypoint
&lt;br&gt;(or 'mark') uploads.
&lt;br&gt;&lt;br&gt;This patch adds this in a simple way. Also allows you to specify
&lt;br&gt;erase=1 to pre-erase waypoints before uploading.
&lt;br&gt;&lt;br&gt;Patch generated against cvs version of 2009-10-16.
&lt;br&gt;Files
&lt;br&gt;&amp;nbsp; &amp;nbsp;vecs.c (only for description)
&lt;br&gt;&amp;nbsp; &amp;nbsp;wbt200.c - for mods.
&lt;br&gt;&lt;br&gt;protocol for marks for wsg-1000
&lt;br&gt;&lt;br&gt;Read Mark
&lt;br&gt;&lt;br&gt;PC--&amp;gt;WSG1000: &amp;nbsp; @AL,10,2,idx\r\n
&lt;br&gt;//Idx=0:127
&lt;br&gt;&lt;br&gt;WSG1000--&amp;gt;PC: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @AL,10,2,idx,markid,icon,lat,lon,alt,name\r\n
&lt;br&gt;&lt;br&gt;Write Mark
&lt;br&gt;When write a marks list that should be erasing all marks first.
&lt;br&gt;@AL,10,3\r\n //Delete all marks suggest delay 1~5 Sec.
&lt;br&gt;&lt;br&gt;Write a mark
&lt;br&gt;@AL,10,1,idx,lat,lon,alt,name\r\n
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Jamie
&lt;br&gt;&lt;br /&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;tt&gt;diff -u gpsbabel/vecs.c gpsbabel-jh/vecs.c
&lt;br&gt;--- gpsbabel/vecs.c	2009-10-12 08:20:27.000000000 +1100
&lt;br&gt;+++ gpsbabel-jh/vecs.c	2009-10-16 11:46:23.000000000 +1100
&lt;br&gt;@@ -479,7 +479,7 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;wbt_svecs,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;wbt&amp;quot;,
&lt;br&gt;- &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Wintec WBT-100/200 GPS Download&amp;quot;,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;Wintec WBT-100/200 Download, WSG-1000 Marks Upload&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NULL
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;},
&lt;br&gt;&amp;nbsp;		{
&lt;br&gt;diff -u gpsbabel/wbt-200.c gpsbabel-jh/wbt-200.c
&lt;br&gt;--- gpsbabel/wbt-200.c	2009-06-17 11:27:34.000000000 +1000
&lt;br&gt;+++ gpsbabel-jh/wbt-200.c	2009-10-16 12:29:59.000000000 +1100
&lt;br&gt;@@ -91,6 +91,7 @@
&lt;br&gt;&amp;nbsp;static FILE *fl;
&lt;br&gt;&amp;nbsp;static char *port;
&lt;br&gt;&amp;nbsp;static char *erase;
&lt;br&gt;+static int markpt_index;		/* starts from 0, maybe allow user settable */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static enum { 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;UNKNOWN, WBT200, WBT201, WSG1000 
&lt;br&gt;@@ -510,7 +511,7 @@
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(wp_name, fmt, index);
&lt;br&gt;&amp;nbsp;
&lt;br&gt;- &amp;nbsp; &amp;nbsp;wpt-&amp;gt;latitude &amp;nbsp; &amp;nbsp; &amp;nbsp; = lat;;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;wpt-&amp;gt;latitude &amp;nbsp; &amp;nbsp; &amp;nbsp; = lat;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;wpt-&amp;gt;longitude &amp;nbsp; &amp;nbsp; &amp;nbsp;= lon;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;wpt-&amp;gt;altitude &amp;nbsp; &amp;nbsp; &amp;nbsp; = alt;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;wpt-&amp;gt;creation_time &amp;nbsp;= tim;
&lt;br&gt;@@ -956,6 +957,78 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;do_simple(&amp;quot;@AL,2,1&amp;quot;, BUFSPEC(line_buf));
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+/* WSG1000 G-TRENDER has the ability to upload (and download) mark points.
&lt;br&gt;+ * These are slightly different to waypoints (or points of interest).
&lt;br&gt;+ * Future version should allow start index, since these probably determine
&lt;br&gt;+ * icon displayed.
&lt;br&gt;+ * Also, download (although, waypoints are easier to set) in future.
&lt;br&gt;+ * pre-erase using erase=1
&lt;br&gt;+ */
&lt;br&gt;+
&lt;br&gt;+static void
&lt;br&gt;+wsg1000_writemarkpt(const waypoint *wpt)
&lt;br&gt;+{
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;line_buf[100];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;cmd_buf[100];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*name;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (markpt_index &amp;lt; 0 || markpt_index &amp;gt; 127) /* index from 0 to 127 */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fatal(MYNAME &amp;quot;: Maximum of 128 route points\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (wpt-&amp;gt;shortname)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = wpt-&amp;gt;shortname;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;else if (wpt-&amp;gt;description)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = wpt-&amp;gt;description;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;else if (wpt-&amp;gt;notes)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; name = wpt-&amp;gt;notes;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;else {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;sprintf(line_buf, &amp;quot;%d&amp;quot;, markpt_index+1);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name = line_buf;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;sprintf(cmd_buf, &amp;quot;@AL,10,1,%d,%lf,%lf,%lf,%.32s&amp;quot;,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;markpt_index,
&lt;br&gt;+	wpt-&amp;gt;latitude,
&lt;br&gt;+	wpt-&amp;gt;longitude,
&lt;br&gt;+	wpt-&amp;gt;altitude,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;name);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;db(1, &amp;quot;Route write %s\n&amp;quot;, cmd_buf);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;do_simple(cmd_buf, BUFSPEC(line_buf));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;markpt_index++;
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+static void wsg1000_mark_write(void) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;line_buf[100];
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;const char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;*tmp;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;double &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ver_hw;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;double &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ver_sw;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;double &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ver_fmt;
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;/* Read various device information. We don't use much of this yet -
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * just log_addr_start and log_addr_end - but it's useful to have it
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; * here for debug and documentation purposes. 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;tmp = get_param(&amp;quot;@AL,7,1&amp;quot;, BUFSPEC(line_buf));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;db(1, &amp;quot;Route write device \&amp;quot;%s\&amp;quot;\n&amp;quot;, tmp);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ver_hw &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = get_param_float(&amp;quot;@AL,8,1&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ver_sw &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = get_param_float(&amp;quot;@AL,8,2&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;ver_fmt &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;= get_param_float(&amp;quot;@AL,8,3&amp;quot;);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;db(2, &amp;quot;versions: hw=%f, sw=%f, fmt=%f\n&amp;quot;, 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;ver_hw, ver_sw, ver_fmt);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (*erase != '0') {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;/* erase marks from device */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;do_simple(&amp;quot;@AL,10,3&amp;quot;, BUFSPEC(line_buf));
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gb_sleep(5*1000);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;markpt_index = 0; /* index from 0 to 127 */
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;waypt_disp_all(wsg1000_writemarkpt);
&lt;br&gt;+
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;do_simple(&amp;quot;@AL,2,1&amp;quot;, BUFSPEC(line_buf));
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;static void file_read(void) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;char &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;buf[512];
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;size_t &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;rc;
&lt;br&gt;@@ -1032,23 +1105,35 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp;}
&lt;br&gt;&amp;nbsp;
&lt;br&gt;+static void mark_write(void) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;switch (dev_type) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;case WSG1000: 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wsg1000_mark_write(); 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;			
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;default:
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fatal(MYNAME &amp;quot;: Device does not support route upload\n&amp;quot;);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+}
&lt;br&gt;+
&lt;br&gt;&amp;nbsp;/* wbt */
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static arglist_t wbt_sargs[] = {
&lt;br&gt;- &amp;nbsp; &amp;nbsp;{ &amp;quot;erase&amp;quot;, &amp;erase, &amp;quot;Erase device data after download&amp;quot;,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{ &amp;quot;erase&amp;quot;, &amp;erase, &amp;quot;Erase log after download, marks before upload&amp;quot;,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;quot;0&amp;quot;, ARGTYPE_BOOL, ARG_NOMINMAX },
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ARG_TERMINATOR
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;ff_vecs_t wbt_svecs = {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ff_type_serial,
&lt;br&gt;- &amp;nbsp; &amp;nbsp;{ ff_cap_read, ff_cap_read, ff_cap_none },
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;{ ff_cap_read, ff_cap_read, ff_cap_write },
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;rd_init,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;rd_init,
&lt;br&gt;- &amp;nbsp; &amp;nbsp;NULL,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;rd_deinit,
&lt;br&gt;- &amp;nbsp; &amp;nbsp;NULL,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;rd_deinit,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;data_read,
&lt;br&gt;- &amp;nbsp; &amp;nbsp;NULL,
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;mark_write,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;NULL, 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;wbt_sargs,
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;CET_CHARSET_UTF8, 1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /* master process: don't convert anything | CET-REVIEW */
&lt;br&gt;&lt;/tt&gt;&lt;hr align=&quot;left&quot; width=&quot;300&quot; /&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25918720&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Patch-for-WSG-1000-to-upload-marks-tp25918720p25918720.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25899052</id>
	<title>Re: OSM elevation patch</title>
	<published>2009-10-14T14:05:47Z</published>
	<updated>2009-10-14T14:05:47Z</updated>
	<author>
		<name>Egil Hjelmeland</name>
	</author>
	<content type="html">Optional: Because the current practice in Openstreetmap is to not 
&lt;br&gt;include elevation in the mapdata. Actually, in the OSM data model, 
&lt;br&gt;elevation is not a first class citizen. It is only just an other 
&lt;br&gt;attribute tag along with tags like &amp;quot;highway=motorway&amp;quot;. I my self think 
&lt;br&gt;that GPS elevation data is better than no elevation data. So from now on 
&lt;br&gt;I will map with elevation data. But I did not want to force inclusion of 
&lt;br&gt;ele-tag for other users of -o osm. But perhaps a reversed no_ele 
&lt;br&gt;suboption is even better.
&lt;br&gt;&lt;br&gt;xasprintf/free is fine if that is preferred.
&lt;br&gt;&lt;br&gt;Will you do the merge of this into CVS, according to preferred coding 
&lt;br&gt;practice? I just made this trival fix a late evening to meet my need. I 
&lt;br&gt;don't think I will do more work on gpsbabel. So I am not particulary 
&lt;br&gt;interested in opening a CVS account my self.
&lt;br&gt;&lt;br&gt;BTW: Here is the first road I put into OSM with the ele-tag, using 
&lt;br&gt;gpsbabel and JOSM, to verify the concept:
&lt;br&gt;&lt;a href=&quot;http://www.openstreetmap.org/browse/way/42465546&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.openstreetmap.org/browse/way/42465546&lt;/a&gt;&lt;br&gt;&lt;br&gt;Egil
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;Robert Lipe wrote:
&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; On Tue, Oct 13, 2009 at 4:41 PM, Egil Hjelmeland 
&lt;br&gt;&amp;gt; &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25899052&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;privat@...&lt;/a&gt; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25899052&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;privat@...&lt;/a&gt;&amp;gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Hi.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I patched my gpsbabel 1.3.6 to handle altitude for OSM files:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; For writing OSM file: If you specify &amp;quot;-o osm,ele&amp;quot;, altitudes are
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; written
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; to OSM as &amp;nbsp;&amp;quot; &amp;lt;tag k='ele' v='%.1f'/&amp;gt;&amp;quot;.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Is there really any reason for this to be optional? &amp;nbsp;If we know the 
&lt;br&gt;&amp;gt; elevation, why not just always include it?
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; Oh, and xasprintf/free are preferred over staticly buffers. &amp;nbsp; Yes, in 
&lt;br&gt;&amp;gt; this specific case it's a bit dorky since you're not going to get 100 
&lt;br&gt;&amp;gt; digits of fp.... &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; RJL
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; When reading OSM, &amp;quot;&amp;lt;tag k='ele' v='%f'/&amp;gt;&amp;quot; is read as altitude,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; unconditonally.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; I think it will be useful to merge into the gpsbabel sourcetree.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Best regards
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Egil Hjelmeland.
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; --- osm.c.orig &amp;nbsp; &amp;nbsp;2009-10-06 22:32:02.265000000 +0200
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; +++ osm.c &amp;nbsp; &amp;nbsp;2009-10-13 00:48:38.804800000 +0200
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; @@ -25,12 +25,14 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;#include &amp;quot;xmlgeneric.h&amp;quot;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;static char *opt_tag, *opt_tagnd, *created_by;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; +static char *opt_ele = NULL;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;static arglist_t osm_args[] =
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;{
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;quot;tag&amp;quot;, &amp;opt_tag, &amp;nbsp; &amp;nbsp; &amp;quot;Write additional way tag key/value pairs&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; NULL, ARGTYPE_STRING, ARG_NOMINMAX },
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;quot;tagnd&amp;quot;, &amp;opt_tagnd, &amp;nbsp; &amp;nbsp;&amp;quot;Write additional node tag key/value
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; pairs&amp;quot;, NULL, ARGTYPE_STRING, ARG_NOMINMAX },
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;quot;created_by&amp;quot;, &amp;created_by, &amp;quot;Use this value as custom created_by
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; value&amp;quot;,&amp;quot;GPSBabel&amp;quot;, ARGTYPE_STRING, ARG_NOMINMAX },
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; { &amp;quot;ele&amp;quot;, &amp;opt_ele, &amp;nbsp;&amp;quot;Include elevation tag for OSM nodes&amp;quot;, &amp;quot;0&amp;quot;,
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ARGTYPE_BOOL, ARG_NOMINMAX },
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ARG_TERMINATOR
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp;};
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; @@ -551,6 +553,10 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (! wpt-&amp;gt;shortname)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; wpt-&amp;gt;shortname = xstrdup(str);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;if (strcmp(key, &amp;quot;ele&amp;quot;) == 0) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( wpt-&amp;gt;altitude == unknown_alt)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wpt-&amp;gt;altitude = atof(str);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else if (strcmp(key, &amp;quot;name:en&amp;quot;) == 0) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (wpt-&amp;gt;shortname)
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; xfree(wpt-&amp;gt;shortname);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; @@ -835,6 +841,12 @@
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((*opt_ele != '0') &amp;&amp;(wpt-&amp;gt;altitude != unknown_alt) ) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char ele[100];
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sprintf(ele, &amp;quot;%.1f&amp;quot;, wpt-&amp;gt;altitude);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; osm_write_tag(&amp;quot;ele&amp;quot;, ele);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; + &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; +
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (strlen(created_by) !=0) {
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gbfprintf(fout, &amp;quot; &amp;nbsp; &amp;nbsp;&amp;lt;tag k='created_by'
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; v='%s&amp;quot;,created_by);
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (gpsbabel_time != 0)
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; is the only developer event you need to attend this year.
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Jumpstart your
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; developing skills, take BlackBerry mobile applications to market
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; and stay
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; _______________________________________________
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25899052&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &amp;lt;mailto:&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25899052&amp;i=3&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25899052&amp;i=4&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OSM-elevation-patch-tp25881886p25899052.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25898492</id>
	<title>Re: mtk / m241 missing  doc</title>
	<published>2009-10-14T13:28:33Z</published>
	<updated>2009-10-14T13:28:33Z</updated>
	<author>
		<name>P. Borgentun</name>
	</author>
	<content type="html">Hi, 
&lt;br&gt;I'm to tiered at the moment to find the correct cvs diff parameters so
&lt;br&gt;I send the requested mtk documentation as-is. 
&lt;br&gt;&lt;br&gt;As the mtk and m241 are the same module so the docs should probably 
&lt;br&gt;be copied to m241-log_enable.xml also.
&lt;br&gt;&lt;br&gt;Regards
&lt;br&gt;Devlin
&lt;br&gt;&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; I was just tweaking the doc and noticed that
&lt;br&gt;&amp;gt; several of our newly added options are missing doc.   Even
&lt;br&gt;&amp;gt; if you don't do docbook, a few sentences explaining why
&lt;br&gt;&amp;gt; an optio is useful is helpful.  It looks like we're
&lt;br&gt;&amp;gt; missing:
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ./dg-100-erase_only.xml
&lt;br&gt;&amp;gt; ./gtrnctr-course.xml
&lt;br&gt;&amp;gt; ./gtrnctr-sport.xml
&lt;br&gt;&amp;gt; ./itracku-bin-backup.xml
&lt;br&gt;&amp;gt; ./itracku-bin-new.xml
&lt;br&gt;&amp;gt; ./m241-erase_only.xml
&lt;br&gt;&amp;gt; ./m241-log_enable.xml
&lt;br&gt;&amp;gt; ./mmo-ver.xml
&lt;br&gt;&amp;gt; ./mtk-erase_only.xml
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ./mtk-log_enable.xml
&lt;br&gt;&amp;gt; ./naviguide-output.xml
&lt;br&gt;&amp;gt; ./naviguide-reorder.xml
&lt;br&gt;&amp;gt; ./pathaway-dbicon.xml
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; If you've sent it to me before, please feel free to
&lt;br&gt;&amp;gt; call me a bozo before sending it again.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -----Inline Attachment Follows-----
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; ------------------------------------------------------------------------------
&lt;br&gt;&amp;gt; Come build with us! The BlackBerry(R) Developer Conference
&lt;br&gt;&amp;gt; in SF, CA
&lt;br&gt;&amp;gt; is the only developer event you need to attend this year.
&lt;br&gt;&amp;gt; Jumpstart your
&lt;br&gt;&amp;gt; developing skills, take BlackBerry mobile applications to
&lt;br&gt;&amp;gt; market and stay 
&lt;br&gt;&amp;gt; ahead of the curve. Join us from November 9 - 12, 2009.
&lt;br&gt;&amp;gt; Register now!
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;&amp;gt; -----Inline Attachment Follows-----
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; _______________________________________________
&lt;br&gt;&amp;gt; Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&amp;gt; &lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25898492&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&amp;gt; &lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;&amp;gt;
&lt;/div&gt;&lt;/div&gt;__________________________________________________
&lt;br&gt;Do You Yahoo!?
&lt;br&gt;Tired of spam? &amp;nbsp;Yahoo! Mail has the best spam protection around 
&lt;br&gt;&lt;a href=&quot;http://mail.yahoo.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://mail.yahoo.com&lt;/a&gt;&lt;br /&gt;&amp;lt;para&amp;gt;This option will enable the logger after download.&amp;lt;/para&amp;gt;
&lt;br&gt;&amp;lt;para&amp;gt;By default the logger is re-enabled when download is finished if previously were enabled.
&lt;br&gt;But if the download is aborted or failed the log functionality won't be enabled again.&amp;lt;/para&amp;gt;
&lt;br&gt;&lt;br /&gt;&amp;lt;para&amp;gt;This option will only erase the logger data. No data is downloaded.&amp;lt;/para&amp;gt;
&lt;br&gt;&amp;lt;para&amp;gt;This option is typically used as a second step after the data has been downloaded and verified.&amp;lt;/para&amp;gt;
&lt;br&gt;&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25898492&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Re%3A-mtk---m241-missing--doc-tp25898492p25898492.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25881951</id>
	<title>Re: OSM elevation patch</title>
	<published>2009-10-13T15:12:45Z</published>
	<updated>2009-10-13T15:12:45Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 13, 2009 at 4:41 PM, Egil Hjelmeland &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25881951&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;privat@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi.&lt;br&gt;
&lt;br&gt;
I patched my gpsbabel 1.3.6 to handle altitude for OSM files:&lt;br&gt;
&lt;br&gt;
For writing OSM file: If you specify &amp;quot;-o osm,ele&amp;quot;, altitudes are written&lt;br&gt;
to OSM as  &amp;quot; &amp;lt;tag k=&amp;#39;ele&amp;#39; v=&amp;#39;%.1f&amp;#39;/&amp;gt;&amp;quot;.&lt;br&gt;
&lt;br&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Is there really any reason for this to be optional?  If we know the elevation, why not just always include it?&lt;br&gt;&lt;br&gt;Oh, and xasprintf/free are preferred over staticly buffers.   Yes, in this specific case it&amp;#39;s a bit dorky since you&amp;#39;re not going to get 100 digits of fp....   &lt;br&gt;
&lt;br&gt;RJL&lt;br&gt;&lt;br&gt;&lt;br&gt; &lt;/div&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
When reading OSM, &amp;quot;&amp;lt;tag k=&amp;#39;ele&amp;#39; v=&amp;#39;%f&amp;#39;/&amp;gt;&amp;quot; is read as altitude,&lt;br&gt;
unconditonally.&lt;br&gt;
&lt;br&gt;
I think it will be useful to merge into the gpsbabel sourcetree.&lt;br&gt;
&lt;br&gt;
Best regards&lt;br&gt;
Egil Hjelmeland.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
--- osm.c.orig    2009-10-06 22:32:02.265000000 +0200&lt;br&gt;
+++ osm.c    2009-10-13 00:48:38.804800000 +0200&lt;br&gt;
@@ -25,12 +25,14 @@&lt;br&gt;
 #include &amp;quot;xmlgeneric.h&amp;quot;&lt;br&gt;
&lt;br&gt;
 static char *opt_tag, *opt_tagnd, *created_by;&lt;br&gt;
+static char *opt_ele = NULL;&lt;br&gt;
&lt;br&gt;
 static arglist_t osm_args[] =&lt;br&gt;
 {&lt;br&gt;
     { &amp;quot;tag&amp;quot;, &amp;amp;opt_tag,     &amp;quot;Write additional way tag key/value pairs&amp;quot;,&lt;br&gt;
NULL, ARGTYPE_STRING, ARG_NOMINMAX },&lt;br&gt;
     { &amp;quot;tagnd&amp;quot;, &amp;amp;opt_tagnd,    &amp;quot;Write additional node tag key/value&lt;br&gt;
pairs&amp;quot;, NULL, ARGTYPE_STRING, ARG_NOMINMAX },&lt;br&gt;
     { &amp;quot;created_by&amp;quot;, &amp;amp;created_by, &amp;quot;Use this value as custom created_by&lt;br&gt;
value&amp;quot;,&amp;quot;GPSBabel&amp;quot;, ARGTYPE_STRING, ARG_NOMINMAX },&lt;br&gt;
+     { &amp;quot;ele&amp;quot;, &amp;amp;opt_ele,  &amp;quot;Include elevation tag for OSM nodes&amp;quot;, &amp;quot;0&amp;quot;,&lt;br&gt;
ARGTYPE_BOOL, ARG_NOMINMAX },&lt;br&gt;
     ARG_TERMINATOR&lt;br&gt;
 };&lt;br&gt;
&lt;br&gt;
@@ -551,6 +553,10 @@&lt;br&gt;
         if (! wpt-&amp;gt;shortname)&lt;br&gt;
             wpt-&amp;gt;shortname = xstrdup(str);&lt;br&gt;
     }&lt;br&gt;
+    if (strcmp(key, &amp;quot;ele&amp;quot;) == 0) {&lt;br&gt;
+        if ( wpt-&amp;gt;altitude == unknown_alt)&lt;br&gt;
+            wpt-&amp;gt;altitude = atof(str);&lt;br&gt;
+    }&lt;br&gt;
     else if (strcmp(key, &amp;quot;name:en&amp;quot;) == 0) {&lt;br&gt;
         if (wpt-&amp;gt;shortname)&lt;br&gt;
             xfree(wpt-&amp;gt;shortname);&lt;br&gt;
@@ -835,6 +841,12 @@&lt;br&gt;
                 break;&lt;br&gt;
         }&lt;br&gt;
&lt;br&gt;
+       if ((*opt_ele != &amp;#39;0&amp;#39;) &amp;amp;&amp;amp;(wpt-&amp;gt;altitude != unknown_alt) ) {&lt;br&gt;
+         char ele[100];&lt;br&gt;
+           sprintf(ele, &amp;quot;%.1f&amp;quot;, wpt-&amp;gt;altitude);&lt;br&gt;
+           osm_write_tag(&amp;quot;ele&amp;quot;, ele);&lt;br&gt;
+       }&lt;br&gt;
+&lt;br&gt;
         if (strlen(created_by) !=0) {&lt;br&gt;
             gbfprintf(fout, &amp;quot;    &amp;lt;tag k=&amp;#39;created_by&amp;#39; v=&amp;#39;%s&amp;quot;,created_by);&lt;br&gt;
             if (gpsbabel_time != 0)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
------------------------------------------------------------------------------&lt;br&gt;
Come build with us! The BlackBerry(R) Developer Conference in SF, CA&lt;br&gt;
is the only developer event you need to attend this year. Jumpstart your&lt;br&gt;
developing skills, take BlackBerry mobile applications to market and stay&lt;br&gt;
ahead of the curve. Join us from November 9 - 12, 2009. Register now!&lt;br&gt;
&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;
_______________________________________________&lt;br&gt;
Gpsbabel-code mailing list  &lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25881951&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;
&lt;/blockquote&gt;&lt;/div&gt;&lt;br&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25881951&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OSM-elevation-patch-tp25881886p25881951.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25881886</id>
	<title>OSM elevation patch</title>
	<published>2009-10-13T14:41:53Z</published>
	<updated>2009-10-13T14:41:53Z</updated>
	<author>
		<name>Egil Hjelmeland</name>
	</author>
	<content type="html">Hi.
&lt;br&gt;&lt;br&gt;I patched my gpsbabel 1.3.6 to handle altitude for OSM files:
&lt;br&gt;&lt;br&gt;For writing OSM file: If you specify &amp;quot;-o osm,ele&amp;quot;, altitudes are written 
&lt;br&gt;to OSM as &amp;nbsp;&amp;quot; &amp;lt;tag k='ele' v='%.1f'/&amp;gt;&amp;quot;.
&lt;br&gt;&lt;br&gt;When reading OSM, &amp;quot;&amp;lt;tag k='ele' v='%f'/&amp;gt;&amp;quot; is read as altitude, 
&lt;br&gt;unconditonally.
&lt;br&gt;&lt;br&gt;I think it will be useful to merge into the gpsbabel sourcetree.
&lt;br&gt;&lt;br&gt;Best regards
&lt;br&gt;Egil Hjelmeland.
&lt;br&gt;&lt;br&gt;&lt;br&gt;--- osm.c.orig &amp;nbsp; &amp;nbsp;2009-10-06 22:32:02.265000000 +0200
&lt;br&gt;+++ osm.c &amp;nbsp; &amp;nbsp;2009-10-13 00:48:38.804800000 +0200
&lt;br&gt;@@ -25,12 +25,14 @@
&lt;br&gt;&amp;nbsp;#include &amp;quot;xmlgeneric.h&amp;quot;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static char *opt_tag, *opt_tagnd, *created_by;
&lt;br&gt;+static char *opt_ele = NULL;
&lt;br&gt;&amp;nbsp;
&lt;br&gt;&amp;nbsp;static arglist_t osm_args[] =
&lt;br&gt;&amp;nbsp;{
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;quot;tag&amp;quot;, &amp;opt_tag, &amp;nbsp; &amp;nbsp; &amp;quot;Write additional way tag key/value pairs&amp;quot;, 
&lt;br&gt;NULL, ARGTYPE_STRING, ARG_NOMINMAX },
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;quot;tagnd&amp;quot;, &amp;opt_tagnd, &amp;nbsp; &amp;nbsp;&amp;quot;Write additional node tag key/value 
&lt;br&gt;pairs&amp;quot;, NULL, ARGTYPE_STRING, ARG_NOMINMAX },
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{ &amp;quot;created_by&amp;quot;, &amp;created_by, &amp;quot;Use this value as custom created_by 
&lt;br&gt;value&amp;quot;,&amp;quot;GPSBabel&amp;quot;, ARGTYPE_STRING, ARG_NOMINMAX },
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; { &amp;quot;ele&amp;quot;, &amp;opt_ele, &amp;nbsp;&amp;quot;Include elevation tag for OSM nodes&amp;quot;, &amp;quot;0&amp;quot;, 
&lt;br&gt;ARGTYPE_BOOL, ARG_NOMINMAX },
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;ARG_TERMINATOR
&lt;br&gt;&amp;nbsp;};
&lt;br&gt;&amp;nbsp;
&lt;br&gt;@@ -551,6 +553,10 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (! wpt-&amp;gt;shortname)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wpt-&amp;gt;shortname = xstrdup(str);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;if (strcmp(key, &amp;quot;ele&amp;quot;) == 0) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if ( wpt-&amp;gt;altitude == unknown_alt)
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;wpt-&amp;gt;altitude = atof(str);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else if (strcmp(key, &amp;quot;name:en&amp;quot;) == 0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (wpt-&amp;gt;shortname)
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;xfree(wpt-&amp;gt;shortname);
&lt;br&gt;@@ -835,6 +841,12 @@
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((*opt_ele != '0') &amp;&amp;(wpt-&amp;gt;altitude != unknown_alt) ) {
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; char ele[100];
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sprintf(ele, &amp;quot;%.1f&amp;quot;, wpt-&amp;gt;altitude);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; osm_write_tag(&amp;quot;ele&amp;quot;, ele);
&lt;br&gt;+ &amp;nbsp; &amp;nbsp; &amp;nbsp; }
&lt;br&gt;+
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (strlen(created_by) !=0) {
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;gbfprintf(fout, &amp;quot; &amp;nbsp; &amp;nbsp;&amp;lt;tag k='created_by' v='%s&amp;quot;,created_by);
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;if (gpsbabel_time != 0)
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25881886&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/OSM-elevation-patch-tp25881886p25881886.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25875389</id>
	<title>Re: Front End</title>
	<published>2009-10-13T08:41:32Z</published>
	<updated>2009-10-13T08:41:32Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;2009/10/13 Verónica Kaufman Acosta &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875389&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;vkaufman@...&lt;/a&gt;&amp;gt;&lt;/span&gt;&lt;br&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
Hi Everyone! &lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;I&amp;#39;m new with gpsbabel. I&amp;#39;m trying to code a java front end for this application but I can&amp;#39;t get around with creating new protocols and filters from a GUI. Has anyone try this before??&lt;/div&gt;
&lt;/blockquote&gt;&lt;div&gt;&lt;br&gt;Look at the existing front ends in the source tree and see how they use -^3 and related flags.&lt;br&gt;&lt;br&gt;RJL&lt;br&gt;&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875389&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Front-End-tp25873208p25875389.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25875316</id>
	<title>Re: 1.3.7-beta20091003 usb-ports</title>
	<published>2009-10-13T08:37:45Z</published>
	<updated>2009-10-13T08:37:45Z</updated>
	<author>
		<name>Robert Lipe-4</name>
	</author>
	<content type="html">&lt;br&gt;&lt;br&gt;&lt;div class=&quot;gmail_quote&quot;&gt;On Tue, Oct 13, 2009 at 4:44 AM,  &lt;span dir=&quot;ltr&quot;&gt;&amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875316&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;mail@...&lt;/a&gt;&amp;gt;&lt;/span&gt; wrote:&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;div bgcolor=&quot;#ffffff&quot;&gt;&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;&lt;div&gt;&lt;font face=&quot;Arial&quot; size=&quot;2&quot;&gt;using the beta-version beta20091003 i have only the 
opportunity to select between com 1, 2, 3 und 4&lt;/font&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;/blockquote&gt;&lt;div&gt;&lt;font size=&quot;2&quot;&gt;&lt;font face=&quot;Arial&quot;&gt;&lt;br&gt;Adding device detection for Windows is high on my list and a requirement for leaving beta.  If you can&amp;#39;t  recompiile your own by addnig&lt;/font&gt;&lt;/font&gt; and entry to deviceNames in gui/serial_win.cpp, just keep watching for new betas or a release.&lt;br&gt;
&lt;br&gt;RJL&lt;/div&gt;&lt;/div&gt;
&lt;br /&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br /&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875316&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/1.3.7-beta20091003--usb-ports-tp25869957p25875316.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25875422</id>
	<title>Re: Question on real time tracking</title>
	<published>2009-10-13T08:36:52Z</published>
	<updated>2009-10-13T08:36:52Z</updated>
	<author>
		<name>dkm-3</name>
	</author>
	<content type="html">Robert Lipe &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875422&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;robertlipe@...&lt;/a&gt;&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; On Tue, Oct 13, 2009 at 6:14 AM, Marc &amp;lt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875422&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;dkm@...&lt;/a&gt;&amp;gt; wrote:
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; it, I read the sensors' value and add theses value in the output.  The
&lt;br&gt;&amp;gt; &amp;nbsp; &amp;nbsp; problem I have is that when the GPS looses signal, gpsbabel exits. I
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt;
&lt;br&gt;&amp;gt; It's not supposed to.  In fact, that was one of the test criteria for that
&lt;br&gt;&amp;gt; mode.   Now different GPSes have been added since my original work and they may
&lt;br&gt;&amp;gt; have different failure states, but in the absence of debug traces, a GPS model,
&lt;br&gt;&amp;gt; connection media, operating system in use, or so on the search area for
&lt;br&gt;&amp;gt; guessing is large.
&lt;/div&gt;&lt;br&gt;Thanks for your answer. I can already provide more info, but I'll
&lt;br&gt;investigate exactly what happens by looking more deeply into the code
&lt;br&gt;(which I already did some time ago...).
&lt;br&gt;&lt;br&gt;I'm using a Garmin Vista Cx through the USB on an Ubuntu 9.04 :)
&lt;br&gt;&lt;br&gt;But as I said, I'll gather more info to narrow down my problem.
&lt;br&gt;&lt;br&gt;Thanks,
&lt;br&gt;Marc
&lt;br&gt;&lt;br&gt;------------------------------------------------------------------------------
&lt;br&gt;Come build with us! The BlackBerry(R) Developer Conference in SF, CA
&lt;br&gt;is the only developer event you need to attend this year. Jumpstart your
&lt;br&gt;developing skills, take BlackBerry mobile applications to market and stay 
&lt;br&gt;ahead of the curve. Join us from November 9 - 12, 2009. Register now!
&lt;br&gt;&lt;a href=&quot;http://p.sf.net/sfu/devconference&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://p.sf.net/sfu/devconference&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;Gpsbabel-code mailing list &amp;nbsp;&lt;a href=&quot;http://www.gpsbabel.org&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.gpsbabel.org&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/user/SendEmail.jtp?type=post&amp;post=25875422&amp;i=2&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Gpsbabel-code@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/gpsbabel-code&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Question-on-real-time-tracking-tp25871512p25875422.html" />
</entry>

</feed>
