dRonin  adbada4
dRonin firmware
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
lpfilter.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <math.h>
#include "pios.h"
#include "lpfilter.h"

Go to the source code of this file.

Data Structures

struct  lpfilter_biquad_state
 
struct  lpfilter_biquad
 
struct  lpfilter_first_order
 
struct  lpfilter_state
 

Macros

#define MAX_FILTER_WIDTH   16
 

Functions

void lpfilter_construct_single_biquad (struct lpfilter_biquad *b, float cutoff, float dT, float q, uint8_t width)
 
void lpfilter_construct_biquads (lpfilter_state_t filt, float cutoff, float dT, int o, uint8_t width)
 
void lpfilter_create (lpfilter_state_t *filter_ptr, float cutoff, float dT, uint8_t order, uint8_t width)
 
float lpfilter_run_single (lpfilter_state_t filter, uint8_t axis, float sample)
 
void lpfilter_run (lpfilter_state_t filter, float *sample)
 

Variables

static const float lpfilter_butterworth_factors [16]