-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
When using the cpp link, bootloading a Crazyflie is very slow:
$ time make cload
Python:
real 0m31.702s
user 0m3.389s
sys 0m1.176s
CPP:
real 4m42.991s
user 0m7.673s
sys 0m18.203s
The behavior seems to come from send packet that can either take 1 seconds or run in quick bursts of ~30 packets. This looks like mutex contension so I tried commenting this mutex lock:
crazyflie-link-cpp/src/CrazyradioThread.cpp
Line 227 in e6043eb
const std::lock_guard<std::mutex> lock(con->queue_send_mutex_); |
Why does this mutex exists? I though there was only one thread accessing each radio which means that radio access would not need to be protected by a lock. I will continue investigating, tell me if you have any though @whoenig.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working