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 13-06-2013, 09:52   #211
Registered User

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

No it isn't anything special, never claimed it was. Just thought it would be nice to share the combined hardware you outlined with software modified to output a nmea stream all in one place.
asinc is offline   Reply With Quote
Old 14-06-2013, 00:35   #212
Registered User

Join Date: Apr 2012
Location: Port Steven, NSW, Australia
Boat: Van der Stadt Samoa 48
Posts: 142
Re: Plugin: DashBoard

I find it very interesting with all the information we can get ind and out of OpenCPN now, and hopefully in the future.

I believe that it is important to make every plugin focused and easy to comprehend, and i would therefore suggest that we keep curves out of the dashbord plugin, and make a seperate plugin as I surgeste in

http://www.cruisersforum.com/forums/...ml#post1161795

Lars
Taarnskov is offline   Reply With Quote
Old 14-06-2013, 03:32   #213
Registered User
 
rgleason's Avatar

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

Lars, Its a good idea, perhaps you should put it in Flyspray. Have you registered? Its quite easy. Maybe even leave a link to your post. OpenCPN::Tracker All Projects: Tasklist
rgleason is offline   Reply With Quote
Old 14-06-2013, 04:26   #214
Registered User

Join Date: Apr 2012
Location: Port Steven, NSW, Australia
Boat: Van der Stadt Samoa 48
Posts: 142
Re: Plugin: DashBoard

I am not registered in Flyspray, but I will see if i can do it during the weekend.

Lars
Taarnskov is offline   Reply With Quote
Old 14-06-2013, 12:09   #215
Registered User

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

Hi,

I try to play with "wind history" and it works perfect on Windows 7,
but if I try to do that on Ubuntu 12.04.2 LTS it doesn't.
I used on both system the same OpenCPN 3.3.604 and the same VDR data.
Have anybody idea what is wrong?

Kubek
Attached Thumbnails
Click image for larger version

Name:	Wind_History_ubuntu_12.04.2_LTS.png
Views:	243
Size:	215.5 KB
ID:	62538   Click image for larger version

Name:	Wind_History_windows_7.png
Views:	168
Size:	227.5 KB
ID:	62539  

kubek is offline   Reply With Quote
Old 15-06-2013, 08:02   #216
Registered User

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

Quote:
Originally Posted by Homberger View Post
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 );
Andreas...

Would you mind rebasing your modifications on the current code from the master? Actually the best would be a pull request on github, but if you for some reason don't want to use it, just send the output of
Code:
git diff
Thank you

Pavel
nohal is offline   Reply With Quote
Old 24-06-2013, 07:42   #217
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: Plugin: DashBoard

Quote:
Originally Posted by kubek View Post
Hi,

I try to play with "wind history" and it works perfect on Windows 7,
but if I try to do that on Ubuntu 12.04.2 LTS it doesn't.
I used on both system the same OpenCPN 3.3.604 and the same VDR data.
Have anybody idea what is wrong?

Kubek
How did you transfer the file between both systems? It may have changed line endings. NMEA expects CR+LF aka \r\n
Apart from that, the file should play just fine.

Please check and report.

Thanks,
Jean-Eudes
SethDart is offline   Reply With Quote
Old 24-06-2013, 08:50   #218
Registered User

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

Hi,

As you can see on both screenshots (windows & linux) on dashbord with "True Wind Dir & Speed" data from VDR file are good. AIS info on both works without any problem. It looks like we have problem only Wind History dashboard on linux version.

Kubek
kubek is offline   Reply With Quote
Old 24-06-2013, 10:17   #219
Registered User

Join Date: May 2013
Location: Mystic
Boat: St. Francis 44 mkII
Posts: 361
Re: Plugin: DashBoard

Hi,

while it is not a bad idea to have the ability to extrapolate true wind from apparent, i have the st60 on my boat and true wind/angle/direction/speed is available on the graphic display.
I also have a seatalk>nmea0183 adapter on my boat and to me it seems that seatalk does transmit true wind angle, direction and speed. By looking at the NMEA debug window in the options I see two MWV sentences, one with included "T" and one with "R".. which i would infer to be true and relative.
i am at the dock so cannot categorically confirm this at present (as both sentences have same data), but the structure seems to be there.

regards, Ian

Quote:
Originally Posted by Homberger View Post
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 );
Mystic38 is offline   Reply With Quote
Old 25-06-2013, 02:58   #220
Registered User

Join Date: Mar 2010
Location: Normandy, France
Boat: Flush Poker, 8.25m (Point Barre)
Posts: 340
Re: Plugin: DashBoard

Quote:
Originally Posted by kubek View Post
Hi,

As you can see on both screenshots (windows & linux) on dashbord with "True Wind Dir & Speed" data from VDR file are good. AIS info on both works without any problem. It looks like we have problem only Wind History dashboard on linux version.

Kubek
OK, sorry, I misunderstood your problem. Sorry for that. Can you send me your VDR sample file so I can test and fix the problem.

Thanks,
Jean-Eudes
SethDart is offline   Reply With Quote
Old 25-06-2013, 04:54   #221
Registered User

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

Hi Pavel,

If I find the time to get familar with git, I will do the changes for TWS calculation in the latest code.

Regards,

Andreas
Homberger is offline   Reply With Quote
Old 25-06-2013, 05:02   #222
Registered User

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

Hi Ian,

It did not work for me, but perhaps it's filtered from the SeaTalk bridge. I will check next Weekend.

If true wind informnation is available then the additional calculation is not necessary.


Regards,

Andreas

Quote:
Originally Posted by Mystic38 View Post
Hi,

while it is not a bad idea to have the ability to extrapolate true wind from apparent, i have the st60 on my boat and true wind/angle/direction/speed is available on the graphic display.
I also have a seatalk>nmea0183 adapter on my boat and to me it seems that seatalk does transmit true wind angle, direction and speed. By looking at the NMEA debug window in the options I see two MWV sentences, one with included "T" and one with "R".. which i would infer to be true and relative.
i am at the dock so cannot categorically confirm this at present (as both sentences have same data), but the structure seems to be there.

regards, Ian
Homberger is offline   Reply With Quote
Old 25-06-2013, 10:42   #223
Registered User

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

Quote:
Originally Posted by SethDart View Post
OK, sorry, I misunderstood your problem. Sorry for that. Can you send me your VDR sample file so I can test and fix the problem.

Thanks,
Jean-Eudes
Hi,

I attached VDR file. I got it from File Thingie 2.5.7.

Kubek
Attached Files
File Type: doc Rausch.7z.doc (97.3 KB, 73 views)
kubek is offline   Reply With Quote
Old 22-07-2013, 05:16   #224
Registered User

Join Date: Apr 2012
Location: Port Steven, NSW, Australia
Boat: Van der Stadt Samoa 48
Posts: 142
Re: Plugin: DashBoard

The true wind information, relative to North, is not present when using nmea information coming from the st60. I have the nmea information true and relative wind relative to the boat from the ST60, and the magnetic heading from a solid-state compas. It would be nice to have those information combined.

Lars
Taarnskov is offline   Reply With Quote
Old 22-07-2013, 05:19   #225
Registered User

Join Date: Apr 2012
Location: Port Steven, NSW, Australia
Boat: Van der Stadt Samoa 48
Posts: 142
Re: Plugin: DashBoard

I have found that i get no wind-speed information on the dashboard if my st60 is set to m/s, but if i set the st60 to the unit knot i get the information in the dashboard display. Can I do anything to change that.
Taarnskov 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 02:20.


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.