Bitcraze VM cfclient cannot use CrazyRadio

Post here to get support
Post Reply
traffens
Beginner
Posts: 21
Joined: Sun Sep 26, 2021 9:01 pm

Bitcraze VM cfclient cannot use CrazyRadio

Post 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.
jonasdn
Expert
Posts: 132
Joined: Mon Mar 01, 2021 3:13 pm

Re: Bitcraze VM cfclient cannot use CrazyRadio

Post 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
traffens
Beginner
Posts: 21
Joined: Sun Sep 26, 2021 9:01 pm

Re: Bitcraze VM cfclient cannot use CrazyRadio

Post 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.
jonasdn
Expert
Posts: 132
Joined: Mon Mar 01, 2021 3:13 pm

Re: Bitcraze VM cfclient cannot use CrazyRadio

Post 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.
traffens
Beginner
Posts: 21
Joined: Sun Sep 26, 2021 9:01 pm

Re: Bitcraze VM cfclient cannot use CrazyRadio

Post 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.
Post Reply