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

Benchmark example does not work for me #6

Open
jonasdn opened this issue Mar 26, 2021 · 1 comment
Open

Benchmark example does not work for me #6

jonasdn opened this issue Mar 26, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@jonasdn
Copy link
Contributor

jonasdn commented Mar 26, 2021

When I run the benchmark I seem to end up in an inf. loop.

build$ ./example_benchmark
[never seem to end]

The program never leaves the loop in run():

        // empty receiver queue
        while (true)
        {
            Packet p = con.recv(100);
            if (!p)
            {
                break;
            }
        }

Is there something I am missing? I have changed the address in the source:

 int main()
 {
     // std::vector<std::string> uris({"radio://*/80/2M/E7E7E7E7E7", "radio://*/90/2M/E7E7E7E7E7"});
-    std::vector<std::string> uris({"radio://*/80/2M/E7E7E7E7E7"});
+    std::vector<std::string> uris({"radio://0/80/2M/DEADBEEF"});
@whoenig whoenig added the bug Something isn't working label Mar 26, 2021
@whoenig
Copy link
Contributor

whoenig commented Mar 26, 2021

This is a bug. We used to filter empty RSSI packets, which made the code work and the overall communication nicer (i.e., identical to USB). However, there were places in crazyflie-lib-python that made assumptions about receiving the empty packets too.

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

No branches or pull requests

2 participants