change filter value
This commit is contained in:
parent
0c843e7507
commit
d2e710b4ba
|
@ -61,7 +61,7 @@ float spread=0;
|
||||||
#define READING_FILTER_SIZE 40 //latency is about READING_FILTER_SIZE/2*MEASURE_INTERVAL
|
#define READING_FILTER_SIZE 40 //latency is about READING_FILTER_SIZE/2*MEASURE_INTERVAL
|
||||||
float weight_read[READING_FILTER_SIZE] = {0};
|
float weight_read[READING_FILTER_SIZE] = {0};
|
||||||
uint8_t weight_read_pos=0;
|
uint8_t weight_read_pos=0;
|
||||||
#define MEANVALUECOUNT 4 //0<= meanvaluecount < READING_FILTER_SIZE/2
|
#define MEANVALUECOUNT 5 //0<= meanvaluecount < READING_FILTER_SIZE/2. how many values will be used from sorted weight array from the center region. abour double this values reading are used
|
||||||
|
|
||||||
float weight_tare=0; //minimal filtered weight
|
float weight_tare=0; //minimal filtered weight
|
||||||
#define MIN_WEIGHT_DIFFERENCE 50 //minimum weight
|
#define MIN_WEIGHT_DIFFERENCE 50 //minimum weight
|
||||||
|
|
Loading…
Reference in New Issue