|
APM:Libraries
|
#include <DerivativeFilter.h>
Public Member Functions | |
| DerivativeFilter () | |
| void | update (T sample, uint32_t timestamp) |
| float | slope (void) |
| virtual void | reset () |
Public Member Functions inherited from FilterWithBuffer< T, FILTER_SIZE > | |
| FilterWithBuffer () | |
| virtual T | apply (T sample) |
| uint8_t | get_filter_size () const |
| T | get_sample (uint8_t i) const |
Private Attributes | |
| bool | _new_data |
| float | _last_slope |
| uint32_t | _timestamps [FILTER_SIZE] |
Additional Inherited Members | |
Protected Attributes inherited from FilterWithBuffer< T, FILTER_SIZE > | |
| T | samples [FILTER_SIZE] |
| uint8_t | sample_index |
Definition at line 28 of file DerivativeFilter.h.
|
inline |
Definition at line 32 of file DerivativeFilter.h.
|
virtual |
Reimplemented from FilterWithBuffer< T, FILTER_SIZE >.
Definition at line 116 of file DerivativeFilter.cpp.
Referenced by DerivativeFilter< float, 7 >::DerivativeFilter(), and DerivativeFilter< float, 7 >::reset().
| template float DerivativeFilter< T, FILTER_SIZE >::slope | ( | void | ) |
Definition at line 52 of file DerivativeFilter.cpp.
Referenced by DerivativeFilter< float, 7 >::DerivativeFilter(), AP_Baro::get_climb_rate(), loop(), and DerivativeFilter< float, 7 >::reset().
| template void DerivativeFilter< T, FILTER_SIZE >::update | ( | T | sample, |
| uint32_t | timestamp | ||
| ) |
Definition at line 27 of file DerivativeFilter.cpp.
Referenced by DerivativeFilter< float, 7 >::DerivativeFilter(), loop(), DerivativeFilter< float, 7 >::reset(), and AP_Baro::update().
|
private |
Definition at line 46 of file DerivativeFilter.h.
|
private |
Definition at line 45 of file DerivativeFilter.h.
|
private |
Definition at line 50 of file DerivativeFilter.h.
1.8.13