Page 1 of 1

Altitude hold in Python API

Posted: Sat Feb 14, 2015 12:58 am
by moejoe
Hi all,

thanks for building all this amazing stuff.

My question: With my crazyflie 2.0 - is there a way to invoke altitude hold mode through the Python API?

Thanks!

Re: Altitude hold in Python API

Posted: Sat Feb 14, 2015 1:15 am
by moejoe
Okay, I got an idea now. It seems to be

Code: Select all

crazyflie.param.set_value('flightmode.althold', true);
Going to try that now.

Re: Altitude hold in Python API

Posted: Mon Feb 16, 2015 9:10 am
by arnaud
Hi,

Yes this is how you enable altitude hold, once enabled the thrust sent to the copter is interpreted as vertical rate where 32767 is 0. See https://github.com/bitcraze/crazyflie-c ... ut.py#L275 for scaling implementation in the joystick driver.