SignalK / signalk-derived-data

Generates deltas for values derived from signalk values
Apache License 2.0
18 stars 31 forks source link

fix: Assign TWA and GWA identically to AWA in case AWS is smaller than 1e-9m/s #74

Closed chris0348 closed 3 years ago

chris0348 commented 3 years ago

Set wind.angleTrueWater (TWA) and wind.angleTrueGround (GWA) identically to wind.angleApparent (AWA) in case wind.speedApparent (AWS) is smaller than 1e-9m/s. Background: Before for AWS=0 the plugin delivered wrong GWA and TWA since AWS=0 drove the arguments that are used for calculating the angles to zero.