Dear Crazyflie workers
i want get my CF2 fly automatically,but i have some questions in my heart and i meet a problem today.
1. because lack of site,so i just place the anchor in my dormitory provisionally,and its space is very small. i set the lps coordinate in the cfclient is
Code: Select all
anchor0: 0.00 0.00 0.00
anchor1: 1.06 0.00 0.00
anchor2: 1.06 1.09 0.00
anchor3: 0.00 1.09 0.00
anchor4: 1.06 0.49 0.78
anchor5: 0.00 0.76 0.55
i place the CF2 in the middle of these nodes,but when i execute the"python examples/autonomousSequence.py",the message says "Too many packets lost",like this
Code: Select all
(venv) root@nickcong-Inspiron-3537:/home/nickcong/crazyflie-lib-python# python examples/autonomousSequence.py
Connecting to radio://0/80/2M
Got link error callback [Too many packets lost] in state [1]
Connection to radio://0/80/2M failed: Too many packets lost
Traceback (most recent call last):
File "examples/autonomousSequence0.py", line 147, in <module>
with SyncCrazyflie(uri) as scf:
File "/home/nickcong/crazyflie-lib-python/cflib/crazyflie/syncCrazyflie.py", line 68, in __enter__
self.open_link()
File "/home/nickcong/crazyflie-lib-python/cflib/crazyflie/syncCrazyflie.py", line 65, in open_link
raise Exception(self._error_message)
Exception: Too many packets lost
2.my understanding of the sequence is that in the autonomousSequence.py the sequence in the up is the coordinate which i want the CF2 to fly.
so i just change the sequence of X,Y,Z,and i am not to change the other code.
then do "python examples/autonomousSequence.py" and will the CF2 fly automatically according to my setup in this ?
Code: Select all
# Change the sequence according to your setup
# x y z YAW
sequence = [
(0.5, 0.3, 0.4, 0),
(0.3, 0.5, 0.4, 0),
(0.5, 1.0, 0.4, 0),
(0.3, 0.8, 0.6, 0),
(0.4, 0.4, 0.4, 0),
]
3.in the linux,how can i install the toobelt?i browse the instruction in the README.md,it only say install toolbelt in the windows,but it doesn't guide install the toolbelt in the linux.
Thank you for your time and support!