improve timing values

This commit is contained in:
interfisch 2024-05-16 19:11:06 +02:00
parent 5c014ded4b
commit e03fea6eb9
3 changed files with 6 additions and 6 deletions

View File

@ -34,13 +34,13 @@ uint16_t ec_calib_array[EC_CALIB_ARRAY_SIZE];
uint16_t ec_calib_array_pos=0;
#define EC_CALIB_READ_INTERVAL 250 //interval of reading adc value inside a measurement
#define EC_ARRAY_SIZE 256
#define EC_ARRAY_SIZE 64
uint16_t ec_array[EC_ARRAY_SIZE];
uint16_t ec_array_pos=EC_ARRAY_SIZE;
unsigned long last_measurement_ec=0;
#define EC_MEASUREMENT_INTERVAL 10*60*1000 //complete filtered measurement every x ms
//One filtered measurement takes EC_READ_INTERVAL*EC_ARRAY_SIZE*4
#define EC_READ_INTERVAL 10 //interval of reading adc value inside a measurement. one reading takes about 9-10ms
#define EC_READ_INTERVAL 50 //interval of reading adc value inside a measurement. one reading takes about 9-10ms
#define EC_RELAY_SWITCH_SETTLETIME 500 //time until voltage of ec circuit has settled

View File

@ -26,12 +26,12 @@ void flow_setup() {
timing_flow_a.minchange=0.0;
timing_flow_a.maxchange=0.3;
timing_flow_a.mintime=10*000;
timing_flow_a.mintime=10*1000;
timing_flow_a.maxtime=30*60*1000;
timing_flow_b.minchange=0.0;
timing_flow_b.maxchange=0.3;
timing_flow_b.mintime=10*000;
timing_flow_b.mintime=10*1000;
timing_flow_b.maxtime=30*60*1000;
pinMode(FLOW_A_PIN, INPUT_PULLUP);

View File

@ -171,12 +171,12 @@ void waterlevel_setup() {
timing_waterlevelA.minchange=0.0;
timing_waterlevelA.maxchange=3.0;
timing_waterlevelA.maxchange=7.0;
timing_waterlevelA.mintime=30*000;
timing_waterlevelA.maxtime=60*60*1000;
timing_waterlevelB.minchange=0.0;
timing_waterlevelB.maxchange=0.5;
timing_waterlevelB.maxchange=3.0;
timing_waterlevelB.mintime=10*000;
timing_waterlevelB.maxtime=60*60*1000;