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 04-07-2017, 00:22   #301
Registered User

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




it works tnx Canne.

I asked NKE on the NMEA output sentence, curious what their respons will be.

Seems like they have 3 different xdr strings for heel
($XDR with 'ROLL' $XDR with 'Heel Angle' and $PNKEP,06).

I'll continue testing
FrouFrou is offline   Reply With Quote
Old 04-07-2017, 01:15   #302
Registered User
 
Canne's Avatar

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

Quote:
Originally Posted by FrouFrou View Post
...it works...
Thank you for finding the NKE string and for the test!
Thomas, I created a pull request https://github.com/tom-r/tactics_pi/pull/15 for this NKE "feature", quite simple.
Best regards,
Petri
Canne is offline   Reply With Quote
Old 04-07-2017, 02:38   #303
Registered User

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

Canne,

One problem, Tactic now sees both xdr strings, the one with ROLL with wrong data and the one with Heel Angle with correct data.

I cant filter XDR because they both come from NKEClick image for larger version

Name:	DUMP.png
Views:	99
Size:	33.7 KB
ID:	151209
FrouFrou is offline   Reply With Quote
Old 04-07-2017, 06:25   #304
Registered User
 
Canne's Avatar

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

Quote:
Originally Posted by FrouFrou View Post
One problem, Tactic now sees both xdr strings, the one with ROLL with wrong data and the one with Heel Angle with correct data.
...
That is indeed a problem not only for tactics_pi but to whoever receives the two sentences about the same measurement but with different values: which one has the correct data?
Quote:
Originally Posted by FrouFrou View Post
I cant filter XDR because they both come from NKE
You cannot filter them at the reception side (i.e. in O) because there is not enough information for that in the message identifier. Maybe, if you could change the "II" to something else in one of the data sources? If you cannot modify the source I presume that you would sitll want to keep the NKE black box which provides you other important data you want to retain? I noticed that you have a MiniPlex as a connection point. Let's hope that it is a version 2 or 3. I have version 2 so I would do it like in the attached picture (http://www.shipmodul.com/downloads/m...iPlex-2_EN.pdf p37):

Click image for larger version

Name:	miniplex2_filtering_function.JPG
Views:	141
Size:	56.6 KB
ID:	151214

As an example, supposing that you have your e Heel Angle sensor 90-60-343 connected on input channel 3 the Nmea output 90-60-357 in channel 1. After the learning (Capture-button) or by manual entry you would have something like what is illustrated in the attached screen capture, see line 4: you would have, by default, all inputs checked (passed) for sentences IIXDR. Now, you would uncheck all inputs (block them) but for input channel 3 (the heel sensor input). This way, the output (PC) would have but IIXDR sentences coming from the heel sensor exclusively (and with "Heel Angle" identifier - but also with the correct value, hopefully!).

Programmatically, in O side this could be done only by some user set parameters (such as "override ROLL"... how ugly). I don't like this idea too much because it still increases the complexity of the already complex program. Thomas needs to decide which way to go, after all he seems to be equipped with NKE as well, I have but one instrument from them (and it is problematic enough ).

If you get stuck with this, I can compile you a temporary patch to ignore ROLL sentences so that you can work while waiting on them problem getting resolved at the NKE headquarters... But that is also ugly!
Canne is offline   Reply With Quote
Old 04-07-2017, 06:41   #305
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: Tactics Plugin

Welcome to the XDR hell



Hubert
bcn is offline   Reply With Quote
Old 04-07-2017, 07:06   #306
Registered User
 
Canne's Avatar

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

Thanks, Hubert! I reckon that one cannot check Out
Petri
Canne is offline   Reply With Quote
Old 04-07-2017, 07:13   #307
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: Tactics Plugin

Difficult to resolve within O, plug-in or core.
As you said: not sufficient data in the XDR sentence to discriminate well.
A NMEA0183 issue with the proprietary XDR sentences. A dead road.

Here SignalK might come handy perhaps, allowing for virtual instruments.

Hubert
bcn is offline   Reply With Quote
Old 04-07-2017, 07:55   #308
Registered User
 
Canne's Avatar

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

Thanks for the SignalK tip! Un bol d'air after some past and present NMEA hell just to read about how things could be what comes to the data model. But for the accuracy of information, FrouFrou is right, only the data producer (here NKE sensor) can resolve the problem by providing unique and accurate information. If not, SignalK would face the same problems with the multiple data sources, perhaps with inaccurate data.
Click image for larger version

Name:	SignalK_XDR_cannot_be_resolved.JPG
Views:	94
Size:	51.6 KB
ID:	151216
But it would be a great step forward if one could purchase a NMEA/SeaLink/whatsover multiplexer working as SignalK server! It would not be trivial to make O to interface with it - I have noticed how the NMEA-knowledge is deeply rooted both in the core and in plugins. That's why, back to the real life, I use the filtering functions of my MiniPlex to give O only the data I trust (eg. like only one GPS source at a time) and which I know O can digest, and I recommend FrouFrou to do the same
Canne is offline   Reply With Quote
Old 04-07-2017, 08:02   #309
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,796
Re: Tactics Plugin

Do you know the OpenPlotter project?
OpenCPN plus multiplexing and sensor integration on RasPI..
SK server included. Provision for NMEA0183 and N2K.
Home | Sailoog
bcn is offline   Reply With Quote
Old 04-07-2017, 08:30   #310
Registered User
 
Canne's Avatar

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

Quote:
Originally Posted by bcn View Post
Do you know the OpenPlotter project?<snip>
Yes, I've heard about them. One day, not far from now, I will strip down my boat's factory installed mess, keep only the sensors and built everything following my own vision about what is a maintainable, high availability, distributed navigation system. OpenPlotter type of device certainly makes a lot of sense in such a system: one could afford to have two of them, installed on two separate data interconnect bus and with separate power supplies, thus providing a fully redundant system. Oops, we're now a bit off-topic from the NKE-world, sorry!
Canne is offline   Reply With Quote
Old 04-07-2017, 09:03   #311
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Tactics Plugin

Petri,

I merged your pull request #15

I'm not sure if I fully understood, but if you have 2 different inputs for the 2 XDRs you can easily drop the wrong one in the Miniplex.
I'd try to get rid of the wrong XDR sentence in the Shipmodule Miniplex ...
I do the same with a second GPS source in my Miniplex 2 ...

BR,

Thomas
tom_BigSpeedy is offline   Reply With Quote
Old 04-07-2017, 09:17   #312
Registered User
 
Canne's Avatar

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

Thanks, Thomas! I'll test your next version with pleasure but it can wait now. Hope you can do some sailing, too.
Quote:
Originally Posted by tom_BigSpeedy View Post
..I'd try to get rid of the wrong XDR sentence in the Shipmodule Miniplex ...
That was my also my suggestion above. Like you I am using the MiniPlex filtering functions in order not to disturb the old and faithful O with confusing NMEA sentences!
Canne is offline   Reply With Quote
Old 04-07-2017, 11:59   #313
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Tactics Plugin

Hi,
patch 6 uploaded to Ricks file thingie.
Sorry, for being short, I have bad internet connections ...

Since patch 5 there's more NAN value fixes ...

BR,

Thomas
tom_BigSpeedy is offline   Reply With Quote
Old 04-07-2017, 12:28   #314
Registered User
 
Canne's Avatar

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

Hello, I have tested successufully patch 6 installer, downloaded using these instructions. Works both with my own old recordings and with FrouFrou's use case XDR-data, either ROLL or Heel Angle (but not both). I recommend FrouFrou to override my temporary version with the production level patch from Thomas. Thank you and good sailing, both of you! (I cannot wait the weekend to try it out again in real...)
Best regards,
Petri
Canne is offline   Reply With Quote
Old 04-07-2017, 23:59   #315
Registered User

Join Date: Dec 2011
Boat: MC-Tec, Akilaria 950
Posts: 242
Re: Tactics Plugin

Use patch 7 please.
Thanks to Petris comments on github I fixed some uninitialized variables in "polar compass" (although I don't see any "long numbers" here").
BR,
Thomas
tom_BigSpeedy 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 19:16.


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.