hover

All discussions related to the Loco Positioning system
Post Reply
lcmiao
Beginner
Posts: 8
Joined: Tue Jan 15, 2019 1:26 am

hover

Post by lcmiao »

Hello everyone,
I am new in using the crazyflie loco positionning system and I used six anchors for the loco positioning system. I want to known how can I use my Loco Positioning System to achieve hover test?
Thank's a lot for your help!!!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: hover

Post by arnaud »

After folowing the getting started guide for LPS you can follow this guide that will show you how to make your Crazyflie hover in LPS: https://www.bitcraze.io/getting-started ... ition-hold.
lcmiao
Beginner
Posts: 8
Joined: Tue Jan 15, 2019 1:26 am

Re: hover

Post by lcmiao »

Can i use python script to achieve hover? if it is,can you give me some reference script?
Thank's a lot for your help!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: hover

Post by arnaud »

Yes you can hover using a python script, the easiest example to start from is most likely the motion commander demo: https://github.com/bitcraze/crazyflie-l ... er_demo.py.
lcmiao
Beginner
Posts: 8
Joined: Tue Jan 15, 2019 1:26 am

Re: hover

Post by lcmiao »

Hi Arnaud,
Thanks for your reply! But When I run the motion commander demo: https://github.com/bitcraze/crazyflie-l ... er_demo.py, An error has appeared: ‘File"C:\Users\DELL\Desktop\crazyflie-lib-python-master\examples\position_commander_demo.py", line 37, in <module>
from cflib.positioning.position_hl_commander import PositionHlCommander ModuleNotFoundError: No module named 'cflib.positioning.position_hl_commander'
’.
But in cflib\positioning I can find ‘position_hl_commander.py’.
Do you know how I can fix this error?
Thank's a lot for your help!
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: hover

Post by arnaud »

It is most likely that the lib is not installed in the python environment. You can install it by navigating into the lib folder from the command prompt and by typing "pip install -e ."
Post Reply