mirror of https://github.com/ArduPilot/ardupilot
uncrustify libraries/Filter/DerivativeFilter.h
This commit is contained in:
parent
973dcba9ab
commit
6bfccd13f8
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue