barnaclebill - Question for @Aswin, although it...
Question for @Aswin, although it might be of general interest: how does your plugin correct for mast height? Are you assuming some wind gradient as the mast gets taller? What is the impact of roll and pitch on wind? Are you calculating that if for example my boat pitches forward at 1m/s (which I know isn't how we calculate pitch but just trying to simplify), you subtract 1m/s from wind speed's forward vector? How about upwash?
How does one differentiate leeway calculation from current?
If your code is public, I would love to poke around.
1 Reply
The code is public: https://github.com/Asw1n/advancedwind
The readme and the plugin config show the formulas and parameters for each approximation.
Leeway is not calculated from the difference between heading and course over ground. It is based on an approximation.
About roll and pitch. The angular speed (in 3D) of the boat is calculated from its attitude change between two wind Delta's. Using the height of the sensor this is transformed into a lineair speed (also in 3D). This speed is then substracted from the apparent wind speed.
The plugin comes with a basic app that shows the effect of each correction.