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 03-02-2017, 18:01   #1
Registered User

Join Date: Nov 2016
Posts: 33
Mag Heading?

I have successfully installed OP. Added GPS and AIS. Now just added (and calibrated) the InvenSence MPU9250 IMU. Judging by the graphic it seems to be quite stable.

Rpi 3b
OP v8.0
GPS
AIS
MPU9250

My question is how do I get the Mag Heading to show on the vessel icon and the dashboard???
Thanks for any insight!
solosail is offline   Reply With Quote
Old 03-02-2017, 18:31   #2
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: Mag Heading?

Solosail...
First of all make sure to enable the WMM plugin. That will give you true heading and the vessel angle will be correct.
In Tools-options-ship set the prediction line, see:https://www.opencpn.org/wiki/dokuwik...ions_setting&s[]=heading#the_ships
There are more in Tools menu about heading. Read more in the wiki while there.

There are several instruments in Dashboard about heading, true and magn.
Of course all depends on correct NMEA sentences enter into OCPN
Håkan
Hakan is offline   Reply With Quote
Old 03-02-2017, 19:58   #3
Registered User

Join Date: Nov 2016
Posts: 33
Re: Mag Heading?

how do I get OP to enter NMEA sentences from I2C sensors?
solosail is offline   Reply With Quote
Old 04-02-2017, 00:32   #4
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: Mag Heading?

Solo...
In fact it's the opposite. OCPN is receiving serial string messages coded in NMEA 0183 format from any gadget. Your gadget has to send the heading in a appropriate NMEA 0183 format to OCPN.
There are many good examples out there how to use your compass board. Actually I did it once using the Arduino Uno but another similar circuit. http://www.cruisersforum.com/forums/...ml#post1495725
I think you can get your Rpi to talk Ic2 but that's another forum. Google will be your friend here I suppose.
Good luck
Håkan
Hakan is offline   Reply With Quote
Old 04-02-2017, 04:07   #5
bcn
Registered User

Join Date: May 2011
Location: underway whenever possible
Boat: Rangeboat 39
Posts: 4,734
Re: Mag Heading?

Solo..

you are using OpenPlotter, aren't you?
The people at the OpenPlotter forum can help you for sure to get the data from the IMU read. And fed into OCPN.
bcn is offline   Reply With Quote
Old 04-02-2017, 06:40   #6
Registered User

Join Date: Aug 2009
Location: oriental
Boat: crowther trimaran 33
Posts: 4,417
Re: Mag Heading?

Quote:
Originally Posted by solosail View Post
I have successfully installed OP. Added GPS and AIS. Now just added (and calibrated) the InvenSence MPU9250 IMU. Judging by the graphic it seems to be quite stable.

Rpi 3b
OP v8.0
GPS
AIS
MPU9250

My question is how do I get the Mag Heading to show on the vessel icon and the dashboard???
Thanks for any insight!
I have MPU9255. My free autopilot reads from this (and other) sensors and performs fusion and automatic calibration. The autopilot server has a simple client daemon that translates the signalk from the autopilot into nmea for opencpn.

This feeds opencpn with pitch and roll, and magnetic heading data, and receives autopilot route commands.

The autopilot also can receive nmea wind, and relay it to opencpn. The autopilot runs gpsd as well, so steering to compass/gps/wind, or fusion of these is possible.



It is also maybe possible to use openplotter if all you want is to display magnetic heading in opencpn from i2c sensors, but I don't think they have the automatic calibration I have, so the result would be worse.

Furthermore, you would never want the autopilot to read the data from openplotter instead of directly, as this would add latency in the gyro->rudder feedback loop.
seandepagnier is offline   Reply With Quote
Old 04-02-2017, 06:42   #7
Registered User

Join Date: Nov 2012
Location: Orust Sweden
Boat: Najad 34
Posts: 4,139
Re: Mag Heading?

Solo...
I'm old fashion. Listen to bcn! OpenPlotter has the tools for you. Cool! https://www.gitbook.com/book/sailoog...tation/details
Håkan

Edit: Of course boat_a.......has it as well. (Posted simultaneous)
Hakan is offline   Reply With Quote
Old 04-02-2017, 08:00   #8
Registered User

Join Date: Nov 2016
Posts: 33
Re: Mag Heading?

Quote:
Originally Posted by bcn View Post
Solo..

you are using OpenPlotter, aren't you?
The people at the OpenPlotter forum can help you for sure to get the data from the IMU read. And fed into OCPN.
THANKS TO ALL!!!
Problem solved (with a reboot)
I didn't realise there was a separate forum for OP. Thanks!
solosail is offline   Reply With Quote
Reply

Tags
head

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 Mag put out decent free mag WWV Multihull Sailboats 1 16-12-2016 02:12
Mag Light Rechargeable Flashlight schoonerdog Product or Service Reviews & Evaluations 15 11-10-2011 19:41
Mag Refers to CF and Zeehag cal40john General Sailing Forum 27 18-04-2011 18:31
Free Australian Cruising Mag-E-zine Bob Norson The Library 0 04-12-2005 20:18

Advertise Here


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


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.