> Hi,
>
> I am using the ADSP 21262 and want to apply a moving average to smooth
> the readings I am aqcuiring from several sensors. Does anyone have any
> source code examples of this? Any help would be greatly appreciated.
The easiest way to do that is to use a circular buffer. Use one index
to keep track of where you are dumping new data and a different index in
the same dag to compute the average of all the data in the buffer.
Compute a new average every time you get new data, or as needed.
Patience, persistence, truth,
Dr. mike
Reply by ashd...@rpi.edu●October 16, 20072007-10-16
Hi,
I am using the ADSP 21262 and want to apply a moving average to smooth
the readings I am aqcuiring from several sensors. Does anyone have any
source code examples of this? Any help would be greatly appreciated.