APM:Libraries
Public Member Functions | Protected Attributes | List of all members
AverageIntegralFilter< T, U, FILTER_SIZE > Class Template Reference

#include <AverageFilter.h>

Inheritance diagram for AverageIntegralFilter< T, U, FILTER_SIZE >:
[legend]
Collaboration diagram for AverageIntegralFilter< T, U, FILTER_SIZE >:
[legend]

Public Member Functions

virtual T apply (T sample) override
 
virtual float getf ()
 
virtual double getd ()
 
- Public Member Functions inherited from AverageFilter< T, U, FILTER_SIZE >
 AverageFilter ()
 
virtual void reset ()
 
- Public Member Functions inherited from FilterWithBuffer< T, FILTER_SIZE >
 FilterWithBuffer ()
 
uint8_t get_filter_size () const
 
get_sample (uint8_t i) const
 

Protected Attributes

_sum = 0
 
- Protected Attributes inherited from AverageFilter< T, U, FILTER_SIZE >
uint8_t _num_samples
 
- Protected Attributes inherited from FilterWithBuffer< T, FILTER_SIZE >
samples [FILTER_SIZE]
 
uint8_t sample_index
 

Detailed Description

template<class T, class U, uint8_t FILTER_SIZE>
class AverageIntegralFilter< T, U, FILTER_SIZE >

Definition at line 118 of file AverageFilter.h.

Member Function Documentation

◆ apply()

template<class T, class U , uint8_t FILTER_SIZE>
T AverageIntegralFilter< T, U, FILTER_SIZE >::apply ( sample)
overridevirtual

Reimplemented from AverageFilter< T, U, FILTER_SIZE >.

Definition at line 139 of file AverageFilter.h.

Referenced by AP_Baro_BMP085::_calculate().

Here is the caller graph for this function:

◆ getd()

template<class T , class U , uint8_t FILTER_SIZE>
double AverageIntegralFilter< T, U, FILTER_SIZE >::getd ( )
virtual

Definition at line 170 of file AverageFilter.h.

◆ getf()

template<class T , class U , uint8_t FILTER_SIZE>
float AverageIntegralFilter< T, U, FILTER_SIZE >::getf ( )
virtual

Definition at line 160 of file AverageFilter.h.

Referenced by AP_Baro_BMP085::update().

Here is the caller graph for this function:

Member Data Documentation

◆ _sum

template<class T, class U, uint8_t FILTER_SIZE>
U AverageIntegralFilter< T, U, FILTER_SIZE >::_sum = 0
protected

Definition at line 135 of file AverageFilter.h.


The documentation for this class was generated from the following file: