Skip to content

Commit

Permalink
start of a filter library.
Browse files Browse the repository at this point in the history
Beginning with a moving average filter.
  • Loading branch information
Zac Staples committed May 24, 2014
0 parents commit 6b047e4
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions Filter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*
* I'd like to have a library I can call for basic filtering operations.
*
* Most sensors in small scale robotics are noisy. For example as a
* mobile robot approaches a wall, an atached ulrasonic sensor should
* give readings in cm similar to the list below
*
* 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, ...bump!
*
* but all too often the data will come back like this
*
* 11, 10, 6, 8, 7, 3, 5, 4, 1, 2, 1, ..bump!
*
* By filtering the raw data, via a moving average or other more
* specialized filter we can use the noisy data as an input to our
* filter and then the processed data will give us a better linear
* output. This linear output still doesn't match the exact distance
* to the wall, but it is a much closer approximation than the noisy
* data and provides a better set of data for the robot to make
* control decisions from.
*
*/

#ifndef FILTER_h
#define FILTER_h

//*******************************************************************
//* MOVING AVERAGE
//*******************************************************************
class Moving_average


#endif

0 comments on commit 6b047e4

Please sign in to comment.