OpenMarine
Emulating wind mode - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: Emulating wind mode (/showthread.php?tid=2017)



Emulating wind mode - ironman - 2019-10-03

I'm trying to emulate wind mode in the lab by feeding dummy NMEA MWV messages into tinypilot:

while [ 1==1 ]; do echo '$WIMWV,117,R,7.1,N,A*3C' | netcat -N -C 192.168.178.38 20220; sleep 0.1; done

Something works: I can see wind appear in the plugin dropdown box, but it is blinking: one moment it shows both compass and wind, the other moment it only shows compass. Also, the tack direction is flicking irregularly between port and starboard. In the http interface of tinypilot, when I choose wind, it flicks back to compass. I've tried different frequencies.

I'd like to get as much grip on the exact working of the wind mode in the lab, before running it on the boat. Why would pypilot not recognize the steady stream of wind messages?

Thx!


RE: Emulating wind mode - wdee - 2019-10-10

..trying to emulate wind mode:

Did same on my equipment.  Got basicly the same result.
Executed script on OPlotter which is paired to the Tpilot AP; over a usb wifi dongle.
Reason being, i try to maintain all default configuration in case of any single failure point.

Ill use tinypilot wifi client only for updates!

Then in Oplotter, pypilot is connected to <tinypilot>.  Wind mode appears in dropdown list; i select it; AP turns BLUE;
and heading cursors (red and green) swing to wind direction momentarily; then pypilot revers back to compass mode.

Looks like pypilot makes decisions off of signalK states, and that data is never establishing residence in the signalK node.


RE: Emulating wind mode - wdee - 2019-10-12

   
(2019-10-10, 03:38 PM)wdee Wrote: ..trying to emulate wind mode:

Did same on my equipment.  Got basicly the same result.
Executed script on OPlotter which is paired to the Tpilot AP; over a usb wifi dongle.
Reason being, i try to maintain all default configuration in case of any single failure point.

Ill use tinypilot wifi client only for updates!

Then in Oplotter, pypilot is connected to <tinypilot>.  Wind mode appears in dropdown list; i select it; AP turns BLUE;
and heading cursors (red and green) swing to wind direction momentarily; then pypilot revers back to compass mode.

Looks like pypilot makes decisions off of signalK states, and that data is never establishing residence in the signalK node.

When emulation wind source is run against OP/127.0.0.1; Lab results look very good!
Your wind source seems to work just fine!


RE: Emulating wind mode - seandepagnier - 2019-10-14

(2019-10-12, 05:05 PM)wdee Wrote:
(2019-10-10, 03:38 PM)wdee Wrote: ..trying to emulate wind mode:

Did same on my equipment.  Got basicly the same result.
Executed script on OPlotter which is paired to the Tpilot AP; over a usb wifi dongle.
Reason being, i try to maintain all default configuration in case of any single failure point.

Ill use tinypilot wifi client only for updates!

Then in Oplotter, pypilot is connected to <tinypilot>.  Wind mode appears in dropdown list; i select it; AP turns BLUE;
and heading cursors (red and green) swing to wind direction momentarily; then pypilot revers back to compass mode.

Looks like pypilot makes decisions off of signalK states, and that data is never establishing residence in the signalK node.

When emulation wind source is run against OP/127.0.0.1; Lab results look very good!
Your wind source seems to work just fine!

Is the wind mode working now without reverting to compass mode?

In early versions it would revert to compass if the wind speed was too low, but some wind sensors are not able to detect low wind speeds (cups stop) but the wind direction vane still is correct and the boat can still sail.


RE: Emulating wind mode - wdee - 2019-11-10

(2019-10-14, 01:46 AM)seandepagnier Wrote:
(2019-10-12, 05:05 PM)wdee Wrote:
(2019-10-10, 03:38 PM)wdee Wrote: ..trying to emulate wind mode:

Did same on my equipment.  Got basicly the same result.
Executed script on OPlotter which is paired to the Tpilot AP; over a usb wifi dongle.
Reason being, i try to maintain all default configuration in case of any single failure point.

Ill use tinypilot wifi client only for updates!

Then in Oplotter, pypilot is connected to <tinypilot>.  Wind mode appears in dropdown list; i select it; AP turns BLUE;
and heading cursors (red and green) swing to wind direction momentarily; then pypilot revers back to compass mode.

Looks like pypilot makes decisions off of signalK states, and that data is never establishing residence in the signalK node.

When emulation wind source is run against OP/127.0.0.1; Lab results look very good!
Your wind source seems to work just fine!

Is the wind mode working now without reverting to compass mode?

In early versions it would revert to compass if the wind speed was too low, but some wind sensors are not able to detect low wind speeds (cups stop) but the wind direction vane still is correct and the boat can still sail.

Yes, in the OPlotter plugin from what I can see.
Never using wind direction and/or velocity for AP, i would guess weather should always sqwauk a speed of 0.1/unit so that direction would still be usable in that case.