|
|
14-02-2017, 17:09
|
#1
|
Registered User
Join Date: Nov 2016
Posts: 33
|
Heel and Pitch
I added the MPU 9250 i2C sensor to openplotter and it works well. (very accurate) Compass shows up on dashboard (once I added it) but heel and pitch will not? Both show up via the inspector though?
Any ideas.
Openplotter v8 Rpi3b
|
|
|
17-02-2017, 08:19
|
#2
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,372
|
Re: Heel and Pitch
solosail...
OCPN dashboard reads Heel and Pitch when transmitted in the NMEA 0183 XDR sentence.
The XDR looks like this:
Code:
/*
** XDR - Transducer Measurement
**
** 1 2 3 4 n
** | | | | |
** $--XDR,a,x.x,a,c--c, ..... *hh<CR><LF>
**
** Field Number:
** 1) Transducer Type
** 2) Measurement Data
** 3) Unit of Measurement, Celcius
** 4) Name of transducer
** ...
** n) Checksum
** There may be any number of quadruplets like this, each describing a sensor. The last field will be a checksum as usual.
If 1) Type is "A" and
4) Name is "PTCH" or
4) Name is "ROLL" corresponding
2) data (degrees) will be shown in the Dashboard instruments Pitch and/or Heel.
Positive Pitch is Nose up. Positive Roll is to Starboard.
e.g. $IIXDR,A,5.0,,PTCH,A,12.0,,ROLL,*hh<CR><LF>
Will give you 5 degr pitch and 12 degr. heel.
Håkan
|
|
|
22-02-2017, 05:44
|
#4
|
Registered User
Join Date: Aug 2010
Posts: 298
|
Re: Heel and Pitch
Quote:
Originally Posted by boat_alexandra
|
The plant aboard, great
|
|
|
28-02-2017, 12:15
|
#5
|
Registered User
Join Date: Nov 2016
Posts: 33
|
Re: Heel and Pitch
Quote:
Originally Posted by Hakan
solosail...
OCPN dashboard reads Heel and Pitch when transmitted in the NMEA 0183 XDR sentence.
The XDR looks like this:
Code:
/*
** XDR - Transducer Measurement
**
** 1 2 3 4 n
** | | | | |
** $--XDR,a,x.x,a,c--c, ..... *hh<CR><LF>
**
** Field Number:
** 1) Transducer Type
** 2) Measurement Data
** 3) Unit of Measurement, Celcius
** 4) Name of transducer
** ...
** n) Checksum
** There may be any number of quadruplets like this, each describing a sensor. The last field will be a checksum as usual.
If 1) Type is "A" and
4) Name is "PTCH" or
4) Name is "ROLL" corresponding
2) data (degrees) will be shown in the Dashboard instruments Pitch and/or Heel.
Positive Pitch is Nose up. Positive Roll is to Starboard.
e.g. $IIXDR,A,5.0,,PTCH,A,12.0,,ROLL,*hh<CR><LF>
Will give you 5 degr pitch and 12 degr. heel.
Håkan
|
When viewing the data stream via the inspector window it shows up as:
$OSXDR,A,2.1,D,I2CX,A-62.7,D,I2CY*4E
There is not a "PTCH" or "ROLL" label. However the inspector window interprets it correctly as Heel and Pitch? BUT NOTHING SHOWS UP IN THE DASH BOARD... other than heading?
|
|
|
28-02-2017, 13:43
|
#6
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,372
|
Re: Heel and Pitch
solosail..
"BUT NOTHING SHOWS UP IN THE DASH BOARD." No, of course, Dashboard interprets as of my description above so your message is not understood.
The XDR sentence is not official stated in more than the structure. What's in the data fields is up to each and every proprietor. Why Dashboard is set up as it is I don't remember but may be adapted to Signal-K? Anyone else to fill in here?
Håkan
|
|
|
01-03-2017, 16:39
|
#7
|
Registered User
Join Date: Nov 2016
Posts: 33
|
Re: Heel and Pitch
Quote:
Originally Posted by Hakan
solosail..
"BUT NOTHING SHOWS UP IN THE DASH BOARD." No, of course, Dashboard interprets as of my description above so your message is not understood.
The XDR sentence is not official stated in more than the structure. What's in the data fields is up to each and every proprietor. Why Dashboard is set up as it is I don't remember but may be adapted to Signal-K? Anyone else to fill in here?
Håkan
|
Humm... I wonder why the programer who developed the Inspector window (which properly recognises pitch and heel) but chose not to use the same format allowance for the dashboard? Quite frustrating!
|
|
|
01-03-2017, 18:45
|
#8
|
Registered User
Join Date: Nov 2016
Posts: 33
|
Re: Heel and Pitch
Quote:
Originally Posted by Hakan
solosail..
"BUT NOTHING SHOWS UP IN THE DASH BOARD." No, of course, Dashboard interprets as of my description above so your message is not understood.
The XDR sentence is not official stated in more than the structure. What's in the data fields is up to each and every proprietor. Why Dashboard is set up as it is I don't remember but may be adapted to Signal-K? Anyone else to fill in here?
Håkan
|
Can you recommend a specific (source) sensor (that works!!!) for mag heading pitch heel temp and pressure? THANKS!
|
|
|
03-03-2017, 00:41
|
#9
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,372
|
Re: Heel and Pitch
Solosail
No, sorry I've never bought or checked market for that. I've my home built compass unit out of a compass circuit and a Arduino sending the NMEA messages to my system. The circuit also submits heel and pitch and I adapted my code to present OCPN.
But someone did the Dashboard code and may know?
BTW, excuse my limitations but how do I understand "inspector window"? Could you describe it more?
Håkan
|
|
|
03-03-2017, 03:28
|
#10
|
Registered User
Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,886
|
Re: Heel and Pitch
"The inspector" is a main component of OpenPlotter to facilitate the connection of different data sources.
|
|
|
03-03-2017, 04:00
|
#11
|
Registered User
Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,372
|
Re: Heel and Pitch
OK-thanks
But - if you have Openplotter isn't it possible to use a tool there to transform the Heel/Pitch messages you've got there to a format suitable for Dashboard?
I have not used Openplotter myself but I think I've read something about that.
Håkan
|
|
|
08-03-2017, 08:49
|
#12
|
Registered User
Join Date: Nov 2016
Posts: 33
|
Re: Heel and Pitch
Quote:
Originally Posted by Hakan
Solosail
No, sorry I've never bought or checked market for that. I've my home built compass unit out of a compass circuit and a Arduino sending the NMEA messages to my system. The circuit also submits heel and pitch and I adapted my code to present OCPN.
But someone did the Dashboard code and may know?
BTW, excuse my limitations but how do I understand "inspector window"? Could you describe it more?
Håkan
|
Thanks Hakan!
Here is a look at the Inspector window... note that it recognises heel and pitch!?
|
|
|
17-05-2017, 20:30
|
#13
|
Registered User
Join Date: May 2017
Posts: 8
|
Re: Heel and Pitch
exactly what I was looking for, glad I'm not the only one getting frustrated.
I'm running open plotter on an RPI3, inspector see's heel and pitch, and compass, but for the life of me I can't get it into opencpn!
I will say, I'm completely new to all this, but really want to understand the RPI and how opencpn "talks" to the outside world.
But if anyone can shed any light on how to make this work....beers on me
|
|
|
18-05-2017, 01:06
|
#14
|
Registered User
Join Date: Mar 2017
Posts: 804
|
Re: Heel and Pitch
Quote:
Originally Posted by vapochilled
exactly what I was looking for, glad I'm not the only one getting frustrated.
I'm running open plotter on an RPI3, inspector see's heel and pitch, and compass, but for the life of me I can't get it into opencpn!
I will say, I'm completely new to all this, but really want to understand the RPI and how opencpn "talks" to the outside world.
But if anyone can shed any light on how to make this work....beers on me
|
Here goes. I got this running using OpenPlotter the other day.
This uses the latest Openplotter 0.11.6a I think it is.
Here is my I2C page
You edit each sensor by double clicking it and setting its Signal K sentence, rate and offset.
Go to Tools >> NMEA 0183 generator
generator.jpg
Views: 401
Size: 72.2 KB
ID: 147999" style="margin: 2px" />
Click Add and make and entry like this one for Roll.. not the units are from signal K are funny and need to multiplied by 100!
Do the same me for each axis and your good.
|
|
|
18-05-2017, 04:20
|
#15
|
Senior Cruiser
Join Date: Mar 2003
Location: Thunder Bay, Ontario - 48-29N x 89-20W
Boat: (Cruiser Living On Dirt)
Posts: 51,320
|
Re: Heel and Pitch
Greetings and welcome aboard the CF, vapochilled.
__________________
Gord May
"If you didn't have the time or money to do it right in the first place, when will you get the time/$ to fix it?"
|
|
|
|
|
Thread Tools |
Search this Thread |
|
|
Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
Advertise Here
Recent Discussions |
|
|
|
|
|
|
|
|
|
|
|
|
Vendor Spotlight |
|
|
|
|
|