I am trying to use the "command based flight control" in the cfclient, but the buttons are grayed out.
I am using the latest cfclient version and the latest version of the cflib on ubuntu 20.04 (Desktop pc). I also tried the cfclient on a laptop and there everything works fine.
For the position estimation I am using the lighthouse deck and the positioning seems to work fine (the drone can estimate the base stations geometry). I could also flash the latest firmware onto the drone.
This is the output at the console tab:
Code: Select all
SYS: Crazyflie 2.1 is up and running!
SYS: Production release 2022.01
SYS: I am 0x203937434848500D0047003C and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
DECK_CORE: 1 deck(s) found
DECK_CORE: Calling INIT on driver bcLighthouse4 for deck 0
IMU: BMI088: Using I2C interface.
IMU: BMI088 Gyro connection [OK].
IMU: BMI088 Accel connection [OK]
IMU: BMP388 I2C connection [OK]
ESTIMATOR: Using Kalman (2) estimator
CONTROLLER: Using PID (1) controller
MTR-DRV: Using brushed motor driver
SYS: About to run tests in system.c.
SYS: NRF51 version: 2022.01
EEPROM: I2C connection [OK].
STORAGE: Storage check [OK].
IMU: BMI088 gyro self-test [OK]
SYS: Self test passed!
STAB: Wait for sensor calibration...
SYS: Free heap: 19248 bytes
LHFL: Lighthouse bootloader version: 1
STAB: Ready to fly.
LHFL: Bitstream CRC32: 112BC794 [PASS]
LHFL: Firmware version 6 verified, booting deck!
Code: Select all
INFO:cfclient.gui: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 /home/wimiadmin/bitcraze_folder/venv/lib/python3.8/site-packages/cfclient/configs/config.json
INFO:cfclient.utils.config:Config file read from [/home/wimiadmin/.config/cfclient/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.gui:If startup fails because of "xcb", install dependency with `sudo apt install libxcb-xinerama0`.
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cfclient.ui.tabs.QualisysTab:Switching Flight Mode to: FlightModeStates.DISCONNECTED
INFO:cflib.crtp.radiodriver:v99.55 dongle with serial N/A found
INFO:cfclient.utils.input:Selected MUX: Normal
INFO:cfclient.ui.main:Role of LiteOn Lenovo Traditional USB Keyboard Consumer Control is Device
INFO:cfclient.utils.input.mux:Adding device LiteOn Lenovo Traditional USB Keyboard Consumer Control to MUX Normal
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/2M/E7E7E7E7E1]
INFO:cflib.crazyflie:We are connected[radio://0/80/2M/E7E7E7E7E1], request connection setup
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/2M/E7E7E7E7E1]
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=10
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=9
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
WARNING:cflib.crazyflie.log:Error no LogEntry to handle id=8
INFO:cflib.crazyflie.platformservice:Protocol version: 4
INFO:cflib.crazyflie.toc:TOC for port [5] found in cache
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:6 memories found
INFO:cflib.crazyflie:Memories finished updating
INFO:cflib.crazyflie.toc:TOC for port [2] found in cache
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
WARNING: QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING:vispy:QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING: QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING:vispy:QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING: QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING:vispy:QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING: QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING:vispy:QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING: QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING:vispy:QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING: QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
WARNING:vispy:QObject::connect: Cannot queue arguments of type 'QList<QPersistentModelIndex>'
(Make sure 'QList<QPersistentModelIndex>' is registered using qRegisterMetaType().)
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=1
INFO:cflib.crazyflie.log:Have successfully started logging for id=3
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cflib.crazyflie.log:Have successfully started logging for id=4
INFO:cfclient.ui.tabs.locopositioning_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
INFO:cfclient.ui.tabs.locopositioning_tab:Requesting loco deck parameter
INFO:cfclient.ui.tabs.lighthouse_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
WARNING:cfclient.ui.tabs.lighthouse_tab:'bsAvailable'
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=5
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.ui.tabs.QualisysTab:Crazyflie disconnected from radio://0/80/2M/E7E7E7E7E1
===== 2022.04.06 17:04:29 =====
Traceback (most recent call last):
File "/home/wimiadmin/bitcraze_folder/venv/lib/python3.8/site-packages/cfclient/ui/tabs/lighthouse_tab.py", line 472, in _status_report_received
self._start_read_of_geo_data()
File "/home/wimiadmin/bitcraze_folder/venv/lib/python3.8/site-packages/cfclient/ui/tabs/lighthouse_tab.py", line 434, in _start_read_of_geo_data
self._lh_memory_helper.read_all_geos(self._geometry_read_signal.emit)
AttributeError: 'NoneType' object has no attribute 'read_all_geos'
INFO:cflib.crtp.radiodriver:v99.55 dongle with serial N/A found
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
INFO:cflib.crtp.radiodriver:v99.55 dongle with serial N/A found
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
INFO:cflib.crtp.radiodriver:v99.55 dongle with serial N/A found
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/2M/E7E7E7E7E1]
INFO:cflib.crazyflie:We are connected[radio://0/80/2M/E7E7E7E7E1], request connection setup
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/2M/E7E7E7E7E1]
INFO:cflib.crazyflie.platformservice:Protocol version: 4
INFO:cflib.crazyflie.toc:TOC for port [5] found in cache
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:6 memories found
INFO:cflib.crazyflie:Memories finished updating
INFO:cflib.crazyflie.toc:TOC for port [2] found in cache
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=6
INFO:cflib.crazyflie.log:Have successfully started logging for id=8
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.crazyflie.log:Have successfully started logging for id=9
INFO:cfclient.ui.tabs.locopositioning_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
INFO:cfclient.ui.tabs.locopositioning_tab:Requesting loco deck parameter
INFO:cfclient.ui.tabs.lighthouse_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
WARNING:cfclient.ui.tabs.lighthouse_tab:'bsAvailable'
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cflib.crazyflie.log:Have successfully started logging for id=10
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.ui.tabs.QualisysTab:Crazyflie disconnected from radio://0/80/2M/E7E7E7E7E1
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/2M/E7E7E7E7E1]
INFO:cflib.crazyflie:We are connected[radio://0/80/2M/E7E7E7E7E1], request connection setup
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/2M/E7E7E7E7E1]
===== 2022.04.06 17:04:18 =====
Traceback (most recent call last):
File "/home/wimiadmin/bitcraze_folder/venv/lib/python3.8/site-packages/cfclient/ui/tabs/lighthouse_tab.py", line 472, in _status_report_received
self._start_read_of_geo_data()
File "/home/wimiadmin/bitcraze_folder/venv/lib/python3.8/site-packages/cfclient/ui/tabs/lighthouse_tab.py", line 434, in _start_read_of_geo_data
self._lh_memory_helper.read_all_geos(self._geometry_read_signal.emit)
AttributeError: 'NoneType' object has no attribute 'read_all_geos'
INFO:cflib.crazyflie.platformservice:Protocol version: 4
INFO:cflib.crazyflie.toc:TOC for port [5] found in cache
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:6 memories found
INFO:cflib.crazyflie:Memories finished updating
INFO:cflib.crazyflie.toc:TOC for port [2] found in cache
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=11
INFO:cflib.crazyflie.log:Have successfully started logging for id=13
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.crazyflie.log:Have successfully started logging for id=14
INFO:cfclient.ui.tabs.locopositioning_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
INFO:cfclient.ui.tabs.locopositioning_tab:Requesting loco deck parameter
INFO:cfclient.ui.tabs.lighthouse_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
WARNING:cfclient.ui.tabs.lighthouse_tab:'bsAvailable'
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=15
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cflib.crazyflie:Closing link
INFO:cflib.crazyflie:Callback->Disconnected from [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.ui.tabs.QualisysTab:Crazyflie disconnected from radio://0/80/2M/E7E7E7E7E1
INFO:cflib.crtp.radiodriver:v99.55 dongle with serial N/A found
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
INFO:cflib.crazyflie:Callback->Connection initialized[radio://0/80/2M/E7E7E7E7E1]
INFO:cflib.crazyflie:We are connected[radio://0/80/2M/E7E7E7E7E1], request connection setup
INFO:cflib.crazyflie:Callback->Connected to [radio://0/80/2M/E7E7E7E7E1]
INFO:cflib.crazyflie.platformservice:Protocol version: 4
INFO:cflib.crazyflie.toc:TOC for port [5] found in cache
INFO:cflib.crazyflie:Log TOC finished updating
INFO:cflib.crazyflie.mem:6 memories found
INFO:cflib.crazyflie:Memories finished updating
INFO:cflib.crazyflie.toc:TOC for port [2] found in cache
INFO:cflib.crazyflie:Param TOC finished updating
INFO:cflib.crazyflie:Callback->Connection setup finished [radio://0/80/2M/E7E7E7E7E1]
INFO:cfclient.utils.logconfigreader:Parsing [stabilizer.json]
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=16
INFO:cflib.crazyflie.log:Have successfully started logging for id=18
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cfclient.utils.input:Using device blacklist [(VirtualBox|VMware)]
INFO:cflib.crazyflie.log:Have successfully started logging for id=19
INFO:cfclient.ui.tabs.locopositioning_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
INFO:cfclient.ui.tabs.locopositioning_tab:Requesting loco deck parameter
INFO:cfclient.ui.tabs.lighthouse_tab:Crazyflie connected to radio://0/80/2M/E7E7E7E7E1
WARNING:cfclient.ui.tabs.lighthouse_tab:'bsAvailable'
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.AK8963]: 0
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.LPS25H]: 0
INFO:cflib.crazyflie.log:Have successfully started logging for id=20
INFO:cfclient.ui.tabs.FlightTab:[imu_sensors.BMP388]: 1
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.locopositioning_tab:No Loco deck installed
INFO:cfclient.ui.tabs.FlightTab:Changed effect to 0
Thanks!