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 14-02-2017, 16: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
solosail is offline   Reply With Quote
Old 17-02-2017, 07:19   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
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
Hakan is offline   Reply With Quote
Old 21-02-2017, 10:12   #3
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Heel and Pitch

My free autopilot relays the mpu9255 heel pitch and compass heading to opencpn. It reads autopilot route commands and steers to course...

https://drive.google.com/file/d/0B5E...9YNlhlaFU/view
seandepagnier is offline   Reply With Quote
Old 22-02-2017, 04:44   #4
Registered User

Join Date: Aug 2010
Posts: 298
Re: Heel and Pitch

Quote:
Originally Posted by boat_alexandra View Post
My free autopilot relays the mpu9255 heel pitch and compass heading to opencpn. It reads autopilot route commands and steers to course...

https://drive.google.com/file/d/0B5E...9YNlhlaFU/view
The plant aboard, great
George64 is offline   Reply With Quote
Old 28-02-2017, 11:15   #5
Registered User

Join Date: Nov 2016
Posts: 33
Re: Heel and Pitch

Quote:
Originally Posted by Hakan View Post
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?
solosail is offline   Reply With Quote
Old 28-02-2017, 12:43   #6
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
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
Hakan is offline   Reply With Quote
Old 01-03-2017, 15:39   #7
Registered User

Join Date: Nov 2016
Posts: 33
Re: Heel and Pitch

Quote:
Originally Posted by Hakan View Post
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!
solosail is offline   Reply With Quote
Old 01-03-2017, 17:45   #8
Registered User

Join Date: Nov 2016
Posts: 33
Re: Heel and Pitch

Quote:
Originally Posted by Hakan View Post
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!
solosail is offline   Reply With Quote
Old 02-03-2017, 23:41   #9
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
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
Hakan is offline   Reply With Quote
Old 03-03-2017, 02:28   #10
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,740
Re: Heel and Pitch

"The inspector" is a main component of OpenPlotter to facilitate the connection of different data sources.
bcn is online now   Reply With Quote
Old 03-03-2017, 03:00   #11
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,147
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
Hakan is offline   Reply With Quote
Old 08-03-2017, 07:49   #12
Registered User

Join Date: Nov 2016
Posts: 33
Re: Heel and Pitch

Quote:
Originally Posted by Hakan View Post
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!?
solosail is offline   Reply With Quote
Old 17-05-2017, 19: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
vapochilled is offline   Reply With Quote
Old 18-05-2017, 00:06   #14
Moo
Registered User

Join Date: Mar 2017
Posts: 804
Re: Heel and Pitch

Quote:
Originally Posted by vapochilled View Post
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
Click image for larger version

Name:	i2c.jpg
Views:	364
Size:	85.6 KB
ID:	147998
You edit each sensor by double clicking it and setting its Signal K sentence, rate and offset.

Go to Tools >> NMEA 0183 generator
Click image for larger version

Name:	<a title=generator.jpg Views: 361 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!
Click image for larger version

Name:	roll.jpg
Views:	295
Size:	76.6 KB
ID:	148000

Do the same me for each axis and your good.
Click image for larger version

Name:	ocpn.jpg
Views:	236
Size:	103.3 KB
ID:	148001
Moo is offline   Reply With Quote
Old 18-05-2017, 03:20   #15
Senior Cruiser
 
GordMay's Avatar

Cruisers Forum Supporter

Join Date: Mar 2003
Location: Thunder Bay, Ontario - 48-29N x 89-20W
Boat: (Cruiser Living On Dirt)
Posts: 49,438
Images: 241
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?"



GordMay is offline   Reply With Quote
Reply

Tags
pitch


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
At what size, style and sail plan does heel become manageable? Sundowner Porto Monohull Sailboats 23 21-03-2012 13:11
Want To Buy: Bowsprit Heel Socket and Kranze Iron clausont Classifieds Archive 16 20-09-2010 08:32
Attaching the mast heel to the keel step Weyalan Construction, Maintenance & Refit 0 14-01-2008 17:08
moving traveler to reduce heel Doghouse General Sailing Forum 5 29-05-2006 07:00
Heel as an indicator Stede Monohull Sailboats 26 12-10-2003 16:57

Advertise Here


All times are GMT -7. The time now is 05:52.


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.