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 28-11-2017, 20:13   #76
Registered User
 
rgleason's Avatar

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

zzz, Please let us know if your formula works, then we'll add it to to the documentation for others to use. Thanks.
rgleason is offline   Reply With Quote
Old 28-11-2017, 21:34   #77
Registered User
 
rgleason's Avatar

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

Here is the page, I've added the formula now, but would be very interested in confirmation of the result.

https://opencpn.org/wiki/dokuwiki/do...as_conversions
rgleason is offline   Reply With Quote
Old 09-12-2017, 01:30   #78
zzz
Registered User

Join Date: Jul 2016
Posts: 12
Re: New Plugin NmeaConvertor

Here’s the version actually worked;

$XXMWV,$WIMWV1+180*acos((sqr($WIMWV3)+(sqr($GPRMC7 )+sqr($WIMWV3)-2*$GPRMC7*$WIMWV3*cos($WIMWV1*3.14159265/180))-sqr($GPRMC7))/(2*sqrt(sqr($GPRMC7)+sqr($WIMWV3)-2*$GPRMC7*cos($WIMWV1*3.14159265/180))*$WIMWV3))/3.14159265,T,sqrt(sqr($GPRMC7)+SQR($WIMWV3)-2*$GPRMC7*$WIMWV3*cos($WIMWV1*3.14159265/180)),N,A

1. $s were missing inthe previous version
2. Changed wind speed unit from K to N
3. Deleted spaces after commas
zzz is offline   Reply With Quote
Old 09-12-2017, 16:04   #79
Registered User
 
rgleason's Avatar

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

Thanks ZZZ, have updated
https://opencpn.org/wiki/dokuwiki/do...nmea_converter
rgleason is offline   Reply With Quote
Old 15-12-2017, 18:54   #80
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: New Plugin NmeaConvertor

1) It would be nice if instead of using sqr() we could support the ^ operator.
2) if we could replace PI rather than writing 3.14... everywhere.
3) Another thing would be to more easily match nmea input sentences, so the formulas will work for any instruments ... eg **MWV It might be complicated if it can match its own outputs from a different rule though
4) A user interface to include many builtin convenience converters, like ones for pressure, or for wind.


I tried this plugin to convert apparent wind to true wind with the above mentioned formula.

True wind direction is relative to the boat. This can be useful, but what if I want to compute true wind relative to north?

Now... is there a nmea sentence for true wind relative to north, or is it only for the boat? I can't seem to find this.


To do this requires a bearing sensor which I have as well, and to compute the magnetic deviation which the wmm plugin provides.

It should therefore be possible to sit at anchor, and create a watchdog alarm for when the actual wind direction clocks past a certain angle.
seandepagnier is offline   Reply With Quote
Old 15-12-2017, 20:45   #81
Registered User
 
rgleason's Avatar

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

Nice ideas Sean.
rgleason is offline   Reply With Quote
Old 16-12-2017, 00:31   #82
Registered User
 
rooiedirk's Avatar

Join Date: Aug 2010
Location: Netherlands
Boat: Oneoff
Posts: 511
Re: New Plugin NmeaConvertor

@Sean,
Later this winter I'll have a look again at this plugin. (First complete a compass deviation PI)
I am using a library for the calculation(ec_engine), and I dont't like to mess around in that one for adding functions.
Before sending a sentence to the calculator engine all variables are replaced by the one's collected from the input nmea. It would be easy to add here a PI->3.14.. substitute.
Using wildcards in the input should also be not to difficult, but could make it more difficult to debug the formula.
I see no reason why you can't make a fake inbetween sentence, and use that one again in a next formula. It will cause some time delay however.

The plan is to also make it possible to use identifiers including the first field. As some none standard sentences use the first field as part of identity.
Dirk
__________________
Navigation is know where you are and what to do to get where you want.
But also: Know where you don't want to be and what to do to don't get there.
rooiedirk is offline   Reply With Quote
Old 16-12-2017, 07:48   #83
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: New Plugin NmeaConvertor

Also... Correct me if I'm wrong, but the above true wind calculation is technically incorrect.


This is because it only uses GPS speed. This would be fine, if the boat (or wind sensors) were aligned to be pointed exactly the direction it were moving (gps course), but this isn't the case. The boat might be moving sideways a bit. It should use gps course as well, but it also needs to know the true bearing (compass corrected from magnetic deviation)


Maybe the difference is slight in a lot of cases, only few degrees if that, but I wanted to point it out.


At least, it should filter the GPS speed down considerably because gps speed is often erratic, but averages out. A water speed sensor would be nicer.
seandepagnier is offline   Reply With Quote
Old 16-12-2017, 12:33   #84
Registered User
 
rgleason's Avatar

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

Excellent point Sean, speedo is better than GPS SOG.
The Windows Polar program Polauto by Patrick Tiercelin has several choices for input data, but the speedo is the favored one.
https://opencpn.org/wiki/dokuwiki/do...ware:polauto&s[]=polauto

[QUOTE]
Also... Correct me if I'm wrong, but the above true wind calculation is technically incorrect.

This is because it only uses GPS speed. This would be fine, if the boat (or wind sensors) were aligned to be pointed exactly the direction it were moving (gps course), but this isn't the case. The boat might be moving sideways a bit. It should use gps course as well, but it also needs to know the true bearing (compass corrected from magnetic deviation)

Maybe the difference is slight in a lot of cases, only few degrees if that, but I wanted to point it out.

At least, it should filter the GPS speed down considerably because gps speed is often erratic, but averages out. A water speed sensor would be nicer.[/QUOTE]

See what Thomas [Tactics_pi] does about True Wind for data

https://opencpn.org/wiki/dokuwiki/do...ools:tactics&s[]=tactics#calculate_true_wind_data
rgleason is offline   Reply With Quote
Old 11-01-2018, 01:23   #85
Registered User

Join Date: May 2016
Posts: 8
Re: New Plugin NmeaConvertor

Hello, im struggeling to install this plugin on my opencpn /raspberry pi setup
The package location seems to be missing.
Please help linux experts
Ontrackx is offline   Reply With Quote
Old 14-01-2018, 00:44   #86
Registered User
 
sailorF54's Avatar

Join Date: Dec 2009
Location: Perros-Guirec, France
Boat: Jeanneau Sunshine 36
Posts: 999
Re: New Plugin NmeaConvertor

Quote:
Originally Posted by Ontrackx View Post
Hello, im struggeling to install this plugin on my opencpn /raspberry pi setup
The package location seems to be missing.
Please help linux experts
I am NO expert, but as there is no answer to your plea...
Here is my build of the deb package (use (eg) gdebi to install)
DL.FREE.FR

It will install the .so file in /usr/local/lib/opencpn... If your opencpn is in /usr/share... you'll have to move it there (possibly also the .mo files in /usr/local/share/locale/...)

BUT A quick test as in
https://opencpn.org/wiki/dokuwiki/do...nmea_converter
FAILED
But I may have had my parameters wrong
Please report if you succeed...
sailorF54 is offline   Reply With Quote
Old 14-01-2018, 15:26   #87
Registered User
 
rgleason's Avatar

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

Maybe it needs a tag or something. I'd check the github location and see if there are any tags in the commits, or even some release numbers might work. (Linux users chime in, a windows guy is speaking)

Quote:
Originally Posted by Ontrackx View Post
Hello, im struggeling to install this plugin on my opencpn /raspberry pi setup
The package location seems to be missing.
Please help linux experts
rgleason is offline   Reply With Quote
Old 14-01-2018, 16:59   #88
Registered User
 
rgleason's Avatar

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

https://github.com/RooieDirk/NmeaCon...commits/master

No there are no version numbers in the commit and there are no released numbered either. I understand this makes it hard for you Linux guys as Launchpad and others won't find it.

The above is probably half truths and lies, and Pavel will hopefully correct me!
rgleason is offline   Reply With Quote
Old 30-01-2018, 09:02   #89
Registered User

Join Date: Jan 2018
Posts: 6
Re: New Plugin NmeaConvertor

This plugin is great and has solved a big issue for our sensor R&D. We are extracting ocean currents with GPS (COG, SOG, HDG) combined with our electromagnetic Forward and Leeway sensor. I am using the plugin to filter exact fields I want, add calculations, and create a custom output sentence at 1 second intervals. This has saved big headaches on the data analysis side (i.e., MS Excel) since one sensor may have a 5Hz output rate while another may only be one.... all data is synced now. Anyway, questions I have:

1. I am using this plugin on a Windows machine. I used the .exe to install it. Is this package current with your updates? If not, how can I get an updated .exe installer

2. I have OpenCPN installed on a raspberry pi and would like to utilize the plugin on it. I have no idea how to install the plugin on the Pi 3.

Again, awesome plugin!
knowconcept is offline   Reply With Quote
Old 30-01-2018, 15:39   #90
Registered User
 
rgleason's Avatar

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

knowconcept,

Can you please write this up so that I can include the example in the wiki?
It will help others to use the plugin.
Thanks.
PS: just post here or attach a .doc.
rgleason is offline   Reply With Quote
Reply

Tags
nmea, 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
Calculator_pi New Finished Plugin for OpenCPN SaltyPaws OpenCPN 136 28-12-2022 07:19
New IAC Fleetcode Plugin for OpenCPN CBorchardt OpenCPN 77 23-04-2019 05:40
New Plugin Development on Linux globalkeith OpenCPN 5 03-05-2012 07:16
New History Plugin for OpenCPN seandepagnier OpenCPN 11 04-10-2010 14:11

Advertise Here


All times are GMT -7. The time now is 04: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.