Re: [Gpsbabel-misc] Installing gpsbabel on Intel Edison
GPSBabel converts and transfers data like waypoints, tracks & routes.
Brought to you by:
robertl
|
From: Allen E. <all...@ol...> - 2017-07-18 02:44:23
|
I think I am set but thanks.
Allen
On Mon, Jul 17, 2017 at 7:41 PM, Jason Slagle <rai...@ta...> wrote:
> Someone should just send me an Edison and I’ll create you a static binary
> ☺
>
>
>
> Jason
>
>
>
> On 7/17/17, 8:36 PM, "Allen Edwards" <all...@ol...>
> wrote:
>
>
>
> Here is my code. The input is a file that is created by a bash script
> from a log file. It just has a series of nmea gps RMC sentences. It
> produces gpx files that work with OpenCPN, which was my goal. Maybe it has
> issues and I have not tried it in actual use but it wasn't too bad to
> create. It will wait for a speed over 1.3 knots then create a record every
> second until the end. That cuts out the sitting at the dock part but not
> the mid race wind died and the current is taking you out the gate part. If
> anybody sees issues with it please feel free to let me know. I know this
> is out of scope for gpsbabel but someone said if I wanted to create
> something and share that was fine so here it is at least so far.
>
>
>
> Allen
>
>
>
> // heel text code
>
> #include <stdio.h>
>
> #include <stdlib.h>
>
> #include <string.h>
>
> #include <math.h>
>
>
>
>
>
> double convertLocation(double number,char quad){
>
> double result = 0;
>
> int degrees = (int)(number / 100);
>
> double minutes = (number - degrees * 100) / 60;
>
> result = degrees + minutes;
>
> if (quad == 'S' || quad == 'W') result = -result;
>
> return result;
>
> }
>
>
>
> double ktomps(double knots){
>
> return knots * 0.514444; // meters per second
>
> }
>
>
>
> void convertDateTime(float time, int when, char bufferOut[]){
>
> //2017-07-12T01:36:03Z
>
> // 120717 013603
>
> int myTime = (int)(time + .5);
>
> char t[7];
>
> char d[7];
>
> sprintf(t, "%06d", myTime);
>
> sprintf(d, "%06d", when);
>
> //printf(" >%s< \n", t);
>
> sprintf(bufferOut,"20%c%c-%c%C-%c%cT%c%C:%c%C:%c%CZ",
> d[4],d[5],d[2],d[3],d[0],d[1],t[0],t[1],t[2],t[3],t[4],t[5]);
>
> }
>
>
>
>
>
> int gpx(){
>
> char line [ 128 ]; /* or other suitable maximum line size */
>
> // $GPRMC,013603.000,A,3740.1189,N,12219.7050,W,5.89,136.08,
> 120717,,,D*7E
>
> float time = 0;
>
> char valid;
>
> int trigger = 0;
>
> float latitude = 0;
>
> float longitude = 0;
>
> char ns = 'x';
>
> char ew = 'x';
>
> float speed = 0;
>
> float heading = 0;
>
> int when = 0;
>
> FILE* fp_gpx = fopen("gps.gpx","w");
>
>
>
>
>
> fprintf(fp_gpx,"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<gpx
> version=\"1.0\" >\n<trk>\n<trkseg>\n");
>
>
>
>
>
> printf("ST Create GPX File\n");
>
> FILE* fp_nmea = fopen("gps.nmea","r");
>
> char buffer[50];
>
> if ( fp_nmea != NULL ){
>
> while ( fgets ( line, sizeof line,
> fp_nmea ) != NULL ) /* read a line */{
>
> //fputs ( line, stdout );
>
>
> sscanf(line,"$GPRMC,%f,%c,%f,%c,%f,%c,%f,%f,%d",&time,&
> valid,&latitude,&ns,&longitude,&ew,&speed,&heading,&when);
>
> if(speed > 1.3) trigger
> = 1;
>
> if (valid == 'A' &&
> trigger == 1){
>
>
> convertDateTime(time,when,buffer);
>
>
> fprintf(fp_gpx,"<trkpt lat=\"%f\" lon=\"%f\">\n",
> convertLocation(latitude,ns),convertLocation(longitude,ew));
>
>
> fprintf(fp_gpx,"<time>%s</time>\n",buffer);
>
>
> fprintf(fp_gpx," <course>%.1f</course>\n",heading);
>
>
> fprintf(fp_gpx," <speed>%.3f</speed>\n",ktomps(speed));
>
>
> fprintf(fp_gpx,"</trkpt>\n");
>
> }
>
> }
>
> }
>
> fclose (fp_nmea);
>
> fprintf(fp_gpx,"</trkseg>\n</
> trk>\n</gpx>");
>
> fclose (fp_gpx);
>
>
>
> return 0;
>
> }
>
>
>
> int main(int argc, char **argv){
>
> gpx();
>
> return 0;
>
> }
>
>
>
>
>
> On Mon, Jul 17, 2017 at 6:01 PM, Craig Bergh <cb...@iw...> wrote:
>
> Hello Allen
>
> The locosys GPS has menu option for "minimum speed". This means the GPS
> will not record data below this set speed. Most windsurfers, liters and
> sailboats set a minimum speed of either 5 knots or 5 mph.
>
> I hope this helps.
>
> Thank you
>
> Craig Bergh
>
> Sent from my iPhone
>
>
> On Jul 17, 2017, at 6:00 PM, Allen Edwards <all...@ol...>
> wrote:
>
> Simple, unless you want an offline installer for a 32 bit Linux computer
> like the Edison... I have no browser so seems that online installer, which
> does list a 32 bit version, is out of the question. But only a 64 bit
> version is listed for offline. Or maybe I just don't understand but
> doesn't matter.
>
>
>
> I finished my converter and it is working nicely. Now I am adding
> features like not starting the gpx file until the speed is above 1.3 knots
> so I don't just collect data while in the slip before the race. Not sure
> if gpsbabel can do that or not but it is sometimes nice to build an
> application specific version in the long run.
>
>
>
> Allen
>
>
>
> On Mon, Jul 17, 2017 at 3:40 PM, Robert Lipe <rob...@gp...>
> wrote:
>
>
>
>
>
> On Mon, Jul 17, 2017 at 4:58 PM, SRE <ste...@cl...> wrote:
>
> At 11:06 AM 7/17/17, Robert Lipe wrote:
> >see you need to install Qt, and you're ready to go
>
> Nope. Qt won't build on my Win10 machine, nor would it build
> on my Win7 box before it. Even when it did sort of work after
>
>
> Choose the Open Source option at
> https://info.qt.io/download-qt-for-application-development
>
> Install the version for Windows
> <http://doc.qt.io/qt-5/windows-requirements.html>.
>
>
> That's the same downfall that Allen had; building WITH Qt is different
> than building Qt.
>
> I'll try to make it clearer on that page that you should almost always
> be running the prebuilt versions of Qt and not trying to build Qt itself.
>
>
>
>
> Building Qt and installing Qt are about as different as baking a cake and
> eating a cake.
>
> Building Qt is, indeed, a beast. The same is true as, say, GCC.
> Installing GCC is like a 20 second operation. BUILDING GCC is a half day
> job to find all the dependencies and then 10 hours of building.
>
>
>
>
> I've asked several times if anyone has a working Windoze build
> environment for GPSBabel, and only heard crickets. If my info
>
>
>
> We just don't have a lot of developers using Windows. We never have, and
> I gather that's common in open source projects; the percentage of
> developers is disproportionately low. Without doing a search, you and
> Gerhard are the two that come to mind. Perhaps there have been more that
> just haven't had the problems you've had. I use Windows only begrudgingly.
> If not for building GPSBabel, I'd have been mostly Microsoft-free since the
> late 80's so I can't offer huge amounts of help with the build setup.
>
>
> As a sanity check, I just ran
>
> https://github.com/gpsbabel/gpsbabel.git
>
> changed directory into gpsbabel and successfully built it on OS/X. The
> GPSBabel.pro file seems up to date. (It does fall out of date from time to
> time as I alternate development between configure && make (primary) and
> QtCreator (secondary) depending on which computer I'm using and from where.
>
> Hope that clears things up.
> RJL
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gpsbabel-misc mailing list http://www.gpsbabel.org
> Gps...@li...
> To unsubscribe, change list options, or see archives, visit:
> https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>
> _______________________________________________
> Gpsbabel-misc mailing list http://www.gpsbabel.org
> Gps...@li...
> To unsubscribe, change list options, or see archives, visit:
> https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
>
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most engaging
> tech sites, Slashdot.org! http://sdm.link/slashdot______
> _________________________________________ Gpsbabel-misc mailing list
> http://www.gpsbabel.org Gps...@li... To
> unsubscribe, change list options, or see archives, visit:
> https://lists.sourceforge.net/lists/listinfo/gpsbabel-misc
>
|