Positioning

All discussions related to the Loco Positioning system
Post Reply
Typh
Beginner
Posts: 2
Joined: Tue Dec 24, 2019 8:14 am

Positioning

Post by Typh »

Hi, for a project, we need to code a crazyflies drone.

However, when we start our drone, it goes off in all directions and then executes the actions and doesn't execute them in the right direction. I saw on your youtube page this video "lighthouse positioning yaw measurement demo" to put the drone back in the x direction. Would it be possible to explain me the code?

Thank you very much for your help.
arnaud
Bitcraze
Posts: 2538
Joined: Tue Feb 06, 2007 12:36 pm

Re: Positioning

Post by arnaud »

Using lighthouse positioning, the Crazyflie is able to measure and correct its orientation, this is what the video is demonstrating.

Using LPS, it is not possible to measure the YAW and so the Crazyflie must start with a already known YAW in order for it to fly properly. You need to start your Crazyflie with the antena in the direction of the X axis (see this image in the doc: https://www.bitcraze.io/getting-started ... -crazyflie). This way the startup YAW matches the initial yaw setup in the Crazylfie.
Post Reply