Cruisers Forum
 


Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 02-02-2010, 13:57   #406
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
pirate Route manager dialog for testing

Hi,
Here is a patch + source files for the route manager dialog to test. Get the .zip.doc file and rename it, removing the .doc extension.

The dialog will likely become a part of a future openCPN version.

Status: All features works (at least here), though there are still glitches.
  • Zoom to works well with vector charts, not so well with raster. For example skew is not considered, and a new map is not selected if you zoom to a route outside your current map, and the zoom function does not select a better map if one is avalable. I do not know how to fix this currently, maybe it will go away when quilting is implemented?
  • Hiding routes does not hide the route points for selection. This requires changing the way selection is made, so I need to discuss that with other developers. See comment in routemanagerdialog.cpp.
  • You can press CTRL to make a route exclusively visible when clicking the visibility column, Zoomto and Activate buttons, this is not visible in the GUI.
  • There is no indication of the active route in the dialog.
  • I may have forgotten something...

Activating and zooming to routes will automatically ensure that they are visible.

Activating a route will automatically zoom to it, if follow mode is off.

Zooming to a route is not possible if follow mode is on, visualized by the button being disabled in that case.

Some features are still missing, possible actions as "copy route", and a tooltip to display a bit more information about a route when moused over. I will work on the latter next.

The ZoomtoRoute function could possibly be moved to the chartcanvas file, and added to the route context menu, do you think it would be nice to have it accessable from there?

To view the dialog after building, press F9 or rightclick your chart and select "Route Manager..." from the context menu.

Building openCPN with the dialog

The patch is mostly about Makefile.in, you may skip patching that file and run autoreconf to have it built according to your system. I wonder if it is clever to have that file in cvs?

The patch file is made from the opencpn directory, so just place it there and run 'patch < routemanagerdialog.patch' from within that directory.

For windows users, you need to add routemanagerdialog.cpp to your building system (proj file?). Please let me know if I need to care for this.

The header file (routemanagerdialog.h) goes into opencpn/include, and the source file (routemanager.cpp) goes into opencpn/src.

After patching and adding the files, rerun the configure script (autoconf users) or whatever else you do, and rebuild.

What to test

Please test if all functions of the dialog is working as you expect, and report any crashes, misfunctions and other thoughts you may have here.

If you are a developer, you are wellcome to review the code and report your thoughts and comments.

Thank you for testing!
Attached Thumbnails
Click image for larger version

Name:	routemanagerdialog1.jpeg
Views:	218
Size:	36.4 KB
ID:	12964  
Attached Files
File Type: doc routemanagerdialog.zip.doc (134.5 KB, 293 views)
sredna is offline   Reply With Quote
Old 02-02-2010, 16:21   #407
Registered User

Join Date: Dec 2009
Location: Vic Aust.
Boat: Seawind1160
Posts: 72
Mark,

Good find! No matter what you think of there is someone whos been there done that. I trust members will have a look and agree its a good feature to have.

The geolocation uses geogarage.js (52kb) to do the transparency display stuff . The blurb on developers site say project is based on open source so it may be able to be used but will obviously need transcribing js > c++ . I had a brief look at the code. It is commented and seems to be reasonably easy to follow- at least for those more experienced than me. I also tried to dig into the Gimp implementation for transparency but its a bit over my head. I think its contained in the gdk part but gimp is a huge mass of code.

Quote:
Originally Posted by Psyches View Post
otya, Jonas,
For an example of both layering possibilities and current issues with other implementations of quilting, see this geolocation.
Mark
philocat is offline   Reply With Quote
Old 02-02-2010, 16:34   #408
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Quote:
Originally Posted by sredna View Post
Hi,
Here is a patch + source files for the route manager dialog to test. Get the .zip.doc file and rename it, removing the .doc extension.
Looks fantastic Anders, I'll give it a try tomorrow..
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 02-02-2010, 18:56   #409
Registered User
 
Psyches's Avatar

Join Date: Apr 2008
Location: SF Bay Area
Boat: Tartan 30 - Bluegrass
Posts: 187
Send a message via Yahoo to Psyches Send a message via Skype™ to Psyches
Quote:
Originally Posted by cagney View Post
Ok Mark, go ahead and include the patch.
Done...
Psyches is offline   Reply With Quote
Old 02-02-2010, 22:23   #410
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
Quote:
Originally Posted by otya View Post
The geolocation uses geogarage.js (52kb) to do the transparency display stuff . The blurb on developers site say project is based on open source so it may be able to be used but will obviously need transcribing js > c++ . I had a brief look at the code. It is commented and seems to be reasonably easy to follow- at least for those more experienced than me. I also tried to dig into the Gimp implementation for transparency but its a bit over my head. I think its contained in the gdk part but gimp is a huge mass of code.
Painting transperant objects/layers should not pose any problem when painting on an application window Layering is not very difficult either, it is mostly a question of deciding how to design it, and how to utilize and expose it.

Anders
sredna is offline   Reply With Quote
Old 03-02-2010, 01:10   #411
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
You're up early Anders

Small problem with $ patch < routemanagerdialog.patch

Quote:
can't find file to patch at input line 17876
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|Index: include/chcanv.h
|================================================= ==================
|RCS file: /cvsroot/opencpn/opencpn/include/chcanv.h,v
|retrieving revision 1.39
|diff -u -b -r1.39 chcanv.h
|--- include/chcanv.h 2 Jan 2010 02:16:25 -0000 1.39
|+++ include/chcanv.h 2 Feb 2010 21:25:42 -0000
--------------------------
I worked around that by adding the files manually, but then I get the following during make:

Quote:
mv -f .deps/routeman.Tpo .deps/routeman.Po
make: *** No rule to make target `src/routemanagerdialog.cpp', needed by `routemanagerdialog.o'. Stop.
Any ideas?
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 03-02-2010, 05:09   #412
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Hi Anders!

Quote:
Originally Posted by sredna View Post
For windows users, you need to add routemanagerdialog.cpp to your building system (proj file?). Please let me know if I need to care for this.
Would be great if you can do so!
I'd like to test (and maybe help) it and give you some feedback. But it's the first time for me having to compile things myself.
I've downloaded and installed Microsoft Visual C++ 2008 Express Edition running on Windows 7 Ultimate 32Bit.
So maybe a short description (or a link) of 'How to ...' will be enough to achieve the goal.

Thanks in advance,
Gunther
Netsurfer is offline   Reply With Quote
Old 03-02-2010, 07:36   #413
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
Quote:
Originally Posted by idpnd View Post
You're up early Anders

Small problem with $ patch < routemanagerdialog.patch



I worked around that by adding the files manually, but then I get the following during make:



Any ideas?
hi idpnd,

try patch -p0 < routemanagerdialog.patch, that should do, given you are in the root opencpn directory.

Anders
sredna is offline   Reply With Quote
Old 03-02-2010, 07:38   #414
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
Quote:
Originally Posted by Netsurfer View Post
Hi Anders!


Would be great if you can do so!
I'd like to test (and maybe help) it and give you some feedback. But it's the first time for me having to compile things myself.
Hi Gunther,

unfortunately I do not know how opencpn is built in windows. I believe people use custom files to do that, maybe another windows user could help here?

I see a CMake file in opencpn, but i havent heard about it being used - maybe that would be nice, since cmake is cross platform?

Anders
sredna is offline   Reply With Quote
Old 03-02-2010, 07:50   #415
Registered User
 
Netsurfer's Avatar

Join Date: Jan 2010
Location: Cologne, Germany
Boat: Beneteau Oceanis 331
Posts: 557
Smile

Hi Anders!

Quote:
Originally Posted by sredna View Post
... maybe another windows user could help here?
Yes, that would be very nice indeed.
I never made this before and it seems a little bit 'complicated' , but I'm sure to get it to work with a little help.
So I wait and see if someone can help me.

Because I'm quite sure that your Route manager is a step forward for OCPN.

Greetings
Gunther
Netsurfer is offline   Reply With Quote
Old 03-02-2010, 09:04   #416
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
Ok, that worked. Now I'm getting:

Quote:
....gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/directfb -I/usr/include/libpng12 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -MT routeman.o -MD -MP -MF .deps/routeman.Tpo -c -o routeman.o `test -f 'src/routeman.cpp' || echo './'`src/routeman.cpp
mv -f .deps/routeman.Tpo .deps/routeman.Po
make: *** No rule to make target `src/routemanagerdialog.cpp', needed by `routemanagerdialog.o'. Stop.
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Old 03-02-2010, 09:07   #417
Registered User

Join Date: Dec 2005
Location: Helsingborg
Boat: Dufour 35
Posts: 3,891
sredna

I had similar experience as idpnd with patch but sorted that out. There where no issues when compiling.

I have done some testing. Works great when only using CM93. But as you say, raster charts are a bit problematic.
I had full coverage of small scale charts loaded for the route areas, but generally only the background vector chart (black/blue) was shown when zooming to route. It was impossible to change charts, the chart bar was blocked, as was manual zooming with the mouse.

Another small thing. I imported existing routes from the hard-disk, these had no names so it was difficult to differentiate between them. Why not print the file name of the imported gpx-file if a route name is missing?

All in all, ...congratulations to this nice feature, you have already come a long way with this feature. I'm looking forward to see more of your ideas, turn into code

Thomas
cagney is offline   Reply With Quote
Old 03-02-2010, 09:08   #418
Registered User

Join Date: Feb 2010
Posts: 619
Re: AIS functionality/debugging

Re: my yesterday's problem: of course, my mistake in hand-crafting AIS messages. They were too short... Unfortunately, real Type 21 messages are hard to find. Some working samples (shown on the picture):

!AIVDM,1,1,,B,E37RU@P00Q1R2S3T4P0Q1R2S3T4hQ88R?aWW @000000000,4*52
!AIVDM,1,1,,B,E38RU@P00Q1R2S3T4P0Q1R2S3T4hR51R?aWW @000000000,4*5a

and the Class B target
!AIVDM,1,1,,A,B39RU@i01`@20i7mkkcB0P2001nP,0*2c

Still, I would appreciate more data for testing: Aid To Navigation, Base Station etc. Maybe someone can record and upload an interesting AIS stream?

Cheers
Piotr
Attached Thumbnails
Click image for larger version

Name:	AIS_Opencp_B_ATONs.jpg
Views:	156
Size:	71.8 KB
ID:	12979  
PjotrC is offline   Reply With Quote
Old 03-02-2010, 09:12   #419
Registered User
 
sredna's Avatar

Join Date: Dec 2009
Location: Vester Skerninge, Danmark
Boat: Svendborg Senior DEN 38 Kate
Posts: 107
Quote:
Originally Posted by idpnd View Post
Ok, that worked. Now I'm getting:
Hi again,

I did you rerun the configure script after patching and adding the source files? and possibly autoreconf before that?

routemanagerdialog.cpp should have been added to the sources list in Makefile.am, check that as well.
sredna is offline   Reply With Quote
Old 03-02-2010, 09:17   #420
Registered User
 
idpnd's Avatar

Join Date: Sep 2007
Location: Almería, ES
Boat: Chiquita 46 - Libertalia
Posts: 1,558
I did ./configure, but I've never used auto(re)conf before? WIll try in a bit
__________________
sv Libertalia
idpnd is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Beta Marine Diesel michaelmrc Engines and Propulsion Systems 48 23-03-2016 13:44
Need some technical advice....antennas. Just a Tinch Marine Electronics 15 01-12-2007 15:57
Blue Sea Systems Technical Brief GordMay Electrical: Batteries, Generators & Solar 0 16-03-2007 04:16
technical difficulties witchcraft The Sailor's Confessional 1 30-05-2005 14:09
Dow Corning Technical Manual GordMay The Library 0 12-04-2005 16:25

Advertise Here


All times are GMT -7. The time now is 15:28.


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.