13-10-2019, 22:45
(12-10-2019, 14:02)edr1924 Wrote: At the receiver end I added a 5 minute averaging of the wind direction (and speed also) so when I look at the display I know for sure where the wind is coming from.
Changing the RX code to averaging the wind speed doesn't seem to me to be a good idea, because this is already done on the TX before sending data. The TX units sends wind speed as ten and two minutes wind average which are the standard.
On the RX display, wind speed is the standard 10 minutes wind average.
Be careful when changing things on the code, specially if you intend to use it with any weather software such as Cumulus, you may be breaking standard measurements.
Regarding the wind direction, well, if adding the calculation of wind direction vector works better for you, its ok. Now you have something similar to predominant wind direction.
Anyway check the impact of using the sin and cos functions in memory usage.
Wind direction by nature changes very frequently, I use an high quality ultrasonic wind direction / speed sensor (Ventus 200A), which values are read digitally and I also get very frequent changes in wind direction, obviously not radical changes from N to S, but N to NNO or N to NNW are normal.

