This commit is contained in:
Shaiv Kamat 2026-01-05 19:33:45 -08:00
parent 7d8d1733c0
commit de8b3944b0

View file

@ -32,7 +32,7 @@ class StitchConfig:
movement_interval: float = 0.001 # Seconds of motor on time movement_interval: float = 0.001 # Seconds of motor on time
frame_interval: float = 0.25 # Seconds between frame captures (settle time) frame_interval: float = 0.25 # Seconds between frame captures (settle time)
settle_time: float = 0.5 # Seconds to wait after stopping settle_time: float = 0.5 # Seconds to wait after stopping
max_scan_time: float = 2400.0 # Safety timeout (5 minutes) max_row_scan_time: float = 3000.0 # Safety timeout (50 minutes)
# Scan pattern # Scan pattern
rows: int = 3 rows: int = 3
@ -541,7 +541,7 @@ class StitchingScanner:
max_no_movement = 50 max_no_movement = 50
while self.running and not self.paused: while self.running and not self.paused:
if time.time() - start_time > self.config.max_scan_time: if time.time() - start_time > self.config.max_row_scan_time:
self.log("Scan timeout") self.log("Scan timeout")
break break