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 15-05-2023, 15:27   #1
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 251
Images: 3
DashboardSK

The NSK_pi plugin allows to transform certain NMEA0183 sentences into SignalK for display in DashboardSK

But it seems to me that the SOG displayed by the dashboardSK plugin is different from that displayed by the classic dashboard (almost half less), using the necessary transformation function "m/s → kn"

To check, I wanted to compile the NSK_pi plugin, changing:
//#define kn2ms(x) (0.51444444444 * (x))
#define kn2ms(x) (1.94384 * (x))
#define kmh2ms(x) (0.27777777778 * (x)

Also, scrupulously respecting the indications, I also wanted to add the sentences MWV and MWD.

But I can't compile this plugin, while I compile the other plugins without any problem (windows 10).

A few observations:

- in the statement:
git clone --recurse-submodules git://github.com/nohal/nsk_pi.git
cd nsk_pi
mkdir build
cd build
cmake..
make, I had to replace make with "cmake ."

- in the statement :
pip3 install pre-commit
cd <nsk_pi source directory>
pre-commit install

I have an error message for the 3rd line (pre-commit install) and yet in C:\...\...\nsk_pi\.git\hooks, I find among other things "pre-commit.sample" ...

In short, at the end of the compilation, I have error messages in particular:

C:\Users\Alain\OCNplugins\nsk_pi\include\nskgui.h( 10,10): fatal error C1083: Could not open include file: 'wx/artprov.h': No such file or directory [C: \Users\Alain\OCNplugins\nsk_pi\build\NSK_pi.vcxpro j]

C:\Users\Alain\OCNplugins\nsk_pi\src\nsk_pi.cpp(27 ,10): fatal error C1083: Unable to open include file: 'marnav/nmea/angle.hpp': No such file or directory [ C:\Users\Alain\OCNplugins\nsk_pi\build\NSK_pi.vcxp roj] [C:\Users\Alain\OCNplugins\nsk_pi\build\tarball-build.vcxproj]


etc (see attached file).

Until I succeed in compiling, would it be possible to check the display of the SOG?
And if anyone managed to add new sentences, I'm interested.
Schnapsy is offline   Reply With Quote
Old 15-05-2023, 15:29   #2
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 251
Images: 3
Re: DashboardSK

attached file
Attached Files
File Type: pdf erreur compile.txt.pdf (5.4 KB, 24 views)
Schnapsy is offline   Reply With Quote
Old 15-05-2023, 17:45   #3
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: DashboardSK

FWIW I can't reproduce your problem, the conversion in NSK_pi does exactly what it is supposed to do and the m/s -> kt transformation in DashboardSK as well (see the attached screenshot).

The conversion from knots to meters per second is either MperS=KTS*0.51444444444 or MperS=KTS/1.94384, what you are trying to do (MperS=KTS*1.94384) is plain wrong and even if there was a bug somewhere, it is not a fix for it.

I will provide explicit instructions to build these plugins on Windows as soon as I have some time, please stay tuned.

I also much prefer communicating issues with the plugins via their respective Github projects.

Thanks

Pavel
Attached Thumbnails
Click image for larger version

Name:	NSK_SOG.png
Views:	44
Size:	165.3 KB
ID:	275426  
nohal is offline   Reply With Quote
Old 16-05-2023, 07:48   #4
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 251
Images: 3
Re: DashboardSK

Hello Pavel and thank you for your answer.

I understand that for the compilation of this plugin, I am missing elements of understanding and I will therefore wait.
In the end, there is nothing urgent about it.

For the SOG display, I was not precise enough.
When I choose the VTG sentence (as in your screenshot), the SOG display matches +/- the Dashboard display, but this is not the case when I choose the RMC sentence.
But as I use different ".txt" files that I read with the VDR plugin, I will in the meantime continue my investigations on this display and compare/check the quality of these files.

To react live on this plugin, I don't know how Github works but I'll look at how to participate.

That said, even if it is only "cosmetic" for some, this DashboardSK plugin really improves the display of data in OpenCPN.
Schnapsy is offline   Reply With Quote
Old 16-05-2023, 13:25   #5
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: DashboardSK

The bug in RMC sentence conversion is fixed in NSK version 0.2.2 now available in the master catalog. I have also added instructions to build on Windows to the README document, let me know if they work for you as I'm not using Windows very often.
nohal is offline   Reply With Quote
Old 17-05-2023, 01:19   #6
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: DashboardSK

Quote:
Originally Posted by nohal View Post
The bug in RMC sentence conversion is fixed in NSK version 0.2.2 now available in the master catalog.......
Hum, sorry Pavel, NSK 0.2.2 is not present in the master catalog.
Gilletarom is offline   Reply With Quote
Old 17-05-2023, 02:21   #7
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: DashboardSK

It sure is there for me, did you update the catalog?
Attached Thumbnails
Click image for larger version

Name:	nsk022.png
Views:	33
Size:	42.9 KB
ID:	275454  
nohal is offline   Reply With Quote
Old 17-05-2023, 03:00   #8
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 251
Images: 3
Re: DashboardSK

Quote:
Originally Posted by nohal View Post
The bug in RMC sentence conversion is fixed in NSK version 0.2.2 now available in the master catalog. I have also added instructions to build on Windows to the README document, let me know if they work for you as I'm not using Windows very often.

It works perfectly, bravo Pavel !

Now, with your newest instructions on github, i will give a try for compiling again and adding sentences to this perfect plugin.
Schnapsy is offline   Reply With Quote
Old 17-05-2023, 04:38   #9
Registered User
 
Gilletarom's Avatar

Join Date: Mar 2010
Location: France
Boat: 10.50 mètres
Posts: 3,007
Re: DashboardSK

Quote:
Originally Posted by nohal View Post
It sure is there for me, did you update the catalog?
Oups, sorry Pavel. It is. I must have forgotten to update the catalog.
Gilletarom is offline   Reply With Quote
Old 23-06-2024, 07:18   #10
Registered User

Join Date: Jun 2024
Posts: 1
Re: DashboardSK

When will DashboardSK Plugin work on the OpenCPN android version. Really like on windows and would love to use it on my tablet.
smgoldberg93 is offline   Reply With Quote
Old 23-06-2024, 07:21   #11
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,234
Re: DashboardSK

When I have time to make it work there. Sure not before OpenCPN 5.10 is released.
nohal 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


Advertise Here


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


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.