Page 1 of 1

Hover using Loco Positioning System

Posted: Tue Apr 30, 2019 7:13 pm
by die4doby
Hi,

I finally managed to make my Crazyflie and the LPS to work properly. My current goal is to fly the drone in hover mode using the LPS.

Is there any sample python code to achieve this autonomous flight? Most of the codes available assumes using the Flow Deck.

Re: Hover using Loco Positioning System

Posted: Thu May 02, 2019 7:29 am
by arnaud
There is multiple examples that demonstrates autonomous flight, but it is true that we have some work to do to document the lib better.

The simplest to start with would be the position commander demo script: https://github.com/bitcraze/crazyflie-l ... er_demo.py.

If you want to see how to send setpoint packets you can look at the autonomous sequence example: https://github.com/bitcraze/crazyflie-l ... equence.py.

Finally if you want to experiment with the high level commander, its is a trajectory planner/playback loop that runs in the Crazyflie, you can look at the high level autonomous sequence: https://github.com/bitcraze/crazyflie-l ... h_level.py.