Hover using Loco Positioning System

All discussions related to the Loco Positioning system
Post Reply
die4doby
Beginner
Posts: 6
Joined: Tue Jul 16, 2013 8:31 am

Hover using Loco Positioning System

Post 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.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Hover using Loco Positioning System

Post 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.
Post Reply