Cruisers Forum
 


Join CruisersForum Today

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-12-2017, 00:44   #1
Registered User

Join Date: Jun 2015
Posts: 25
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, 01:16   #2
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 108
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, 08:12   #3
Registered User

Join Date: Jun 2015
Posts: 25
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:	29
Size:	52.9 KB
ID:	160007  
__________________
Didier B is offline   Reply With Quote
Old 01-12-2017, 08:48   #4
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 108
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, 09:40   #5
Registered User

Join Date: Jun 2015
Posts: 25
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, 14:06   #6
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 108
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, 03:25   #7
Registered User

Join Date: Jun 2015
Posts: 25
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, 03:57   #8
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 108
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:	24
Size:	38.9 KB
ID:	160038  
__________________
Andreas29 is offline   Reply With Quote
Old 03-12-2017, 10:13   #9
Registered User

Join Date: Jun 2015
Posts: 25
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, 12:33   #10
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
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
__________________
boat_alexandra is offline   Reply With Quote
Old 10-12-2017, 17:36   #11
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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, 18:07   #12
Registered User
 
boat_alexandra's Avatar

Join Date: Aug 2009
Location: Masachusetts
Boat: bristol 27
Posts: 2,803
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.
__________________
boat_alexandra is offline   Reply With Quote
Old 10-12-2017, 18:28   #13
Registered User

Join Date: Feb 2010
Location: On the go. Not in Prague.
Posts: 4,016
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, 22:20   #14
Registered User
 
rgleason's Avatar

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

Added for Sean.
https://opencpn.org/flyspray/index.p...s&task_id=2309
__________________

__________________
rgleason is online now   Reply With Quote
Reply

Tags
current

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



Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -7. The time now is 09:53.


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.