mirror of https://github.com/ArduPilot/ardupilot
uncrustify libraries/Filter/Filter.h
This commit is contained in:
parent
c09a7ea4b4
commit
67778c7c37
|
@ -19,15 +19,19 @@
|
||||||
template <class T>
|
template <class T>
|
||||||
class Filter
|
class Filter
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
// constructor
|
// constructor
|
||||||
Filter() {};
|
Filter() {
|
||||||
|
};
|
||||||
|
|
||||||
// apply - Add a new raw value to the filter, retrieve the filtered result
|
// apply - Add a new raw value to the filter, retrieve the filtered result
|
||||||
virtual T apply(T sample) { return sample; };
|
virtual T apply(T sample) {
|
||||||
|
return sample;
|
||||||
// reset - clear the filter
|
};
|
||||||
virtual void reset() {};
|
|
||||||
|
// reset - clear the filter
|
||||||
|
virtual void reset() {
|
||||||
|
};
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue