fix variation

This commit is contained in:
awe
2026-02-18 19:01:28 +03:00
parent 9b82077b64
commit 0b9eed566e
3 changed files with 57 additions and 10 deletions

View File

@ -69,7 +69,10 @@ def example_variation_mode(port: str = None):
}
)
print("Variation task started. Collecting data for 2 s...")
time.sleep(2)
deadline = time.monotonic() + 2.0
while time.monotonic() < deadline:
ctrl.get_measurements()
time.sleep(0.15)
ctrl.stop_task()
print(f"Done. Collected {len(collected)} measurements.")