Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: CalibrateMagneto QuaternionMath
Fork of SML2 by
LowPassFilter Class Reference
Low-pass filters an incoming stream of numbers. More...
#include <Filter.h>
Public Member Functions | |
LowPassFilter (float const a) | |
Construct the filter with given coefficient. | |
float | filter (float const x) |
Main processing function, passes given value to filter and returns the filter's output. | |
void | reset () |
Resets the internal state of the filter. Use to start filtering a new stream. |
Detailed Description
Low-pass filters an incoming stream of numbers.
Implements a 1st-order IIR low-pass filter. The coefficient can be used to specify how much to filter.
Definition at line 9 of file Filter.h.
Constructor & Destructor Documentation
LowPassFilter | ( | float const | a ) |
Member Function Documentation
float filter | ( | float const | x ) |
Generated on Wed Jul 13 2022 08:50:41 by
