Skip to content

Commit

Permalink
Sleep in latency test to allow p95 latency to converge
Browse files Browse the repository at this point in the history
Sleeping 10 seconds (currently, with a 0.1s ping interval) means ~100 pings are done.
  • Loading branch information
gemenerik committed Jan 8, 2025
1 parent 7aa2b02 commit d2af9f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/QA/test_radio.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ def latency(uri, cf, timeout=10):
TimeoutError: If the timeout is reached during latency retrieval.
"""
with ValidatedSyncCrazyflie(uri, cf) as scf:
time.sleep(10) # wait 10 seconds for the p95 latency to converge

syncer = Syncer()

def on_latency_update(latency):
Expand Down

0 comments on commit d2af9f9

Please sign in to comment.