Page 1 of 1

Python script to take off drone

Posted: Wed Dec 21, 2016 11:27 am
by vaan46
Sorry for my question, you can take off the drone via a simple python script without using a joystick or client, then simply calling the script through command line?
to explain better, scripts like the examples in crazyflie-lib-python (basiclog, autonoumusSequence..)
thanks

Re: Python script to take off drone

Posted: Tue Jan 03, 2017 11:08 am
by arnaud
Hi, The autonomous sequence example is doing that, autonomous takeoff, but it requires a local positioning system of some sort.

What are you trying to achieve? Autonomous flight without a local positioning system of other extra sensor will only results in crash. This is because the Crazyflie has not way of knowing where it is in the room. That said you can always experiment with sending sequences of commands but most likely you will not be able to fly more than a couple of seconds before hitting something.

If you browse the forum for hover mode you will find a couple of attempt and even some code, for example this thread: viewtopic.php?f=6&t=2242.