Get raw measurement from the flow deck V2

Discussions and questions about the Crazyflie Nano Quadcopter
emoyers
Beginner
Posts: 12
Joined: Sat Feb 08, 2020 5:26 pm

Re: Get raw measurement from the flow deck V2

Post by emoyers » Thu Mar 12, 2020 11:10 pm

So, if I'm trying to keep the CF always fly at a specific altitude, what do you recommend me to do?



tobias
Bitcraze
Posts: 1995
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: Get raw measurement from the flow deck V2

Post by tobias » Fri Mar 13, 2020 8:12 am

You mean, instead of keeping a distance to the ground, you would like it to keep the altitude? This would require a more advanced filter which could fuse the barometer and the ground distance and remove potential steps/spikes from the sensors. This would be a very nice feature but nothing we have had time to look into.

emoyers
Beginner
Posts: 12
Joined: Sat Feb 08, 2020 5:26 pm

Re: Get raw measurement from the flow deck V2

Post by emoyers » Sat Mar 14, 2020 2:29 am

Sorry for the confusion, I meant distance to the ground. What do you recommend me to use?

kimberly
Bitcraze
Posts: 326
Joined: Fri Jul 06, 2018 11:13 am

Re: Get raw measurement from the flow deck V2

Post by kimberly » Mon Mar 16, 2020 3:28 pm

Hi!

Check out the commander example for some inspiration: https://github.com/bitcraze/crazyflie-l ... er_demo.py

The relative height can be changed with mc.up(0.5) or mc.down(0.5)

(just a general tip, if your topic diverts a bit from the current thread topic, make a new forum message. Makes it easier for us to help out! :) )

Post Reply