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 12-09-2017, 21:49   #361
Registered User

Join Date: Jul 2017
Posts: 67
Re: Tactics Plugin

I was lost until I was found! The new thread on installing OpenCpn on Debian 9.1 answered a lot of my questions. I followed the install procedure (one step at a time) and with a few exceptions they all installed. the exceptions are the ones he ended up changingin the makelist file at the end. in any event, the build went well (again I followed from the build directory: cmake .., make and make install). Now the question is how do I get OpenCPN to recognize the new plugin?

I copied the libtactics_pi.so file from the build directory to the /usr/lib/opencpn directory and the tactics plugin showed up in the list.

And so I think I have it. The question is will I ever remember what I did!
Ron
CapnRon47 is offline   Reply With Quote
Old 12-09-2017, 22:12   #362
Registered User

Join Date: Jul 2017
Posts: 67
Re: Tactics Plugin

The tactics plugin is working in OpenCPN on the Rpi, I can add to the dashboard type instruments under tactics. For whatever reason, now the ethernet wired connection is also working along with the WLAN0 Ap? I don't know what I did to make this happen, other than restart the Rpi and OpenPlotter with the WiFi Tab settings for enable AP and use Eth0 for sharing internet device. the Eth0 device shows up as expired (with and address)? while Wlan0 is configured. Sometimes you just gotta get lucky.

The kbox is connected to the AP and sending its data over wifi which shows up in OpenCPN. I only hope I can repeat this condition tomorrow!

Ron
CapnRon47 is offline   Reply With Quote
Old 13-09-2017, 03:44   #363
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Tactics Plugin

Congrats Ron. Glad to know the debian instr helped.
rgleason is offline   Reply With Quote
Old 13-09-2017, 03:46   #364
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Tactics Plugin

Perhaps this thread should be used for a new manual page?
rgleason is offline   Reply With Quote
Old 13-09-2017, 04:49   #365
Registered User

Join Date: Jul 2017
Posts: 67
Re: Tactics Plugin

I will condense and write something up later today, but I am not certain it is the most efficient process to get the plugin running on the Rpi!
Ron
CapnRon47 is offline   Reply With Quote
Old 13-09-2017, 18:42   #366
Registered User

Join Date: Jul 2017
Posts: 67
Re: Tactics Plugin

Installing Tactics Plugin on RaspberryPi 3 (the one post version):
I went thru a lot of trial and error, here is what I think worked.
1) I am running OpenPlotter 0.10.0 alpha with OpenCPN 4,6,1 with many plugins already installed.
2) you need to have a number of external resources available for the Tactics plugin to build. I know you need widgets and you need bzip2 (if you know what you are looking for you probably can find them in the Cmake files or you can run cmake to see what is missing) but Janth was very helpful in supplying a full list in another thread for building OpenCPN.

Thanks Janth

I Installed all packages needed to build and run OpenCPN (these worked for the Rpi3) (all the following commands required 'sudo' of course and many of these were already installed and of latest version but not all). I went thru the list line by line, but I did not keep track of which were not already installed.

apt update && apt upgrade
apt install `cat package_list.txt`

where the contents of the file pacage_list.txt must be as follows :

git
cmake
libc6
libc6-dev
build-essential
libgl1-mesa-dev
libgl1-mesa-dri
libgl1-mesa-glx
libglapi-mesa
libglu1-mesa
libglu1-mesa-dev
freeglut3
freeglut3-dev
libwxgtk3.0-0
libwxgtk3.0-dev
libtinyxml2.6.2
libtinyxml2-dev
libtinyxml-dev
libcurl3
libcurl3-dev
libcairo2
libcairo2-dev
libpango1.0-dev
libgdk-pixbuf2.0-dev
libgtk2.0-dev
lbzip2
libghc-bzlib-dev
libelf-dev
liblzma-dev
wx3.0-i18n
wx3.0-headers
zlib1g
zlib1g-dev
libportaudio2
portaudio19-dev

3)I found the existing OpenCPN plugin directories in /usr/share/opencpn/plugins, so I created a new directory for tactics_pi, and I cloned the tactics_pi github files there.

git clone https://github.com/tom-r/tactics_pi.git

4) I opened that directory and I created a build directory, moved to the build directory and proceeded to due a UNIX style build on the parent directory containing all the git files

mkdir build
cd build
cmake ..
make
make install

as I had previously loaded all the above packages I did not find any fatal errors.

5) at this point I had completed the build, but OpenCPN did not find the new plugin in its list. So I searched on another already installed plugin name and I found their library files in /usr/lib/opencpn the files where all libxxxxx.so. I copied the libtactics_pi.so file from its location in the build directory and pasted it into /usr/lib/opencpn.

6) now OpenCPN found the tactics_pi in its list and I was able to enable it and run it (I believe at least I have been able to get the instruments I have tried to show up in dashboard like elements, but listed as tactics).

7) I am assuming that the file I copied points to the location of all the other files needed for tactics_pi. I did find another copf of the tactics_pi data directory (with all the svg files) located in /usr/local/share/opencpn/plugins/tactics_pi/data. OpenCPN was able to find these as the tactics_pi icon shows up in the toolbar along with the Polar, Dashboard, WMM, and Grib icons of the other plugins that I enabled.

8) if anyone knows how to clean this process up so that you only need to load what is needed and the files end up where they are supposed to be, please feel free to improve on this process.

thanks,
Ron
CapnRon47 is offline   Reply With Quote
Old 14-09-2017, 18:03   #367
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Tactics Plugin

CaptRon,

Congratulations. Good writeup. Thank you.

Quote:
Janth was very helpful in supplying a full list in another thread for building OpenCPN
Do you have a link to the CF post by any chance? Have done a search on Janth.

See above for list and commands.

OpenCPN plugin directories in
/usr/share/opencpn/plugins
Created /usr/share/opencpn/plugins/tactics_pi

Cloned into that and executed the cmake commands.

Found library files in
/usr/lib/opencpn the files where all libxxxxx.so.

Copied libtactics_pi.so from 'build' directory to /usr/lib/opencpn.

----
I don't know if this is a virtual directory. Perhaps someone will advise?
Copy of tactics_pi data directory (with all the svg files)
/usr/local/share/opencpn/plugins/tactics_pi/data.
rgleason is offline   Reply With Quote
Old 14-09-2017, 19:27   #368
Registered User

Join Date: Jul 2017
Posts: 67
Re: Tactics Plugin

http://www.cruisersforum.com/forums/...-a-190654.html

The third reply under the thread on "installing-on-debian-9-1" contains the instructions and list that I used.

Many of the jpg files for OpenCPN are in a subdirectory of usr/share/opencpn, so I was surprised to find the tactics_pi svg files in the usr/local/share/opencpn/plugins/tactics_pi/data as there were no other plugin files there. I believe Janth indicated that this is the way the make instruction file was set up and that the locations can be changed by editing the CMakeCache.txt file. But I am happy with it working and not going to press my luck by making changes unless someone else confirms there is a better (prefered) way to install the plugin.

thanks,
Ron
CapnRon47 is offline   Reply With Quote
Old 15-09-2017, 02:52   #369
Registered User

Join Date: Feb 2012
Location: Austria
Posts: 320
Re: Tactics Plugin

Quote:
Originally Posted by CapnRon47 View Post
http://www.cruisersforum.com/forums/...-a-190654.html

The third reply under the thread on "installing-on-debian-9-1" contains the instructions and list that I used.

Many of the jpg files for OpenCPN are in a subdirectory of usr/share/opencpn, so I was surprised to find the tactics_pi svg files in the usr/local/share/opencpn/plugins/tactics_pi/data as there were no other plugin files there. I believe Janth indicated that this is the way the make instruction file was set up and that the locations can be changed by editing the CMakeCache.txt file. But I am happy with it working and not going to press my luck by making changes unless someone else confirms there is a better (prefered) way to install the plugin.

thanks,
Ron
Thanks Ron for sharing your experience! Would it also be possible to share the result for others to just install the the tactics_pi on a rpi3 without the need to setup the environment for compiling. Maybe rgleason could make the compiled version available for download from his ftp together with instructions on where to put them.
TIA
skipperearly is offline   Reply With Quote
Old 11-10-2017, 10:57   #370
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Tactics Plugin

Thomas, there are two things you may be aware of:

1. Sweep Plot Plugin (by Sean) which uses PDS Position Determined Speed. I thought I should mention it as a possible meaningful filter.
Sweep Plot & PDS (would it help AIS CPA?) - Cruisers & Sailing Forums

2. Sometime ago TBillings made a new Thread: Plugin for Current Speed and Direction (Set and Drift, or VDR)
"..multiplexer with an Arduino that uses a few inputs and outputs the VDR sentence, which is Set and Drift. For anyone who wants to replicate it, the instructions and code are available for free on my personal blog here."

He asks "... is there any way to plot the vector over my boat? Course Made Good and Speed Over Ground are plotted as a red long dash vector; Heading (True) and Speed Through Water are plotted as a red short dash vector; so is there a plugin out that that could plot the Current Set and Drift as a dotted line vector, or hollow line? Or any sort of vector?"

We know his good website King Tide Sailing

--I believe Tactics does have a current vector at the boat as shown in
"Activation of Current Display" -at the boat.

So he should just start using Tactics I think.
rgleason is offline   Reply With Quote
Old 03-12-2017, 01:17   #371
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 2,988
Re: Tactics Plugin

Hello Tom BigSpeedy,

In the language file, there is a "Polar compass" item. What does this item mean?

Thank by advance

Gilletarom.
Gilletarom is offline   Reply With Quote
Old 24-12-2017, 13:00   #372
Registered User
 
hasse_A's Avatar

Join Date: Feb 2013
Location: Tyrell Bay,Carriacou
Boat: Allegro 33
Posts: 559
Re: Tactics Plugin

We where sailing from Trinidad to Grenada when I recognized that the tactics plugin was showing negative True HDG.
I reckon this can't be right.

Here is a video I recorded of this : https://www.dropbox.com/s/swwhvyho83...4834.webm?dl=0

and here is a recording of NMEA-data that can be used to reproduce the error :https://www.dropbox.com/s/ep7mxnm0de...rue%20HDG?dl=0
hasse_A is offline   Reply With Quote
Old 25-12-2017, 08:04   #373
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Tactics Plugin

Polar Compass

VMG/CMG angles.
It has a “Polar compass” instrument, graphically displaying the actual polar ring and markers for Bearing to WP, Target-VMG angles and Target-CMG angles.

Gille I think its in the manual.

https://opencpn.org/wiki/dokuwiki/do...ools:tactics&s[]=tactics
rgleason is offline   Reply With Quote
Old 25-12-2017, 08:17   #374
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,632
Images: 2
Re: Tactics Plugin

Hans, yes I see the -14 for true heading and that this is the Tactics instrument set. Thankyou for recording it that will a big help. I'm guessing that the problem is in calculating the values above 360.
rgleason is offline   Reply With Quote
Old 25-12-2017, 09:20   #375
Registered User
 
Canne's Avatar

Join Date: Aug 2014
Posts: 246
Re: Tactics Plugin

Hasse_A, it is true that is not right, but it is not only limited to Tactics but also to the standard dashboard (see below screenshots of std. dashboard with Mag HDG visible from your data, as well as WMM data). The code base makes simply a sum of the magnetic heading and the declination, which, in your case, comes from the $ECRMC sentence: -14.895. Standard dashboard plugin and Tactics plugin code bases being separated, let's hope this gets fixed in both...
Attached Thumbnails
Click image for larger version

Name:	0-decl15.JPG
Views:	230
Size:	51.6 KB
ID:	160990   Click image for larger version

Name:	7-decl15.JPG
Views:	158
Size:	51.9 KB
ID:	160991  

Canne is offline   Reply With Quote
Reply

Tags
plug


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
Multihull storm tactics? sneuman Multihull Sailboats 234 13-04-2023 18:01
Storm Tactics irwinsailor The Library 90 15-10-2009 04:24
Heavy Weather Tactics and Equipment Benny Seamanship & Boat Handling 54 10-09-2009 06:04
Storm Tactics GordMay The Library 1 17-04-2005 05:54
Heavy-Weather Tactics: GordMay General Sailing Forum 25 28-10-2003 15:44

Advertise Here


All times are GMT -7. The time now is 23:18.


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.