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 30-11-2017, 23:44   #1
Registered User

Join Date: Jun 2015
Boat: Chantier duu Port Rézé les Nantes, Mopélia 2000
Posts: 90
Question V4.8 - Show Tides and Show Current

Since I use the updated version 4.8.0 of OpenCPN, the 'Show Tides' and 'Show Current' buttons (in the tool bar) doesn't work correctly. The map Symbols are HUGE, and the graph doesn't pop up when right-clicking the symbol. PS1 - I can't attach a photo, neither activate any BB code, though BB code is supposed to be 'on' ! Any clue ? PS2 - my configuration is : RPi3, OpenPlotter 0.16.0 beta, OpenCPN 4.8.0 PS3 - How can I insert a (CR+LF) ?
Didier B is offline   Reply With Quote
Old 01-12-2017, 00:16   #2
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: V4.8 - Show Tides and Show Current

Hi,

had the same prob. One of the latest update of the pi fixed it.

Did you try sudo apt-get update and then sudo apt-get dist-upgrade after using oc 4.8.0?

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 01-12-2017, 07:12   #3
Registered User

Join Date: Jun 2015
Boat: Chantier duu Port Rézé les Nantes, Mopélia 2000
Posts: 90
Re: V4.8 - Show Tides and Show Current

A picture to illustrate my previous post in this thread
Attached Thumbnails
Click image for larger version

Name:	Tyde.gif
Views:	202
Size:	52.9 KB
ID:	160007  
Didier B is offline   Reply With Quote
Old 01-12-2017, 07:48   #4
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: V4.8 - Show Tides and Show Current

Hi,

Didier, as I wrote, I had the same problem. But after I made an upgrade of the raspian all was fine and it works again like a charm.

I run oc on a pi2B

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 01-12-2017, 08:40   #5
Registered User

Join Date: Jun 2015
Boat: Chantier duu Port Rézé les Nantes, Mopélia 2000
Posts: 90
Re: V4.8 - Show Tides and Show Current

Quote:
Originally Posted by Andreas29 View Post
Hi,

had the same prob. One of the latest update of the pi fixed it.

Did you try sudo apt-get update and then sudo apt-get dist-upgrade after using oc 4.8.0?

Regards

Andreas
Yes Andreas, I've just done that (after a backup !) but it didn't solve the case ! Which version or raspbian do you use ? My OpenPlotter is baked on Jessie...
Didier B is offline   Reply With Quote
Old 01-12-2017, 13:06   #6
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: V4.8 - Show Tides and Show Current

Hi,

raspbian jessie, Kernel 4.9.35-v7+

First I tried to install a new harmonix file -> no sucess
Then the update -> first no sucess
Then I made an update (the sudo apt-get update and sudo apt-get dist-upgrade thing) at the 10th oktober and since then it works

I had exactly the same problem like you. Only the big tidal bars and when right click nothing or a corrupted Windows opend.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 02-12-2017, 02:25   #7
Registered User

Join Date: Jun 2015
Boat: Chantier duu Port Rézé les Nantes, Mopélia 2000
Posts: 90
Re: V4.8 - Show Tides and Show Current

I suspect a difference in repository.
I am using OpenPlotter 0.16.0 and the issue may be in the ppa...
What distribution are you using Andreas ?
Didier B is offline   Reply With Quote
Old 02-12-2017, 02:57   #8
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: V4.8 - Show Tides and Show Current

Hi,

Didier, I attach a pic, that shows my sources.list-file.

I use the repo from raspian and the repo wich is recommended for oc in Debian enviroment.

I have oc locally build but before that I used the ready build packs from the repo and they works good too (except the windbarb-prob in gridoverlay).

Hope this helps.

Regards

Andreas
Attached Thumbnails
Click image for larger version

Name:	sources.list.JPG
Views:	194
Size:	38.9 KB
ID:	160038  
Andreas29 is offline   Reply With Quote
Old 03-12-2017, 09:13   #9
Registered User

Join Date: Jun 2015
Boat: Chantier duu Port Rézé les Nantes, Mopélia 2000
Posts: 90
Re: V4.8 - Show Tides and Show Current

Thanks Andreas29,
I got the answer on the OpenPlotter support forum : OpenMarine - OpenPlotter
I copy/paste it here :
"The issue is that the monitor screen setting is not found. Change the automatic setting to manual. Measure the With of your screen and put this in the manual setting."
And then every thing was OK (after a reboot).
Didier B is offline   Reply With Quote
Old 10-12-2017, 11:33   #10
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: V4.8 - Show Tides and Show Current

This problem is still not fixed. If automatic screen detection is used on the raspberry pi, then tides/currents are still broken since commit 2b2224e62798c5f5f71589234fd604fadad9612b
seandepagnier is offline   Reply With Quote
Old 10-12-2017, 16:36   #11
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: V4.8 - Show Tides and Show Current

Sean...
Such a commit does not seem to exist in any of the source trees I can see.
Code:
$ git describe 2b2224e62798c5f5f71589234fd604fadad9612b
fatal: 2b2224e62798c5f5f71589234fd604fadad9612b is not a valid 'commit' object
Pavel
nohal is offline   Reply With Quote
Old 10-12-2017, 17:07   #12
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: V4.8 - Show Tides and Show Current

Code:
$ git describe 2b2224e62798c5f5f71589234fd604fadad9612b
v4.0.0-3176-g2b2224e

git show 2b2224e62798c5f5f71589234fd604fadad9612b
commit 2b2224e62798c5f5f71589234fd604fadad9612b
Author: David Register <bdbcat@yahoo.com>
Date:   Thu Jul 20 23:28:14 2017 -0400
 
    Improve monitor size detection logic on GTK. (FS#2193)

I think I fixed the problem, and strangely it only affects some raspberry.. anyway, this seems to work:
Code:
diff --git a/src/OCPNPlatform.cpp b/src/OCPNPlatform.cpp
index 7793d59..ed4249b 100644
--- a/src/OCPNPlatform.cpp
+++ b/src/OCPNPlatform.cpp
@@ -1588,7 +1588,9 @@ double  OCPNPlatform::GetDisplaySizeMM()
     
 #ifdef __WXGTK__
     GdkScreen *screen = gdk_screen_get_default();
-    ret = (double)gdk_screen_get_monitor_width_mm(screen, 0);
+    double gdk_monitor_mm = gdk_screen_get_monitor_width_mm(screen, 0);
+    if(gdk_monitor_mm > 0) // if gdk detects a valid screen width (returns -1 on raspberry pi)
+        ret = gdk_monitor_mm;
 #endif
Unfortunately there is similar logic in the grib plugin. Maybe the plugin api could include support to query the screen size to eliminate it.
seandepagnier is offline   Reply With Quote
Old 10-12-2017, 17:28   #13
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,207
Re: V4.8 - Show Tides and Show Current

Strange enough, in the upstream repo (and mine), that commit is here: https://github.com/OpenCPN/OpenCPN/c...e7ffecbee94f8f

Anyway, the current logic is broken on some RPis, no doubt, and your change can only make it better.

The final fix for the Grib plugin is already submitted in https://github.com/OpenCPN/OpenCPN/pull/893

Pavel
nohal is offline   Reply With Quote
Old 10-12-2017, 21:20   #14
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,627
Images: 2
Re: V4.8 - Show Tides and Show Current

Added for Sean.
https://opencpn.org/flyspray/index.p...s&task_id=2309
rgleason is offline   Reply With Quote
Reply

Tags
current

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
No tides or current shown PDA1 OpenCPN 1 15-07-2013 13:20
Current and Tides dockgoody Our Community 3 11-07-2011 20:41
Dogs, Currents and Tides JanetGroene Families, Kids and Pets Afloat 8 07-03-2011 03:14
Tides and Currents janp391 OpenCPN 8 11-11-2009 23:48
2009 tides and currents - Maptech OSN? jackdale Navigation 16 25-01-2009 20:53

Advertise Here


All times are GMT -7. The time now is 14:10.


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.