uncrustify libraries/Filter/DerivativeFilter.h
This commit is contained in:
parent
0afc8a5958
commit
10acadef62
@ -22,9 +22,10 @@
|
||||
template <class T, uint8_t FILTER_SIZE>
|
||||
class DerivativeFilter : public FilterWithBuffer<T,FILTER_SIZE>
|
||||
{
|
||||
public:
|
||||
public:
|
||||
// constructor
|
||||
DerivativeFilter() : FilterWithBuffer<T,FILTER_SIZE>() {};
|
||||
DerivativeFilter() : FilterWithBuffer<T,FILTER_SIZE>() {
|
||||
};
|
||||
|
||||
// update - Add a new raw value to the filter, but don't recalculate
|
||||
virtual void update(T sample, uint32_t timestamp);
|
||||
@ -35,7 +36,7 @@ class DerivativeFilter : public FilterWithBuffer<T,FILTER_SIZE>
|
||||
// reset - clear the filter
|
||||
virtual void reset();
|
||||
|
||||
private:
|
||||
private:
|
||||
bool _new_data;
|
||||
float _last_slope;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user