Cruisers Forum
 

Go Back   Cruisers & Sailing Forums > Seamanship, Navigation & Boat Handling > OpenCPN
Cruiser Wiki Click Here to Login
Register Vendors FAQ Community Calendar Today's Posts Log in

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 22-06-2023, 03:30   #1
Registered User

Join Date: Sep 2020
Posts: 11
Which NMEA sentence for Heel instrument

I'm sure I'm missing something in the documentation here, but I promise I've tried to find it!

I have an Orca Core which outputs outputs pitch, roll, and yaw via NMEA. I can see OpenCPN is receiving the sentences, but the Heel instrumnet doesn't seem to display a value.

Can anyone point me to the docs that describe what data OpenCPN is expecting for the Heel instrument to work please?

Thanks!
MattStibbs is offline   Reply With Quote
Old 22-06-2023, 23:19   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Which NMEA sentence for Heel instrument

OCPN Dashboard Heel instrument is looking for:
NMEA0183; $xxXDR. Type: "A", Name: "ROLL", Data: +-XX
NMEA2000; PGN 127257
SignalK: path: "navigation.attitude" , value: "roll"
Hakan is offline   Reply With Quote
Old 23-06-2023, 06:01   #3
Registered User

Join Date: Mar 2019
Location: Live aboard in Simonstown (Cape Town) - now Grenada having crossed the Atlantic.
Boat: 1986 Bruce Roberts 45 raised saloon
Posts: 374
Re: Which NMEA sentence for Heel instrument

My NMEA compass puts out an XDR sentence with "AS08_ROLL" and "AS08_PITCH" which OpenCPN didn't understand.

I used NmeaConverter_PI plugin to create a new sentence with the correct descriptor and it works fine.

You may have a similar issue.
markcouz is offline   Reply With Quote
Old 23-06-2023, 14:20   #4
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,634
Images: 2
Re: Which NMEA sentence for Heel instrument

Markcouz
Can you provide us with the formula you used. As an example.
rgleason is offline   Reply With Quote
Old 24-06-2023, 07:41   #5
Registered User

Join Date: Mar 2019
Location: Live aboard in Simonstown (Cape Town) - now Grenada having crossed the Atlantic.
Boat: 1986 Bruce Roberts 45 raised saloon
Posts: 374
Re: Which NMEA sentence for Heel instrument

Quote:
Originally Posted by rgleason View Post
Markcouz
Can you provide us with the formula you used. As an example.
Here are a couple of screenshots...

The 1st pic is my NMEA steam with the original XDR sentence and my modified sentences highlighted. The 2nd pic is my formulas in NmeaConverter_pi.

A couple of notes...

1. In the manual explaining the use of formulas it seems to show a space after each comma, I put these into the original formulas but had to delete them to work correctly.

2. I created separate sentences for PITCH and ROLL, but this could be a single sentence if preferred.

3. There is some maths in my formulas (+5 for PITCH and +1.5 for ROLL) which I added for calibration of my output, others may require different calibration or none at all.Click image for larger version

Name:	IMG-20230624-WA0001.jpg
Views:	66
Size:	61.0 KB
ID:	277229Click image for larger version

Name:	IMG-20230624-WA0000.jpg
Views:	66
Size:	23.2 KB
ID:	277230
markcouz is offline   Reply With Quote
Old 24-06-2023, 07:46   #6
Registered User

Join Date: Mar 2019
Location: Live aboard in Simonstown (Cape Town) - now Grenada having crossed the Atlantic.
Boat: 1986 Bruce Roberts 45 raised saloon
Posts: 374
Re: Which NMEA sentence for Heel instrument

...and a pic of the dashboard showing the output.Click image for larger version

Name:	IMG-20230624-WA0002.jpg
Views:	61
Size:	38.5 KB
ID:	277231
markcouz is offline   Reply With Quote
Old 24-06-2023, 10:56   #7
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 245
Images: 3
Re: Which NMEA sentence for Heel instrument

@markouz

Your formula only works if and only if you have only one XDR sentence as input...
It is therefore not suitable...
Schnapsy is offline   Reply With Quote
Old 24-06-2023, 18:26   #8
Registered User

Join Date: Mar 2019
Location: Live aboard in Simonstown (Cape Town) - now Grenada having crossed the Atlantic.
Boat: 1986 Bruce Roberts 45 raised saloon
Posts: 374
Re: Which NMEA sentence for Heel instrument

Works for me, by all means make corrections and post the suitable formula.
markcouz is offline   Reply With Quote
Old 25-06-2023, 01:02   #9
Registered User
 
Schnapsy's Avatar

Join Date: Jan 2018
Location: Dunkirk, France
Boat: ETAP 30i
Posts: 245
Images: 3
Re: Which NMEA sentence for Heel instrument

@markcouz
Re-read what I wrote..
I know this formula works, I had also written and tested it several months ago.
The problem lies in the IIXDR header.

Personally, in addition to Quark-Elec, I also have other sentences that start with IIXDR, such as "$IIXDR,P,1.02481,B,Barometer*0D" or "$IIXDR,U,12.56,V ,BATTERY1*1F", etc...
And in this case, the transcription by Nmeaconverter generates errors.

I had bought the Quark-Elec QK-AS08 which is a stupid instrument since its nmea sentences are unusable as it is...
After trying - in vain - to use Nmeaconverter, I wrote a small arduino program which translates the Quark-Elec proprietary sentence into a standard nmea sentence.
But of course, if you only have one IIXDR source, using nmeaconverter is the easiest way.
Schnapsy is offline   Reply With Quote
Old 25-06-2023, 04:54   #10
Registered User

Join Date: Mar 2011
Posts: 651
Re: Which NMEA sentence for Heel instrument

What would be useful is for NMEA Converter to have a regular expression parser and an equivalence function.

Thst way it would be able to differentiate sentences based on field values.
stevead is offline   Reply With Quote
Old 25-06-2023, 09:30   #11
Registered User

Join Date: Mar 2019
Location: Live aboard in Simonstown (Cape Town) - now Grenada having crossed the Atlantic.
Boat: 1986 Bruce Roberts 45 raised saloon
Posts: 374
Re: Which NMEA sentence for Heel instrument

Quote:
Originally Posted by Schnapsy View Post
@markcouz
Re-read what I wrote..
I know this formula works, I had also written and tested it several months ago.
The problem lies in the IIXDR header.

Personally, in addition to Quark-Elec, I also have other sentences that start with IIXDR, such as "$IIXDR,P,1.02481,B,Barometer*0D" or "$IIXDR,U,12.56,V ,BATTERY1*1F", etc...
And in this case, the transcription by Nmeaconverter generates errors.

I had bought the Quark-Elec QK-AS08 which is a stupid instrument since its nmea sentences are unusable as it is...
After trying - in vain - to use Nmeaconverter, I wrote a small arduino program which translates the Quark-Elec proprietary sentence into a standard nmea sentence.
But of course, if you only have one IIXDR source, using nmeaconverter is the easiest way.
I understand, if I come across the issue in future I will look you up and ask for the arduino code.
markcouz is offline   Reply With Quote
Old 25-06-2023, 09:32   #12
Registered User

Join Date: Mar 2019
Location: Live aboard in Simonstown (Cape Town) - now Grenada having crossed the Atlantic.
Boat: 1986 Bruce Roberts 45 raised saloon
Posts: 374
Re: Which NMEA sentence for Heel instrument

Quote:
Originally Posted by stevead View Post
What would be useful is for NMEA Converter to have a regular expression parser and an equivalence function.



Thst way it would be able to differentiate sentences based on field values.
Add my vote for a feature request.
markcouz is offline   Reply With Quote
Old 30-06-2023, 11:36   #13
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,150
Re: Which NMEA sentence for Heel instrument

One obvious patch for OCPN Dashboard would be to look for a XDR that {Contains("PITCH")} and {Contains("ROLL")} instead of specifically "PITCH" and "ROLL" ?
I'll se if that change may be accepted for next OCPN release.
Hakan is offline   Reply With Quote
Reply

Tags
enc, men, nmea, rum


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
NMEA sentence for Instrument Panel Barometer? AedanC OpenCPN 23 08-07-2017 11:17
Radio Ocean O.Chart 7 NMEA 0183 Sentence moteje Marine Electronics 0 23-09-2013 04:13
NMEA WPL sentence support? s/v Jedi OpenCPN 9 04-03-2013 04:29
OpenCPN and NMEA sentence dmoore OpenCPN 8 21-12-2012 12:47
MOB NMEA sentence Cavalier Marine Electronics 13 27-08-2012 10:12

Advertise Here


All times are GMT -7. The time now is 15:45.


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.