Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use default latency implementation for latency test #52

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

gemenerik
Copy link
Member

Since crazyflie-lib-python#492, there is a default implementation in the library for latency using the echo channel.

The latency testing implementation in this repository conflicts with the new library implementation because it also uses the echo channel but assumes exclusive control of it (no header checks or similar safeguards). This causes occasional failures in the current latency tests when one of the new implementation's latency pings is read by the current test instead. Examples of these failures can be seen here:
Run 1
Run 2

This PR fixes the issue by using the latency values provided by the new default latency implementation rather than the custom implementation.

One side effect is that we can no longer differentiate between large and small packet latency, as the new implementation uses fixed-size packets. However, we have not observed any significant difference between these in practice.

@gemenerik gemenerik requested a review from ToveRumar January 8, 2025 13:26
@gemenerik gemenerik added the bug Something isn't working label Jan 8, 2025
Since bitcraze/crazyflie-lib-python#492 there is a default implementation in the lib for latency. Retrieve the latency from here instead of using the custom implementation.

This means we stop discerning between large and small packet latency.
tests/QA/test_radio.py Outdated Show resolved Hide resolved
For neatness; don't create a second cf object.
@gemenerik gemenerik merged commit acec2b9 into main Jan 8, 2025
@gemenerik gemenerik deleted the rik/latency_test branch January 8, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants