SignalK / freeboard-sk

Chartplotter implementation for Signal K servers
Apache License 2.0
35 stars 27 forks source link

wind next legs #135

Open petsicola opened 6 months ago

petsicola commented 6 months ago

DashT a plugin for open cpn has an useful thing. wind to next legs. it shows the direction of wind at the next leggs. I put a issue on kip, but may be, freeboard could be more accurate.

I give you the manual of dasht https://dashboard-tactics-pi.readthedocs.io/en/latest/racemark/racemark.html

Peek data on next legs - DashT Race Mark continuously calculates some key values for the upcoming legs based on the actual, measured data in order to help in the selection of the sails, such as gennakers:

TWA on next legs is shown for actual, measured value from your boat’s system and for the time integrated values, both for the Median Wind and for the short term average wind. image

panaaj commented 6 months ago

As Freeboard-SK displays values rather than calculates them, I would suggest the approach to achieving this would be to:

  1. Have a plugin calculate the values. This could be added to an existing plugin or a dedicated plugin for racing.
  2. Freeboard-SK / KIP (any client) could then display these values.
tkurki commented 6 months ago

...and the data for "next leg" would or should come from v2 course api - for which we don't yet have a convenient way that plugins could use to retrieve the data, do we?

panaaj commented 6 months ago

The Course API exposes async getCourse(): Promise<CourseInfo> to plugins. The Resources API exposes methods to plugins also (used by Course API).

There is a racing path under navigation which seems to be the appropriate location for this kind of data.

Maybe there should be some consideration for being able to associate a route as a race course to use for the calculations? .