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 07-06-2013, 10:14   #196
Registered User

Join Date: Jun 2013
Posts: 14
Re: Plugin: DashBoard

Hi Pavel,

I found a missing "break" in "dashboard_pi.cpp". As a result "Sum Log" did not work (and possible other Impact on instruments).

---
case ID_DBP_I_VLW1: // Trip Log
instrument = new DashboardInstrument_Single( this, wxID_ANY,
getInstrumentCaption( id ), OCPN_DBP_STC_VLW1, _T("%2.1f") );
break;

case ID_DBP_I_VLW2: // Sum Log
instrument = new DashboardInstrument_Single( this, wxID_ANY,
getInstrumentCaption( id ), OCPN_DBP_STC_VLW2, _T("%2.1f") );

break;

----

Find attached a corrected Version (tested mit Nema Talker now).

Can you please update.

Regards,

Andreas
Attached Files
File Type: doc dashboard_pi.cpp.doc (93.0 KB, 97 views)
Homberger is offline   Reply With Quote
Old 07-06-2013, 10:19   #197
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Plugin: DashBoard

Andreas...
Fixed in git master. Thanks for re-checking the merge.

Pavel
nohal is offline   Reply With Quote
Old 09-06-2013, 04:34   #198
Registered User

Join Date: Jun 2013
Location: Netherlands
Boat: One off motor yacht 9m
Posts: 10
Re: Plugin: DashBoard

Hello all,

Just started using OpenCPN and I am liking it sofar.

The only problem I have is with the ships log speed, either OpenCPN or Dashboard does not recognize the NMEA sentence we have here onboard. The VBW sentence is unfortunately also not used.

Example of both sentences available on our network (UDP);

$VDVHW,,,,,17.2,N,31.9,K
$VDVBW,+17.20,-00.20,A,+16.60,+00.00,A,,,V,,,V*50

The VHW sentence is not visible in the OpenCPN NMEA debug window, the VBW sentence is visible.

I am thinking that it might have to do with the fact that only speed data is available in the VHW sentence.

So my questions are;
1 Is there a bug in the VHW sentence recognition/translation?
2 Is the VHW problem part of OpenCPN or the Dashboard?
3 Is the VBW sentence (not yet) implemented?

Thanks in advance,
Peter
PGDO is offline   Reply With Quote
Old 09-06-2013, 04:47   #199
cruiser

Join Date: Jun 2013
Posts: 14
Re: Plugin: DashBoard

Here I found some interesting add on for ocpn.



CSC | Kompass für OpenCPN und Chart Navigator

gindac is offline   Reply With Quote
Old 09-06-2013, 08:45   #200
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Plugin: DashBoard

Peter...
VBW is not implemented at all, will have a look at it if I don't forget (A feature request in OpenCPN::Tracker All Projects: Tasklist will sure make me not to).
VHW should work fine but in your case there might be a problem - just to make sure, do they (VHW sentences) really have no checksum in your NMEA stream (in that case they would of course be dropped as corrupted if you have CS checking on) or did you just not post it?

Pavel
nohal is offline   Reply With Quote
Old 09-06-2013, 09:52   #201
Registered User

Join Date: Jun 2013
Location: Netherlands
Boat: One off motor yacht 9m
Posts: 10
Re: Plugin: DashBoard

Quote:
Originally Posted by nohal View Post
VHW should work fine but in your case there might be a problem - just to make sure, do they (VHW sentences) really have no checksum in your NMEA stream (in that case they would of course be dropped as corrupted if you have CS checking on) or did you just not post it?

Pavel
Hi Pavel,

Thanks for the quick reaction.

I never noticed the missing checksum. I am sailing on a 300 meter container vessel and have a non-standard setup here. The NMEA data originates from a ships monitoring network and is transferred via two small programs I wrote from that network to the administration network to which my computer is connected.

Looks like the checksum is lost in between.

I have been using Maxsea in my cabin without problems, in fact Maxsea displays (unreadable) characters in the checkdata display behind the VHW sentence (and all others).

Upon logging the data stream with HyperTerminal and another program both show no checksum behind the VHW sentence only.

I will have a look at this next week.

Thanks again for pointing me in the right direction.

I do have the CS checking off in OpenCPN but the program apparently still needs characters in that position to be able to use the sentence.

I can send you an file with the NMEA stream if you are interested, just let me know how many minutes (hours) you need.

Regards,
Peter
PGDO is offline   Reply With Quote
Old 09-06-2013, 10:12   #202
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Plugin: DashBoard

Peter...
A couple of minutes would be fine, I'm getting kind of bored watching PacCupStart.txt all the time
Also if you guys have your radars tracking ARPA targets and producing TLL/TTM/RSD/OSD, I would be very interested...

Pavel
nohal is offline   Reply With Quote
Old 09-06-2013, 11:02   #203
Registered User

Join Date: Jun 2013
Location: Netherlands
Boat: One off motor yacht 9m
Posts: 10
Re: Plugin: DashBoard

Hi Pavel,

I made a file with a couple of minutes of the normal NMEA sentences with AIS data included. I am afraid that this will also be a boring file, currently sailing SW of Cabo Finisterre.

I never found the port used for the Arpa targets but will have another look at it coming week. Each instrument has two different UDP ports and some have an TCP port (Arpa is probably TCP).

Peter
Attached Files
File Type: doc Maersk Kampala NMEA data SW of Finisterre.zip.doc (35.7 KB, 73 views)
PGDO is offline   Reply With Quote
Old 10-06-2013, 00:56   #204
Registered User

Join Date: Jun 2013
Posts: 14
Re: Plugin: DashBoard

Dear All,

My ST 60 Instrument does not send True Wind Information. Only the Apparent Wind is sent on the SeaTalk bus.

To see both wind information in the Dashboard, I updated the sources (dashboard_pi.h and dashboard_pi.cpp, see MWV sentence handling below) to calculate the True Wind Speed & Angle from the Apparent Wind and Speed Through Water information.

@Pavel: I'm not sure if this Feature is of general interest, but feel free to add this to the beta release as a new feature.

I also added a new setting to the "opncpn.ini". With "CalculateTWfromAW=1" the calculation of TW is switched on. For convenient use, I also updated the Dashboard Preferences/Appearance dialog to control calculation.

Any feedback (suggestions/corrections) is welcome.

For users with strong currents it might be better to use SOG instead of STW. But this is currently not relevant for me.

Regards,

Andreas

This is the new code:

// Send calculated TWS (from AWS and STW)
if (g_iDashCalculateTWfromAW==1)
{
if (m_NMEA0183.Mwv.WindAngle < 180)
SendSentenceToAllInstruments( OCPN_DBP_STC_TWA,
90-(180/3.1415*atan((m_NMEA0183.Mwv.WindSpeed*cos(m_NMEA01 83.Mwv.WindAngle*3.1415/180)-m_NMEA0183.Vhw.Knots)/
(m_NMEA0183.Mwv.WindSpeed*sin(m_NMEA0183.Mwv.WindA ngle*3.1415/180)))), _T("Deg") );
else if (m_NMEA0183.Mwv.WindAngle > 180)
SendSentenceToAllInstruments( OCPN_DBP_STC_TWA,
360-(90-(180/3.1415*atan((m_NMEA0183.Mwv.WindSpeed*cos((180-(m_NMEA0183.Mwv.WindAngle-180))*3.1415/180)-m_NMEA0183.Vhw.Knots)/
(m_NMEA0183.Mwv.WindSpeed*sin((180-(m_NMEA0183.Mwv.WindAngle-180))*3.1415/180))))), _T("Deg") );
else
SendSentenceToAllInstruments( OCPN_DBP_STC_TWA,
180, _T("Deg") );

// 4) Wind Speed Units, K/M/N
SendSentenceToAllInstruments( OCPN_DBP_STC_TWS,
sqrt(pow((m_NMEA0183.Mwv.WindSpeed*cos(m_NMEA0183. Mwv.WindAngle*3.1415/180))-m_NMEA0183.Vhw.Knots, 2)+
pow(m_NMEA0183.Mwv.WindSpeed*sin(m_NMEA0183.Mwv.Wi ndAngle*3.1415/180), 2)),m_NMEA0183.Mwv.WindSpeedUnits );
Attached Files
File Type: doc Sources TW calculation from AW and STW.zip.doc (20.0 KB, 104 views)
Homberger is offline   Reply With Quote
Old 11-06-2013, 00:49   #205
Registered User

Join Date: Sep 2010
Posts: 153
Re: Plugin: DashBoard

Hi,

I am playing now with "wind history" in dashboard on ubuntu 12.04.2 LTS 32bit and OpenCPN 3.3.604 and I couldn't see anything. As you can see data from NMEA is there.

Kubek
Attached Thumbnails
Click image for larger version

Name:	Wind_history.png
Views:	260
Size:	132.2 KB
ID:	62312  
kubek is offline   Reply With Quote
Old 12-06-2013, 14:13   #206
Registered User

Join Date: Apr 2013
Location: Midland, Ontario, Canada
Boat: Mirage 30
Posts: 14
Re: Plugin: DashBoard

I have an electronic barometer on board that I made with an arduino and it is currently outputing temperature to the dashboard. It would be good if dashboard could also handle the air pressure measurement. I can make the sentence format any structure I want.

It would be really cool if the air pressure could be displayed in a graph similar to the wind history display. Anyone interrested in helping me add this?
asinc is offline   Reply With Quote
Old 12-06-2013, 15:38   #207
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Plugin: DashBoard

asinc...
Please make it standard compliant. The relevant part of IEC 61162-1 attached.

Pavel
Attached Thumbnails
Click image for larger version

Name:	Screenshot from 2013-06-12 17:34:42.png
Views:	252
Size:	108.2 KB
ID:	62391  
nohal is offline   Reply With Quote
Old 13-06-2013, 06:09   #208
Registered User

Join Date: Apr 2013
Location: Midland, Ontario, Canada
Boat: Mirage 30
Posts: 14
Re: Plugin: DashBoard

Quote:
Originally Posted by nohal View Post
asinc...
Please make it standard compliant. The relevant part of IEC 61162-1 attached.

Pavel
My current format is "$WIXDR,P,x.xxxx,B," from my sensor.

I believe this matches what you are proposing. I haven't any experience with modifying plugins and very little c++. I was hoping that someone else would know how to do what I propose. If I could get opencpn going with the barometric pressure I would consider posting the design for the sensor so anyone could make one.

Right now I have the sensor being displayed on a dedicated LCD with trends for past 1hr and 3hr but a graph on the laptop would be much nicer.
asinc is offline   Reply With Quote
Old 13-06-2013, 07:04   #209
Registered User

Join Date: Feb 2010
Location: Tierra del Fuego
Boat: Phantom 19
Posts: 6,212
Re: Plugin: DashBoard

asinc...
Make a feature request in the tracker. Eventually someone will find the time to implement it. And add the checksum to the sentence if it's not there yet.

Pavel
nohal is offline   Reply With Quote
Old 13-06-2013, 07:11   #210
Registered User
 
rgleason's Avatar

Join Date: Mar 2012
Location: Boston, MA
Boat: 1981 Bristol 32 Sloop
Posts: 17,636
Images: 2
Re: Plugin: DashBoard

asinc
Quote:
If I could get opencpn going with the barometric pressure I would consider posting the design for the sensor so anyone could make one.
FYI
https://www.google.com/search?q=ardu...ient=firefox-a

https://www.sparkfun.com/tutorials/253

BMP085 Sensor Tutorial

Arduino - BarometricPressureSensor

Is your design special?
rgleason is offline   Reply With Quote
Reply


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
OpenCPN PlugIn Development bdbcat OpenCPN 161 04-09-2019 12:50

Advertise Here


All times are GMT -7. The time now is 07:40.


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.