Open petsicola opened 6 months ago
As Freeboard-SK displays values rather than calculates them, I would suggest the approach to achieving this would be to:
...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?
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? .
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.