miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
filter.h
Go to the documentation of this file.
1/**************************************************************************/
9#ifndef MINIFOC_ALGORITHM_FILTER_H_
10#define MINIFOC_ALGORITHM_FILTER_H_
11
16typedef struct {
22
24float filter_update_value(Filter_Structure_t *param, short value);
25void filter_config(void);
26
27#endif //MINIFOC_ALGORITHM_FILTER_H_
float filter_update_value(Filter_Structure_t *param, short value)
update the output value of the first-order low-pass filter
Definition: filter.c:56
volatile Filter_Structure_t velocity_filter
motor rotation speed low pass filter handle
Definition: filter.c:19
void filter_config(void)
configure low-pass filter parameters
Definition: filter.c:45
structure of low-pass filter algorithm
Definition: filter.h:16
float coefficient2
low-pass filter coefficient 2
Definition: filter.h:18
float last_result
previous calculation results of low-pass filter
Definition: filter.h:19
float current_result
current calculation results of low-pass filter
Definition: filter.h:20
float coefficient1
low-pass filter coefficient 1
Definition: filter.h:17