|
Re: Sensor "de-noising"
This year we're using a moving average to filter out noise from our sensors. It's about seven lines of code total, and works by feeding a stream of data into an array and calculating the average continuously. It works really well for rangefinders, but I'm sure it's applicable to almost anything. All you need to do to adjust the sensitivity is change the sample size.
|