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
|
||||
float weight_read[READING_FILTER_SIZE] = {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
|
||||
#define MIN_WEIGHT_DIFFERENCE 50 //minimum weight
|
||||
|
@ -184,7 +184,7 @@ void loopHandler() {
|
|||
Serial.print("new tare="); Serial.println(weight_tare,3);
|
||||
last_display_blink=loopmillis; //blink
|
||||
}
|
||||
|
||||
|
||||
if (weight_filtered>weight_max) { //new max
|
||||
weight_max=weight_filtered;
|
||||
update_display=true;
|
||||
|
|
Loading…
Reference in New Issue