Page 1 of 1

Bitcraze VM cfclient cannot use CrazyRadio

Posted: Thu Oct 28, 2021 10:12 pm
by traffens
Good evening,

This tends to happen anomalously. When I start cfclient via the desktop icon, or when i run the 'cfclient' command, I get an error every time I try to "scan":

Code: Select all

INFO:cfclient.ui.tabs.QualisysTab:Switching Flight Mode to: FlightModeStates.DISCONNECTED
INFO:cflib.crtp.radiodriver:v0.53 dongle with serial N/A founddd
INFO:cflib.drivers.cfusb:Looking for devices....
INFO:cflib.crtp.prrtdriver:Initialized PRRT driver.
===== 2021.10.29 00:10:26 =====
Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-clients-python/src/cfclient/ui/main.py", line 614, in _scan_from_button
    radio = cflib.crtp.radiodriver.RadioManager.open(0)
AttributeError: module 'cflib.crtp.radiodriver' has no attribute 'RadioManager'
Any ideas here as to why this likes to randomly occur? it takes several reboots to get the radio to magically work.

Re: Bitcraze VM cfclient cannot use CrazyRadio

Posted: Mon Nov 01, 2021 5:22 am
by jonasdn
Hi traffens!

This sounds weird! I have not hear about this before. Could I perhaps ask:
  1. is this from a VM or natrive?
  2. is this Mac? Linux? Windows?
Jonas

Re: Bitcraze VM cfclient cannot use CrazyRadio

Posted: Mon Nov 01, 2021 11:28 pm
by traffens
1. This is from the bitcraze VM.

2. the barebones machine is windows 10.

I found that it likes to happen when the drone is OFF. if the drone is ON, this error goes away occasionally.

Re: Bitcraze VM cfclient cannot use CrazyRadio

Posted: Tue Nov 09, 2021 5:40 am
by jonasdn
It sounds like a mismatch between the client and the library. Could you make sure that the lib and cfclient are both latest version?

The RadioManager class was added as public to the radiodriver bout 9 months ago to the library.

Re: Bitcraze VM cfclient cannot use CrazyRadio

Posted: Tue Nov 09, 2021 10:55 pm
by traffens
Theyre both the "latest" version but my team's been doing development on both, so we were curious if this is a well-known bug, or if something we did has broken the RadioManager class.