Hi Folks,
The weather station that many of you helped me with one way or another is up and running but the wind direction is erratic, to say the least.
I thought about taking the average of a few reading but have hit a problem:
If I take two readings which are (say) 200 and 210, the average gives a "good" value of 205. But if the two readings pass through North (say 355 and 05), the average is a nonsense value.
Can anyone suggest a way round that? It doesn't have to be Picaxe maths because it's the graphs of the wind direction on the PC that mainly need averaging - and the PC program has the full range of sines, cosines etc.
Thanks,
John.
The weather station that many of you helped me with one way or another is up and running but the wind direction is erratic, to say the least.
I thought about taking the average of a few reading but have hit a problem:
If I take two readings which are (say) 200 and 210, the average gives a "good" value of 205. But if the two readings pass through North (say 355 and 05), the average is a nonsense value.
Can anyone suggest a way round that? It doesn't have to be Picaxe maths because it's the graphs of the wind direction on the PC that mainly need averaging - and the PC program has the full range of sines, cosines etc.
Thanks,
John.