NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
filter.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  filterStatePt1_s
 
struct  biquad_s
 

Typedefs

typedef struct filterStatePt1_s filterStatePt1_t
 
typedef struct biquad_s biquad_t
 

Functions

float filterApplyPt1 (float input, filterStatePt1_t *filter, uint8_t f_cut, float dt)
 
float applyBiQuadFilter (float sample, biquad_t *state)
 
void BiQuadNewLpf (float filterCutFreq, biquad_t *newState, uint32_t refreshRate)
 
int32_t filterApplyAverage (int32_t input, uint8_t count, int32_t averageState[])
 
float filterApplyAveragef (float input, uint8_t count, float averageState[])
 

Typedef Documentation

typedef struct biquad_s biquad_t

Function Documentation

float applyBiQuadFilter ( float  sample,
biquad_t state 
)
void BiQuadNewLpf ( float  filterCutFreq,
biquad_t newState,
uint32_t  refreshRate 
)
int32_t filterApplyAverage ( int32_t  input,
uint8_t  count,
int32_t  averageState[] 
)
float filterApplyAveragef ( float  input,
uint8_t  count,
float  averageState[] 
)
float filterApplyPt1 ( float  input,
filterStatePt1_t filter,
uint8_t  f_cut,
float  dt 
)