mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 09:58:28 -04:00
Filter: add get method to LowPassFilter
This commit is contained in:
parent
c711179ffe
commit
4b78b2ce80
@ -40,6 +40,9 @@ public:
|
||||
// apply - Add a new raw value to the filter, retrieve the filtered result
|
||||
virtual T apply(T sample);
|
||||
|
||||
// get - returns latest filtered value from filter (equal to the value returned by latest call to apply method)
|
||||
virtual T get() const { return (T)_base_value; }
|
||||
|
||||
// reset - clear the filter - next sample added will become the new base value
|
||||
virtual void reset() {
|
||||
_base_value_set = false;
|
||||
|
Loading…
Reference in New Issue
Block a user