I tried to follow your beginner suggestions with the bitcrazeVM from the website.
Unfortunately, after updating the project with the script, the CF Client didn't work anymore. He died with an error message.
I think ok. This can happen because the VM is very old. I started Eclipse and saw that there are a few updates for the installed addons available (c/c++). During the update, I received an error message and yeah, no further updates are working.
Ok. I installed a fresh Ubuntu 20.04 Desktop environment within Virtualbox to start from the beginning.
I installed the CF-Client, as suggested, with snap.
Code: Select all
snap install --edge cfclient
snap connect cfclient:raw-usb # Required to access the Crazyradio
snap connect cfclient:joystick # Required to access gamepads
Code: Select all
INFO:__main__:Disabling STL printouts
INFO:cfclient.utils.input.inputreaders:Input readers: ['linuxjsdev', 'pysdl2']
INFO:cfclient.utils.input.inputreaders:Successfully initialized [linuxjsdev]
INFO:cfclient.utils.input.inputreaders:Could not initialize [pysdl2]: No SDL2 support on Linux
INFO:cfclient.utils.input.inputinterfaces:Found interfaces: ['leapmotion', 'wiimote', 'zmqpull']
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [leapmotion]: Leap Motion library probably not installed (No module named 'leapsdk')
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [wiimote]: Missing cwiid (wiimote) driver No module named 'cwiid'
INFO:cfclient.utils.config:Dist config read from /snap/cfclient/69/lib/python3.6/site-packages/cfclient/configs/config.json
INFO:cfclient.utils.input.inputinterfaces:Could not initialize [zmqpull]: ZMQ input disabled in config file
INFO:cfclient.utils.zmq_led_driver:ZMQ led disabled in config file
INFO:cfclient.utils.zmq_param:ZMQ param disabled in config file
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
WARNING: could not determine DPI
WARNING:vispy:could not determine DPI
WARNING: Although PyQt5 is already imported, the PyQt5 backend could not
be used ("cannot import name 'QtOpenGL'").
Note that running multiple GUI toolkits simultaneously can cause side effects.
WARNING:vispy:Although PyQt5 is already imported, the PyQt5 backend could not
be used ("cannot import name 'QtOpenGL'").
Note that running multiple GUI toolkits simultaneously can cause side effects.
libEGL warning: DRI2: failed to authenticate
===== 2020.11.15 20:11:57 =====
Traceback (most recent call last):
File "/snap/cfclient/69/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/snap/cfclient/69/usr/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/snap/cfclient/69/lib/python3.6/site-packages/cfclient/gui.py", line 197, in <module>
main()
File "/snap/cfclient/69/lib/python3.6/site-packages/cfclient/gui.py", line 189, in main
main_window = MainUI()
File "/snap/cfclient/69/lib/python3.6/site-packages/cfclient/ui/main.py", line 266, in __init__
tab = tabClass(self.tabs, cfclient.ui.pluginhelper)
File "/snap/cfclient/69/lib/python3.6/site-packages/cfclient/ui/tabs/locopositioning_tab.py", line 469, in __init__
self._set_up_plots()
File "/snap/cfclient/69/lib/python3.6/site-packages/cfclient/ui/tabs/locopositioning_tab.py", line 500, in _set_up_plots
self._plot_3d.native.setSizePolicy(sizePolicy)
AttributeError: 'CanvasBackend' object has no attribute 'setSizePolicy'
I think ok, this can't be so difficult. I tried to install the recommended toolchain (yeah, ! read that's for Ubuntu 16.04 & 18.04):
Code: Select all
sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
sudo apt install gcc-arm-embedded
Code: Select all
Get:10 http://de.archive.ubuntu.com/ubuntu focal-updates/multiverse amd64 DEP-11 Metadata [2.468 B]
Reading package lists... Done
E: The repository 'http://ppa.launchpad.net/team-gcc-arm-embedded/ppa/ubuntu focal Release' does not have a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Updating the bitcrazeVM to Ubuntu 18.04 didn't help, too.
At the moment I have electronic scrap here for over 400€. Actually, I wanted to solve a simple task to occupy a parking lot with a drone as proof of concept. But at the moment I am just frustrated because nothing works.
Please help me, maybe with a simple manual, what I need to successfully program my Crazyflie (except Eclipse and Visual Studio code).
Thanks a lot!
schmelle2