[SOLVED] Grayed Out Command Based Control Tab

Topics related to the Lighthouse positioning system, configuration and use
Post Reply
sAz
Beginner
Posts: 27
Joined: Wed Jun 10, 2020 5:35 pm

[SOLVED] Grayed Out Command Based Control Tab

Post by sAz »

Hi everyone,

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!
and this is what I see in the terminal:

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
Does anyone have an idea or a solution?

Thanks!
Last edited by sAz on Fri May 13, 2022 9:03 am, edited 1 time in total.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Grayed Out Command Based Control Tab

Post by kimberly »

Could you also share a printscreen of the cfclient as well? Sometimes it will detect a certain usb device as a controller, and then it will disable the commander panel.

I'm a bit worried about this error message about the lighthouse tab:

Code: Select all

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'
Do you have another positioning system as well to try out, like a flowdeck?
sAz
Beginner
Posts: 27
Joined: Wed Jun 10, 2020 5:35 pm

Re: Grayed Out Command Based Control Tab

Post by sAz »

This is how the client look like when connected to a drone:
Screenshot from 2022-04-07 13-33-47.png
kimberly wrote: Wed Apr 06, 2022 5:59 pm Do you have another positioning system as well to try out, like a flowdeck?
I have only the lighthouse positioning system. The client worked well earlier on the same computer, but then this functionality failed after updating the client one time (but I am not sure exactly when).
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: Grayed Out Command Based Control Tab

Post by kimberly »

Thanks for the screenshot!

Yes it is as I expected, it thinks that your keyboard is a usb based controller, so we will need to black list it.

Have you seen this forum thread? viewtopic.php?t=5083
You can try the solution in there and see if it works.
sAz
Beginner
Posts: 27
Joined: Wed Jun 10, 2020 5:35 pm

Re: Grayed Out Command Based Control Tab

Post by sAz »

This solution works. I had to blacklist it. Thanks!
Post Reply