04-19-2006 09:21 PM
04-20-2006 01:43 AM
Only once in a second you copy one value to the other while.
That is not enough to calculate a mean from.
You should accumulate 80 samples in an array (or add up in a value) and use this to output a mean
You even can output a mean 80 times a second this is called a walking (running) mean.
see attached example
the second while uses the point by point mean this helps a lot and gives a good result even when not yet filled
04-20-2006 07:16 AM
04-20-2006 02:18 PM