tobias wrote: ↑Thu Nov 23, 2017 8:10 am
how can i connect the crazyflie in the terminal?
That should work. Is the CF2 turned on? And you had no problem when connecting using the cfclient?
This is my output:
Code: Select all
Scanning interfaces for Crazyflies...
Crazyflies found:
radio://0/110/2M
Connecting to radio://0/110/2M
Connected to radio://0/110/2M
[25453][Stabilizer]: {'stabilizer.roll': -5.625945091247559, 'stabilizer.yaw': 2.656627893447876, 'stabilizer.pitch': 1.7939248085021973}
[25463][Stabilizer]: {'stabilizer.roll': -5.567243576049805, 'stabilizer.yaw': 2.634549617767334, 'stabilizer.pitch': 1.777416467666626}
[25473][Stabilizer]: {'stabilizer.roll': -5.510120391845703, 'stabilizer.yaw': 2.723010540008545, 'stabilizer.pitch': 1.854751467704773}
...
Hi,tobis
i am very glad to you see the problem,and very thank you for your answer.
i try again and again,finally i find the problem,but i don't know why.now,it can work in the terminal.
i have no problem when connecting using the cfclient,but it needed sudo or it can't connect, so i guess it may be the same reason that can't connect the CF2 in the terminal ,so when i add sudo,it output like this
Code: Select all
(venv) nickcong@nickcong-Inspiron-3537:~/crazyflie-lib-python$ sudo python examples/basiclog.py
Traceback (most recent call last):
File "examples/basiclog.py", line 34, in <module>
import cflib.crtp # noqa
ImportError: No module named cflib.crtp
if i don't add sudo ,it output like this
Code: Select all
(venv) nickcong@nickcong-Inspiron-3537:~/crazyflie-lib-python$ python examples/basiclog.py
Scanning interfaces for Crazyflies...
Crazyflies found:
No Crazyflies found, cannot run example
Traceback (most recent call last):
File "examples/basiclog.py", line 143, in <module>
while le.is_connected:
NameError: name 'le' is not defined
in the end,i just try do it in the root mode,thanks god,it success at last
it out put like this
Code: Select all
(venv) root@nickcong-Inspiron-3537:/home/nickcong/crazyflie-lib-python# python examples/basiclog.py
Scanning interfaces for Crazyflies...
Crazyflies found:
usb://0
Connecting to usb://0
Connected to usb://0
[438809][Stabilizer]: {'stabilizer.yaw': -0.31768038868904114, 'stabilizer.pitch': -1.4990111589431763, 'stabilizer.roll': 1.2577241659164429}
[438819][Stabilizer]: {'stabilizer.yaw': -0.3178338408470154, 'stabilizer.pitch'
1.so,later if i want to do like this does it means i always need the root mode?
2.i have bought your loco position system ,because i want get my CF2 automatic flight.i have the question that do i modify directly the sequence coordinate in the "autonomousSequence.py" and then do "python examples/autonomousSequence.py" is ok?
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 = [
(2.5, 2.5, 1.2, 0),
(1.5, 2.5, 1.2, 0),
(2.5, 2.0, 1.2, 0),
(3.5, 2.5, 1.2, 0),
(2.5, 3.0, 1.2, 0),
(2.5, 2.5, 1.2, 0),
(2.5, 2.5, 0.4, 0),
]
do i think have problem?or need i do other things? (i am a new,it is my first to use the linux and my first time to touch the CF2)
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.