Comments (4)
Changed timing for automatic input device discovery. Closes #41.
→ <>
Original Comment By: Marcus Eliasson
from crazyflie-clients-python.
I did the change you suggested. It lowered CPU usage for me from ~95% to ~20%.
Original Comment By: Allyn Bauer
from crazyflie-clients-python.
I can't see this issue on Linux. The _do_device_discovery is called each 10ms by _self.discovery_timer. But this call will result in the pygame.joystick sub-system being de-initialized and initialized again to detect if an input-device has been inserted or not (see #3).
The 10ms interval is a bit unnecessarily aggressive, it would be enough with 1000ms. Would it be possible for you to test if this "fixes" the problem on OSX? Just change line 139 in input.py from 10 to 1000.
Original Comment By: Marcus Eliasson
from crazyflie-clients-python.
This seems to occur because _do_device_discovery is run continuously until a pygame Joystick is discovered. I see no path to fixing this problem without changing the paradigm of input device discovery. Requiring the user to tell the client to poll for input devices might make sense.
Does this not occur on windows or linux? It would seem that it must, unless I have misinterpreted the results of my profiling.
Original Comment By: Allyn Bauer
from crazyflie-clients-python.
Related Issues (20)
- Toolboxes can not be docked HOT 1
- Multiple deck update issues
- Open multiple plotting instances
- QT6 needs extra dependencies HOT 3
- python 3.12 not supported yet: Deprecated config in `setup.cfg` HOT 6
- latest Client does not open on VM HOT 4
- CFclient 2023.11 not starting due to QT6 mismatch HOT 11
- LH calibration - Invisible text (dark theme) HOT 6
- ubuntu 18.04 pip3 install pyqt6 failed HOT 2
- windows pysdl2 constant warning
- Client not starting on Mac sonoma HOT 8
- Client commander-based flight buttons repear when controller disconnnect HOT 1
- Client not working on Raspberry pi with Bookworm raspbian HOT 1
- Flashing firmware <2024.2 not working with client 2024.1 HOT 1
- minimal version python client not working anymore HOT 2
- Crazyflie remains "connected" after removing Crazyradio from USB port
- issue when assisted mode triggers on controller
- Lighthouse geometry estimation crashes on Mac M1 with Python 3.11
- Missing Qualisys tab on macOS HOT 1
- Plotter x-axis jittering and rescaling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from crazyflie-clients-python.