DEIS-Tools / CLAIRE-library

GNU General Public License v3.0
0 stars 0 forks source link

Sensor error detection too conservative #37

Closed magoorden closed 3 months ago

magoorden commented 3 months ago

With one of the recent sensor errors, I got the following debug information

Tube0_water_mm raw ranging:0, 0, 341, 348, 347, 341, 349, 346, 349, 349, filtered: -1.00
ERROR ranging Tube0_water_mm, 1 time(s)
Tube0_water_mm raw ranging:343, 350, 350, 346, 351, 352, 347, 354, 356, 351, filtered: -1.00
ERROR ranging Tube0_water_mm, 2 time(s)
Tube1_water_mm raw ranging:815, 815, 821, 816, 821, 816, 818, 816, 816, 817, filtered: -1.00
ERROR ranging Tube1_water_mm, 1 time(s)
Tube1_water_mm raw ranging:816, 816, 816, 816, 816, 816, 815, 816, 816, 822, filtered: -1.00
ERROR ranging Tube1_water_mm, 2 time(s)
{"Tube0_water_mm": -1.00, "Tube1_water_mm": -1.00, "Tube0_inflow_duty": 0,"Tube0_outflow_duty": 100,"Tube1_inflow_duty": 0,"Tube1_outflow_duty": 0,"Stream_inflow_duty": 0,"Stream_outflow_duty": 0}

This output suggest that catching a sensor reading error is not reset once a good reading is obtained.