zhyinch
2021-11-08 d4e52e570a19bee6932b8ad34c5bd5966b1d3d3a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
 
#ifndef __FILTERS_H__
#define __FILTERS_H__
 
#include "stm32f10x.h"
 
typedef struct 
{
    float pre_data;
    float pre_factor;
    
}LPFilter_Frac;
 
LPFilter_Frac* New_LP_Frac(float pre_factor);
float LP_Frac_Update(LPFilter_Frac* self, float new_data);
 
 
#endif