Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 23-05-2010, 22:33   #1
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
I Added libgps Support to OpenCPN

Since GPSD decided to completely change their protocol, the new version of gpsd does not work with opencpn anymore.

Also since many gps output data in binary, we need strong gpsd support, and this is it.

Rather than deal with the new protocol directly with a socket connection I added a new driver which uses libgps and should work with old and new gpsd as well. It uses about 1/3rd as much code as the GPSD code to do the same thing. I can only confirm it works on linux.

Please test this patch, you need libgps-dev package on most linux distros.


Is there a mailing list or better way to submit patches? I would like to get this applies in opencpn if possible.
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 23-05-2010, 23:13   #2
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
the attachment is text, remove doc extension if you need to
Attached Files
File Type: doc opencpn-libgps.patch.doc (7.8 KB, 55 views)
__________________

__________________
boat_alexandra is offline   Reply With Quote
Old 23-05-2010, 23:21   #3
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
Posts: 96
Send a message via Skype™ to balp
Quote:
Originally Posted by geckosenator View Post
Is there a mailing list or better way to submit patches? I would like to get this applies in opencpn if possible.
I can't even see the patch, there is a sf page as well, SourceForge.net: OpenCPN: Patches

And i love to see that patch.
__________________
balp is offline   Reply With Quote
Old 24-05-2010, 03:22   #4
Senior Cruiser
 
idpnd's Avatar

Cruisers Forum Supporter

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,551
Sounds like an excellent idea, theres a GIT repository around somewhere, you could make a branch for merging, otherwise you I'm sure the powers that be will respond soon
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 24-05-2010, 09:45   #5
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
I am putting the patch on sourceforge. Their site is too slow right now.

As for the GIT repository.. where is it? I am using cvs and it is crappy (especially on a boat when wifi is not always around)

I need to make a branch for my current celestial navigation support for opencpn.
__________________
boat_alexandra is offline   Reply With Quote
Old 24-05-2010, 10:11   #6
Senior Cruiser
 
idpnd's Avatar

Cruisers Forum Supporter

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,551
There some info on this thread. Please publish info about your branch here, I'd be interested in testing it.
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 24-05-2010, 10:28   #7
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
Posts: 96
Send a message via Skype™ to balp
Quote:
Originally Posted by geckosenator View Post
As for the GIT repository.. where is it? I am using cvs and it is crappy (especially on a boat when wifi is not always around)
I keep balp's OpenCPN at balp_build_2_1 - GitHub branch cvs autoupdated form the CSV stuff, should most of the time be updated within a hour of a CVS release.

I tried to apply your patch, but got some errors, thet figured out i was not on latest CVS for it. I'll come back when i tested it better.
__________________
balp is offline   Reply With Quote
Old 24-05-2010, 13:47   #8
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
Posts: 96
Send a message via Skype™ to balp
Kinda works.

If not defining the -DBUILD_WITH_LIBGPS föag the code don't compile. Thats the only trouble i seen so far, but testing been quick on 10.04.

Pushed into my git, balp's OpenCPN at opencpn-libgps.patch - GitHub

http://github.com/balp/OpenCPN/commi...f9a62c2fa437d9 This is the patch commit, needed to be based on laters in cvs to work thou.
__________________
balp is offline   Reply With Quote
Old 24-05-2010, 18:20   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,878
geckosenator:

Nice code and patch! I've integrated all (with some minor tweaks) into CVS HEAD.

I personally have not tested this yet. Also, there are some build difficulties with (very) early versions of the libgps. I don't know where the cutoff version is, and maybe we need some better version checking during configuration.

I see not much point in adding gpsd version conditional code to the gnu autoconf tools currently in use. We are very quickly moving to cmake, where the build system should be easier to maintain and keep synchronized across all platforms. See my new thread for info on cmake....

Anyway, thanks again for the patch. Patches like this make my job easy!

Dave
__________________
bdbcat is online now   Reply With Quote
Old 27-05-2010, 17:47   #10
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
Is there an official git repository for opencpn? The one I pulled is not up-to-date with the cvs and does not have any libgps support.

I think git is better than cvs, because I dont have reliable internet on my boat.
__________________
boat_alexandra is offline   Reply With Quote
Old 27-05-2010, 17:53   #11
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 4,878
geckosenator....

There is no "official" git repository, yet. That's my next project. I too have sourceforge problems on my boat. Heck, its slow on land

Meanwhile, I think balp maintains a repository, with periodic pulls from CVS. I don't know the location, though..... Maybe

balp's OpenCPN at balp_build_2_1 - GitHub

??

Stay tuned
Dave
__________________
bdbcat is online now   Reply With Quote
Old 28-05-2010, 09:00   #12
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
sourceforge supports git, why not use that?
__________________
boat_alexandra is offline   Reply With Quote
Old 01-06-2010, 01:30   #13
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
Posts: 96
Send a message via Skype™ to balp
Quote:
Originally Posted by geckosenator View Post
sourceforge supports git, why not use that?
The down side of how SF made git is that it's still one central place for all to hold it. I could not just easy fork and work on my stuff and send back push requests. Github is more git thinking, sf is traditional CM using git as tool.
__________________
balp is offline   Reply With Quote
Old 01-06-2010, 01:34   #14
Registered User

Join Date: Mar 2010
Location: Göteborg, Sweden
Boat: Seamaster 700
Posts: 96
Send a message via Skype™ to balp
Quote:
Originally Posted by bdbcat View Post
geckosenator....
Meanwhile, I think balp maintains a repository, with periodic pulls from CVS. I don't know the location, though..... Maybe

balp's OpenCPN at balp_build_2_1 - GitHub
the cvs branch is what in the cvs, the balp_build_2_1 contains my experimental stuff, and some others patches not yet in the main track. If that crashes it's my fault. The CVS now have cmake as well, so the cvs branch may be a better starting point.

balp's OpenCPN at cvs - GitHub

I sync using script every hour, so until something breaks it should be up to date.
/ Balp
__________________
balp is offline   Reply With Quote
Old 01-06-2010, 08:55   #15
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
great, that is much better than the other git repository I had, and I can work off it I think.

I might do some more work on libgps to improve things. I have some other tweaks, and finally I can start the celestial navigation branch :-P
__________________

__________________
boat_alexandra is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem = libgps.so.19 stuartb OpenCPN 7 29-05-2010 02:43
Google Search Added Andy R Forum News & Announcements 6 28-02-2009 15:06
Looks like Wave Pwr could be added... capcook Propellers & Drive Systems 3 08-07-2008 20:29
An added thought about steel Rick Construction, Maintenance & Refit 1 04-11-2005 19:41
Another Newbie added SailorLiz Meets & Greets 2 09-05-2003 22:05



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 22:19.


Google+
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Social Knowledge Networks
Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.

ShowCase vBulletin Plugins by Drive Thru Online, Inc.