Control Tower Error

Post here to get support
cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Control Tower Error

Post by cevo » Thu Jun 27, 2019 6:01 pm

I try to run the ICRA2019 demo

with following step
1. Compile the firmware of crazefly and flash firmware to drone : https://github.com/bitcraze/crazyflie-f ... /icra-2019
git clone --branch icra-2019 https://github.com/bitcraze/crazyflie-f ... erimental/ icra2019

2. Setup base station and lighthouse https://wiki.bitcraze.io/doc:lighthouse:setup.

3. Setup CrazeflyRadio PA to connect to the drone ? the getting started with Crazyflie guide you will have everything setup driver-wise.

- Install cflib installed in your python environment,
- export PYTHONPATH=/home/myname/Workspace/crazyflie-clients-python/src/
- clone the crazyflie-lib-python repository and to install it with "python3 -m pip install -e ."
- setup your crazyflies URIs in the control tower and it will connect your Crazyflies when it runs

4. Run: control tower (https://github.com/bitcraze/crazyflie-f ... l_tower.py
)
control tower gui running fine.
However once I try to run the control_tower.py I got this error "Exception: Cannot find a Crazyradio Dongle"

More info in explanation video: https://youtu.be/NscUg4Mj2aU

Question
1. Do I need to change the URI in following line of control_tower.py ??
If so how I can find the "E7E7E7E70x" series no? where I can get it ?

2. Is this the right tutorial I should follow to solve this problem ?
https://www.bitcraze.io/getting-started ... ardware-vm

3. In the code below seems like I need 1 CrazyRadio / Drone ? Does it possible to use 1 CrazyRadio / 4 drone ?

Code: Select all

 524 
    525 uris = [
    526     'radio://0/10/2M/E7E7E7E701',
    527     'radio://0/10/2M/E7E7E7E702',
    528     'radio://0/10/2M/E7E7E7E703',
    529     'radio://0/10/2M/E7E7E7E704',
    530     'radio://1/10/2M/E7E7E7E705',
    531     'radio://1/10/2M/E7E7E7E706',
    532     'radio://1/10/2M/E7E7E7E707',
    533     'radio://1/10/2M/E7E7E7E708',
    534 ]
    535 
    536 count = 1
    537 mode = 'normal'

Error I got from execute control_tower.py

Code: Select all

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E702 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connecting to radio://0/10/2M/E7E7E7E704
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E704 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connecting to radio://0/10/2M/E7E7E7E703
Connecting to radio://1/10/2M/E7E7E7E705
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E703 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E705 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connecting to radio://1/10/2M/E7E7E7E706
Connecting to radio://1/10/2M/E7E7E7E708
Connecting to radio://1/10/2M/E7E7E7E707
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E706 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E708 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E707 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Connecting to radio://0/10/2M/E7E7E7E701
Connecting to radio://0/10/2M/E7E7E7E702
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E701 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connecting to radio://0/10/2M/E7E7E7E704
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E702 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E704 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connecting to radio://1/10/2M/E7E7E7E705
Connecting to radio://0/10/2M/E7E7E7E703
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E705 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://0/10/2M/E7E7E7E703 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connecting to radio://1/10/2M/E7E7E7E706
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E706 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle
Connecting to radio://1/10/2M/E7E7E7E708

Connecting to radio://1/10/2M/E7E7E7E707
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Connection to radio://1/10/2M/E7E7E7E708 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle
Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle


Connection to radio://1/10/2M/E7E7E7E707 failed: Couldn't load link driver: Cannot find a Crazyradio Dongle

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 128, in __init__
    device = _find_devices()[devid]
IndexError: list index out of range

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crazyflie/__init__.py", line 223, in open_link
    link_uri, self._link_quality_cb, self._link_error_cb)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/__init__.py", line 91, in get_link_driver
    instance.connect(uri, link_quality_callback, link_error_callback)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 163, in connect
    address)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 102, in __init__
    _RadioManager._radios[self._devid] = _SharedRadio(self._devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/crtp/radiodriver.py", line 71, in __init__
    self.radio = Crazyradio(devid=devid)
  File "/home/bitcraze/projects/crazyflie-lib-python/cflib/drivers/crazyradio.py", line 133, in __init__
    raise Exception('Cannot find a Crazyradio Dongle')
Exception: Cannot find a Crazyradio Dongle

Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
Want 1 more copters
Trying to prepare 1 copter(s)
Prepared 0 copter(s)
^CTraceback (most recent call last):
  File "./control_tower.py", line 564, in <module>
    tower.fly(count)
  File "./control_tower.py", line 367, in fly
    time.sleep(0.2) 
Last edited by cevo on Sat Jun 29, 2019 7:26 pm, edited 3 times in total.



arnaud
Bitcraze
Posts: 2071
Joined: Tue Feb 06, 2007 12:36 pm

Re: Control Tower Error

Post by arnaud » Fri Jun 28, 2019 6:54 am

Hi,

1. You need to configure your Crazyflies to be on the right address. You can do that with the Crazyflie client: https://wiki.bitcraze.io/doc:crazyflie: ... figuration. If you want to keep the example unmodified, set all your Crazyflies to channel 10, datarate 2M and set the last byte of the address to a different value for each Crazyflies. You can comment the crazyflies you do not have in the control tower.

2. Yes, this is most likely the problem: the Crazyradio is not accessible in the VM and it should be passed to the VM so that the control tower can connect Crazyflies.

3. The URI structure is "radio://<crazyradio_id>/<channel>/<datarate>/<address>. So in the control tower case there is two radios used only. If you keep <radio_id> to 0, you will only use one crazyradio to connect all your Crazyflies.

cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Re: Control Tower Error

Post by cevo » Sat Jun 29, 2019 6:30 pm

- I am now manage to compile to firmware correctly
- I can flash firmware using cfclient successfully.

However how I can flash firmware together with assign the address of crazyfly with following command ?
python3 -m cfloader flash cf2.bin stm32-fw -w radio://0/10/2M/E7E7E7E701
once I excute the command it stuck forever at this line and the LED-connection (yellow) is not show.
admin$ python3 -m cfloader flash cf2.bin stm32-fw -w radio://0/10/2M/E7E7E7E701
Reset to bootloader mode ...
1. What are the exact step to flash firmware using this command ? I try to press 3 secs to firmware mode already but it still nothing happen while 2 LED bluelight flashing properly.
2. Do I need to use it together with cfclient ?
3. I noticed that you just merge to main firmware, so should I clone and build new firmware from the official firmware and flash using cfclient as usual ?
https://www.bitcraze.io/2018/02/merging ... -firmware/

cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Re: Control Tower Error

Post by cevo » Sat Jun 29, 2019 6:46 pm

I just found out the solution !!

this command will only work if it point to proper address and channel
I changed E7E7E7E701 to E7E7E7E7E7 and it work

Code: Select all

python3 -m cfloader flash cf2.bin stm32-fw -w radio://0/10/2M/E7E7E7E7E7
at first I thought this command is the command to set the channel and address.But it not
So, this would mean that I need to change the address of each crazefly to difference address E7E7E7E701 -> E7E7E7E703
then flash using this command

Code: Select all

python3 -m cfloader flash cf2.bin stm32-fw -w radio://0/10/2M/E7E7E7E701
python3 -m cfloader flash cf2.bin stm32-fw -w radio://0/10/2M/E7E7E7E702
python3 -m cfloader flash cf2.bin stm32-fw -w radio://0/10/2M/E7E7E7E703

Now control tower up and online .

- Which command I need to execute in order to let the drone fly ?
Attachments
Screen Shot 2562-06-30 at 01.56.24.png

cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Re: Control Tower Error

Post by cevo » Sat Jun 29, 2019 7:22 pm

the control_tower need at least 8 drones to perform the fly?

I executed

Code: Select all

$python3 control_tower.py "2" "s"
and got this msg.

Code: Select all

Starting tower with 2 Crazyflie(s)
Flying with synchronized trajectories
Can only find  0 copter(s) that are charged and ready
Connecting to radio://0/10/2M/E7E7E7E7E1
Can only find  0 copter(s) that are charged and ready
Can only find  0 copter(s) that are charged and ready
Can only find  0 copter(s) that are charged and ready
Can only find  0 copter(s) that are charged and read
How to test fly with just 2 or 1 drone?

arnaud
Bitcraze
Posts: 2071
Joined: Tue Feb 06, 2007 12:36 pm

Re: Control Tower Error

Post by arnaud » Mon Jul 01, 2019 7:28 am

You can comment-out drones from the list in the control tower if you want to fly less drones.

The control tower will automatically order a drone to take off if it is both ready and its battery voltage is above a certain threshold (by default it is 4.0V).

Your screenshot of the GUI shows one Crazyflie connected in IDLE state. It should be in ready state in order to take-off.

There is a couple of things you can try:
1. Make sure you are flashing the experimental icra2019 branch
2. Make sure the base-station geometry is correctly set in the Lighthouse deck driver using the client, as described in the lighthouse getting started: https://wiki.bitcraze.io/doc:lighthouse:setup
3. Once the Crazyflies have their position, the front right LED should be lit in green.
4. Only un-comment URIs you are using in the control tower
5. Modify the take-off voltage threshold to a value under the current voltage of your Crazyflies.

cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Re: Control Tower Error

Post by cevo » Mon Jul 01, 2019 9:07 am

I edit lighthouse.c and build new cf2.bin
and got this fatal error, can I just ignore it ?
No tags can describe '27067fa425fec8062bde89cd7332f2ae5402d4a8'.
Try --always, or create some tags.
Build 0:27067fa425fe (NA) MODIFIED

Code: Select all

192:icra2019 admin$ make
  CLEAN_VERSION
  CC    lighthouse.o
  VTMPL version.c
fatal: No tags can describe '27067fa425fec8062bde89cd7332f2ae5402d4a8'.
Try --always, or create some tags.
  CC    version.o
  LD    cf2.elf
  COPY  cf2.hex
  COPY  cf2.bin
  DFUse cf2.dfu
Build for the CF2 platform!
fatal: No tags can describe '27067fa425fec8062bde89cd7332f2ae5402d4a8'.
Try --always, or create some tags.
Build 0:27067fa425fe (NA) MODIFIED
Version extracted from git
Crazyloader build!
   text	   data	    bss	    dec	    hex	filename
 299788	   6732	  96492	 403012	  62644	cf2.elf

cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Re: Control Tower Error

Post by cevo » Mon Jul 01, 2019 9:25 am

I try to test the drone and now it fly however in weird direction and crash I will post the video soon.
However now I got some question

1. How to proper change the position mode ? Using the cfcclient ?
2. How to plot the graph ? I did follow the step but no graph show at all?
3. Should I comment out this line in src/deck/drivers/src/lighthouse.c

Code: Select all

/#ifndef DISABLE_LIGHTHOUSE_DRIVER
//  #define DISABLE_LIGHTHOUSE_DRIVER 1
//#endif
change to

Code: Select all

#ifndef DISABLE_LIGHTHOUSE_DRIVER
  #define DISABLE_LIGHTHOUSE_DRIVER 1
#endif

Code: Select all

The safest way to verify the orientation of the space is to look at the estimated position. In the client you can create a new log block in “settings/logging configuration” containing “stateEstimate.x/y/z”. You can then look at it in the plotter and move the Crazyflie around to understand how is X positive oriented:
 

arnaud
Bitcraze
Posts: 2071
Joined: Tue Feb 06, 2007 12:36 pm

Re: Control Tower Error

Post by arnaud » Mon Jul 01, 2019 9:56 am

Hi,

You can safely ignore the git error during build.

As for your questions:
1. I do not understand what you mean by "positioning mode". There is no positioning modes in the current implementation of the lighthouse positioning.
2. You can find the documentation for the client in the wiki: https://wiki.bitcraze.io/doc:crazyflie: ... ex#logging. You need to create a log block and then you will be able to display it in the plotter tab of the client.
3. These line should be commented as documented in the wiki lighthouse page. If you un-comment them, the lighthouse deck driver will be disabled which is not what you want.

My suggestion to go forward is to follow the wiki lighthouse setup phase till the end before trying to run any automated flight scripts.

cevo
Beginner
Posts: 11
Joined: Thu Jun 27, 2019 5:51 pm

Re: Control Tower Error

Post by cevo » Mon Jul 01, 2019 11:25 am

Actually it already comment out at first already when I was checkout from the repo.

Any I have follow the lighthouse step properly already but the drone fly really weird. sometime fly good at the beginning (similar as ICRA2019 video) then suddenly kamikaze down to the floor and crash.

Question
1. Should I put the HMD on the floor and get_bs_position.py or
carry the HMD over the floor then get_bs_position.py ?

2. once I did some change to the code src/deck/drivers/src/lighthouse.c, can I just "make" or "make clean" then "make"?

3. Should I adjust the basestation downward 30 degree , is it necessary ?

Post Reply