Bigger gaps
This commit is contained in:
@@ -815,16 +815,16 @@ async def monitor_dish_height_task():
|
|||||||
|
|
||||||
if dist is not None:
|
if dist is not None:
|
||||||
# Hysteresis Thresholds:
|
# Hysteresis Thresholds:
|
||||||
# - Must be > 1.2 cm to detect dish insertion
|
# - Must be > 1.5 cm to detect dish insertion
|
||||||
# - Must be < 0.8 cm to detect dish removal
|
# - Must be < 0.8 cm to detect dish removal
|
||||||
if dist > 1.2:
|
if dist > 2.0:
|
||||||
consecutive_present += 1
|
consecutive_present += 1
|
||||||
consecutive_absent = 0
|
consecutive_absent = 0
|
||||||
elif dist < 0.8:
|
elif dist < 1.0:
|
||||||
consecutive_absent += 1
|
consecutive_absent += 1
|
||||||
consecutive_present = 0
|
consecutive_present = 0
|
||||||
else:
|
else:
|
||||||
# Dead-zone (1.2cm to 0.8cm) -> Noise buffer
|
# Dead-zone (2.0cm to 1.0cm) -> Noise buffer
|
||||||
consecutive_present = 0
|
consecutive_present = 0
|
||||||
consecutive_absent = 0
|
consecutive_absent = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user