View Single Post
  #16   Spotlight this post!  
Unread 04-03-2013, 15:30
Kevin Sevcik's Avatar
Kevin Sevcik Kevin Sevcik is offline
(Insert witty comment here)
FRC #0057 (The Leopards)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Houston, Texas
Posts: 3,758
Kevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond reputeKevin Sevcik has a reputation beyond repute
Send a message via AIM to Kevin Sevcik Send a message via Yahoo to Kevin Sevcik
Re: Sensor "de-noising"

Quote:
Originally Posted by mrklempae View Post
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.
Applicable to anything except a digital signal. Unless 2/3rds on has some sort of meaning I'm unaware of.
__________________
The difficult we do today; the impossible we do tomorrow. Miracles by appointment only.

Lone Star Regional Troubleshooter