rgleason / watchdog_pi

watchdog plugin for opencpn
GNU General Public License v3.0
1 stars 9 forks source link

Bug: Correct processing of MWV message with "True" wind direction reference #99

Open rgleason opened 6 months ago

rgleason commented 6 months ago

Receiving MWV messages fixed with bdb PR. https://github.com/rgleason/watchdog_pi/commit/27672afd9e8986d50ee769ed1121e0b212b5a340 however now the values have to be fixed.

rgleason commented 6 months ago

Now we are getting data, but there are a couple of things that aren't working right. Wind-T-A-True-Absolute

(Corrected) (Corrected again to use True Wind Direction

VDR file used to test this is Hakan's: VDR_Sensors-Hakan.txt

with Dashboard and the Imported Plugin for Windows Ov5.8.4 watchdog_pi-2.4.106.0-msvc-x86_64-wx32-10.0.22621-MSVC.tar.gz

I hope I have this answer right, haven't thought about it that much. This needs to show True wind Is this coming from the instruments or is it calculated from Apparent wind and speed? https://github.com/rgleason/watchdog_pi/issues/99

Maybe there should be an option to calculate from from ship speed and apparent? I am unclear about Watchdog protocols (can it derive or calculate a nmea0183 data?) https://www.bwsailing.com/cc/2017/05/calculating-the-true-wind-and-why-it-matters/ True Wind Calculator https://www.starpath.com/calc/Weather%20Data%20Calculators/wind.html

Rick

rgleason commented 6 months ago

Dave, I got this totally wrong.
True Wind is the Direction from which the wind is blowing. Sorry. Ignore the 180 in my screenshot. (Corrected the screenshot now)

rgleason commented 6 months ago

Closing Duplicate: Bug: Issue on version 2.4.106 (Wind T-A Alarm) -fixed? #74

bdbcat commented 6 months ago

Please try again, simple words.

rgleason commented 6 months ago

Yes, you are right Dave it should become the value in Dashboard's "True Wind Direction", when Sync is clicked, but nothing happens sometimes, other times when there is a value in True Wind Direction, it puts something else in there.

Also I notice that sometimes if there is nothing in True Wind Direction, and Sync is clicked it calculates a direction based upon Wind Apparent Relative and SOG or STW? Do you think that the value calculated is correct?

I also find that the "Sync" button does not always work, it is locked out and nothing will change in the Value field. I don't know what causes this.

Hear are a couple of screenshots using VDR_Sensors-Hakan.txt

Why is this one still frozen at 266 when I hit Sync and True Wind Direction is 188 in Dashboard? It does not make sense.

Wind-T-A-Corrected

Screenshot (1965)

bdbcat commented 6 months ago

Sync button obviously broken. I'll fix that first.

rgleason commented 6 months ago

Dave, I am attaching a Thomas Rauch file from the adriatic, which has MWV and is moving. It is an actual recording of Thomas vessel. Tactics-sample2-5m.txt

Screenshot (1966)

rgleason commented 6 months ago
  1. Synch button is not working.
  2. When the "Value" is entered or selected as say "100" and the Range is "15" what displays is 85 < 129 < 115 100-15=85 Non-sesnical 100+15= 115 Don't know what creates the middle number.
bdbcat commented 6 months ago

PR posted to correct errors.

rgleason commented 6 months ago

https://github.com/rgleason/watchdog_pi/pull/105