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 27-08-2016, 14:52   #151
Registered User
 
NahanniV's Avatar

Join Date: Mar 2011
Location: Nova Scotia Canada
Boat: Wharram Tiki 46
Posts: 1,321
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by verkerkbr View Post
It is perhaps an "open door" but did you enlarge the file system after starting the image for the first time ? It is in the menu. It is a bit hidden.
Yes, I did do that.

Thanks,
JM.
NahanniV is offline   Reply With Quote
Old 28-08-2016, 13:06   #152
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

I tried to install from apt and I find:

Code:
pi@raspberrypi:~/openplotter$ sudo add-apt-repository ppa:opencpn/opencpn
You are about to add the following PPA to your system:
 A Chartplotter and GPS Navigation Software.

OpenCPN is a free software (GPLv2) project to create a concise chartplotter and navigation software for use as an underway or planning tool.  OpenCPN is developed by a team of active sailors using real world conditions for program testing and refinement.
 More info: https://launchpad.net/~opencpn/+archive/ubuntu/opencpn
Press [ENTER] to continue or ctrl-c to cancel adding it

Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 167, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)    
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie
pi@raspberrypi:~/openplotter$
seandepagnier is offline   Reply With Quote
Old 28-08-2016, 15:02   #153
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: OpenCPN on Raspberry PI2

Sean...
There are no Jessie specific packages built on launchpad. You must pretend you use a compatible Ubuntu version as explained at Download OpenCPN | Official OpenCPN Homepage

Pavel
nohal is offline   Reply With Quote
Old 29-08-2016, 01:34   #154
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by NahanniV View Post
Yes, I did do that.

Thanks,
JM.
JM,

I'am using several SD mico SD charts o.a. Kingston 32 GB HC (10) SanDisk Ultra 32 GB (10). Formatted with the Linux utility in Ext4 and put the image on also with the Linux utility in Mint. With DD it also works. But after installing the image you have to enlarge the file system.

Look with Gparted if is there is a boot flag.

Raspian works, but also Ubuntu Mate. I have not tried the OpenGL VC4 on the Mate version. The Ubuntu gives a higher GLXgear result then the basic Raspian.

Except the restrictions with zooming out, Raspian with OpenGL and the latest kernel version works very fast if you don't zoom out too much.

The SD copying utility in Raspian is also working great. Backing up the system is very easy to do.

I have also a Banana thing. But have not yet found out how to get accelerated video on that system.

Bram
verkerkbr is offline   Reply With Quote
Old 30-08-2016, 01:25   #155
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Re: OpenGL

This is how it looks after zooming out and then after "wiping" the screen the image is back again.

The solution ? A simple redraw after zooming out ?
Attached Thumbnails
Click image for larger version

Name:	2016-08-30-101032_1680x1050_scrot.jpg
Views:	206
Size:	423.5 KB
ID:	130293   Click image for larger version

Name:	2016-08-30-101046_1680x1050_scrot.jpg
Views:	277
Size:	429.9 KB
ID:	130294  

verkerkbr is offline   Reply With Quote
Old 30-08-2016, 07:29   #156
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

Does this occur without quilting? Did you turn off accelerated panning?
seandepagnier is offline   Reply With Quote
Old 30-08-2016, 07:55   #157
Registered User

Join Date: Oct 2014
Location: Netherlands
Boat: Halmatic 30
Posts: 1,122
Re: OpenCPN on Raspberry PI2

Quote:
Originally Posted by boat_alexandra View Post
Does this occur without quilting? Did you turn off accelerated panning?
Works no better with quilting to off. If I switch accelerated panning to =0. It returns to = 1 after starting O.

Zooming out higher then 19600 (0,10x) make the problem worse. After that phase I cannot recover the image with "wiping" the screen.

But for normal navigation use on the same scale it works remarkable well and very fast.

Other programma do not seem to have these problems with zooming out.

Is it related to OpenCpn ?

Did you see the same behaviour on your PI3 or Pi2 ?

Bram
verkerkbr is offline   Reply With Quote
Old 30-08-2016, 14:01   #158
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

Yes I saw the same behavior except I can force accelerated panning off.

I'm using mpu9255 for heading data now.
seandepagnier is offline   Reply With Quote
Old 02-09-2016, 02:57   #159
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Hi,

after solving some other pi probs I´ve now the time to try to get oc with OpenGL graphic acceleration to work.

Pi 2B with the latest jessie and the raspian OpenGL Driver.

Using the packages and install oc as described in the manual -> not faster

So I´ve to try an other way.

Next attemp is to build from source (by the way, how can I get the Basic map with fine shore lines, must I download other source packs?).

Do I have to use some other Drivers? Witch ones?

Thanks

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 02-09-2016, 05:01   #160
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

did you enable in raspi config and run glxgears?
seandepagnier is offline   Reply With Quote
Old 02-09-2016, 05:36   #161
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Hi Sean,

yes, I wrote in short form sorry. Yes I enabled the graphic acceleration in pis config. Glxgears works with 160 to 200 fps. glxinfo means Hardware acceleration. But when running oc with OpenGL only 1 to 3 fps. I still working on it.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 02-09-2016, 11:34   #162
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Hi,

solved my prob. I tried to update my existing older raspian Version -> didn´t work. When using the original new raspain Image and hw-accelaeration I got oc now working with OpenGL.

Sorry for beeing so stupid

So now I´ve the same prob with the oc-crashes. I using rastercharts witch are raound about 50 to 70 mb each. OC crashes after a few seconds. Now I´m playing with the Parameters memcachelimit and ncachelimit.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 02-09-2016, 15:24   #163
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

So one raster chart is 50MB? in kap format?
seandepagnier is offline   Reply With Quote
Old 03-09-2016, 02:05   #164
Registered User

Join Date: Dec 2015
Location: Germany, sailing: Northsea
Boat: Friendship 28
Posts: 244
Re: OpenCPN on Raspberry PI2

Hi,

first I try to write down the configuration of my pi:

Pi 2B, Image from pi´s Website (Jessie may 2016) with updated kernel and System (rpi-update and abt-get update and upgrade), experimental graphic driver from pi.
glxgears shows up to 250 fps depending of the window I use.
glxinfo shows direct Rendering yes and vc4 as Driver

Running oc with the respositories packs as described on the oc webside. Not built from source.

I´m using rastercharts (made from scans from the papercharts) in the *.kap Format.
The Charts have 5 up to 50 mb depending if it is a small Detail Chart or a bigger overview Chart. When I made the charts I put two DIN A3 scans together to one DIN A2 Picture and then made a *.kap Chart.

Video mem is 256 or 128 mb (have no visuable effect).
Limited the charts with ncachelimit=5

When running oc without the gl-option everthing is ok. Panning and zooming is not very fast but ok and usable for me.

Now ´played around with the OpenGL-Option.
When using the gl-option panning und zooming is much faster.
As Bram described when zooming out too much (x1,6 and lower) then oc stops and after a couple of seconds it run down.
Using only one of my 50mb charts have the same effect.
Using only one of my small Detail charts with 5-6mb then I can zoom out without any problems. Since yet I don´t find out the Limit of mbs.
Switching quilting or the Change scale Options on or off have no effect.
Changing the ncachelimit value have no effect
It seems to be that this effect depends of the biggernes of the Chart.

Regards

Andreas
Andreas29 is offline   Reply With Quote
Old 03-09-2016, 11:37   #165
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,425
Re: OpenCPN on Raspberry PI2

the software could be improved to handle any chart size with any amount of memory, but I am discouraged after having the memory corrupted so many times on the sd card.


I tried with gles to attempt to gain etc1 compression and it seems a total failure.

If compressed textures worked, then it can handle 6x more data, so your 50mb chart is no longer a problem. Unfortunately it is not working, it does work with the original closed broadcom drivers.
seandepagnier is offline   Reply With Quote
Reply

Tags
enc, opencpn


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
OpenCPN on Raspberry PI Raspbian Captain_Steve OpenCPN 12 08-02-2015 10:45
Comproblem on Raspberry Pi and OpenCPN vagspel OpenCPN 4 26-12-2012 05:01
Raspberry Pi and OpenCPN 3.1.915 spillemw OpenCPN 20 24-09-2012 02:30
Raspberry PI compiles OpenCPN monstads OpenCPN 7 15-03-2012 12:41
The Perfect Platform for OpenCPN ? Raspberry Pi night0wl OpenCPN 10 08-09-2011 19:09

Advertise Here


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


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.