Problem with Multi ranger deck demo

Discussions about all things Bitcraze
Post Reply
kloya
Beginner
Posts: 5
Joined: Tue Feb 26, 2019 9:06 pm

Problem with Multi ranger deck demo

Post by kloya »

When i run the demo provided on bitcraze website for multi ranger deck

Connecting to radio://0/80/2M
Connection to radio://0/80/2M failed: Too many packets lost
Traceback (most recent call last):
File "C:\Users\karti\Desktop\thesis\Crazyflie\demo.py", line 45, in <module>
with SyncCrazyflie(URI, cf=cf) as scf:
File "C:\Users\karti\AppData\Local\Programs\Python\Python38-32\lib\site-packages\cflib\crazyflie\syncCrazyflie.py", line 67, in __enter__
self.open_link()
File "C:\Users\karti\AppData\Local\Programs\Python\Python38-32\lib\site-packages\cflib\crazyflie\syncCrazyflie.py", line 64, in open_link
raise Exception(self._error_message)
Exception: Too many packets lost
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Problem with Multi ranger deck demo

Post by arnaud »

Hi,
This is likely caused by your Crazyflie not being setup on channel 80 datarate 2M as configured in the script by the uri "radio://0/80/2M".

You can find your current Crazyflie radio parameters by connecting it with the Crazyflie client, the URI will be shown in the client. The connection parameter can be changes in the client in the menu "connect/configure 2.x", it is advised to at least set the datarate to 2M to improve radio performance.
kloya
Beginner
Posts: 5
Joined: Tue Feb 26, 2019 9:06 pm

Re: Problem with Multi ranger deck demo

Post by kloya »

Thanks that helped.
Post Reply