How to change thrust in Altitude hold

Firmware/software/electronics/mechanics
Post Reply
a8204013
Beginner
Posts: 4
Joined: Thu May 01, 2014 4:27 pm

How to change thrust in Altitude hold

Post by a8204013 »

Hi everyone,
How to change the thrust in Altitude hold, use code.
Because the default thrust is 50.13%, I want to change the thrust in 60%.

Thanks for your help
Gary
tobias
Bitcraze
Posts: 2339
Joined: Mon Jan 28, 2013 7:17 pm
Location: Sweden

Re: How to change thrust in Altitude hold

Post by tobias »

The easiest way is to open the param tab in the cfclient when you are connected to the Crazyflie. Under the AltHold section there is all related parameters. You would want to change the altHoldBaseThrust parameter. 60% translates to 0.6*65535 = 39321. Hmm, that is actually lower then the 43000 it is originally set to. You should probably play a little with it. The parameters do not stick and will reset after a reboot. To set it permanently you would have to change the value in the code.
a8204013
Beginner
Posts: 4
Joined: Thu May 01, 2014 4:27 pm

Re: How to change thrust in Altitude hold

Post by a8204013 »

tobias wrote:The easiest way is to open the param tab in the cfclient when you are connected to the Crazyflie. Under the AltHold section there is all related parameters. ...
Thank you tobias!
I spends a lot of time to looking for this .
Post Reply