uncrustify libraries/Filter/DerivativeFilter.h

This commit is contained in:
uncrustify 2012-08-16 23:22:10 -07:00 committed by Pat Hickey
parent 973dcba9ab
commit 6bfccd13f8
1 changed files with 15 additions and 14 deletions

View File

@ -22,9 +22,10 @@
template <class T, uint8_t FILTER_SIZE> template <class T, uint8_t FILTER_SIZE>
class DerivativeFilter : public FilterWithBuffer<T,FILTER_SIZE> class DerivativeFilter : public FilterWithBuffer<T,FILTER_SIZE>
{ {
public: public:
// constructor // constructor
DerivativeFilter() : FilterWithBuffer<T,FILTER_SIZE>() {}; DerivativeFilter() : FilterWithBuffer<T,FILTER_SIZE>() {
};
// update - Add a new raw value to the filter, but don't recalculate // update - Add a new raw value to the filter, but don't recalculate
virtual void update(T sample, uint32_t timestamp); virtual void update(T sample, uint32_t timestamp);
@ -35,7 +36,7 @@ class DerivativeFilter : public FilterWithBuffer<T,FILTER_SIZE>
// reset - clear the filter // reset - clear the filter
virtual void reset(); virtual void reset();
private: private:
bool _new_data; bool _new_data;
float _last_slope; float _last_slope;