Cruisers Forum
 


Reply
  This discussion is proudly sponsored by:
Please support our sponsors and let them know you heard about their products on Cruisers Forums. Advertise Here
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 23-05-2010, 21:33   #1
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
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.
seandepagnier is offline   Reply With Quote
Old 23-05-2010, 22:13   #2
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
the attachment is text, remove doc extension if you need to
Attached Files
File Type: doc opencpn-libgps.patch.doc (7.8 KB, 87 views)
seandepagnier is offline   Reply With Quote
Old 23-05-2010, 22:21   #3
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
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, 02:22   #4
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
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, 08:45   #5
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
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.
seandepagnier is offline   Reply With Quote
Old 24-05-2010, 09:11   #6
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
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, 09:28   #7
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
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, 12:47   #8
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
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, 17:20   #9
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
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, 16:47   #10
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
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.
seandepagnier is offline   Reply With Quote
Old 27-05-2010, 16:53   #11
Marine Service Provider
 
bdbcat's Avatar

Join Date: Mar 2008
Posts: 7,401
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, 08:00   #12
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
sourceforge supports git, why not use that?
seandepagnier is offline   Reply With Quote
Old 01-06-2010, 00:30   #13
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
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, 00:34   #14
Registered User

Join Date: Mar 2010
Location: Svanesund, Orust, Sweden
Boat: Forgus 31
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, 07:55   #15
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
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
seandepagnier is offline   Reply With Quote
Reply


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 01:43
Google Search Added Andy R Forum News & Announcements 6 28-02-2009 14:06
Looks like Wave Pwr could be added... capcook Propellers & Drive Systems 3 08-07-2008 19:29
An added thought about steel Rick Construction, Maintenance & Refit 1 04-11-2005 18:41
Another Newbie added SailorLiz Meets & Greets 2 09-05-2003 21:05

Advertise Here


All times are GMT -7. The time now is 07:06.


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

ShowCase vBulletin Plugins by Drive Thru Online, Inc.