Page 1 of 1

Implementation of Ready To Fly Mode

Posted: Fri Mar 04, 2022 7:41 pm
by Moj_Dev
I'd like to define a ready to fly mode in my application that motors spins in lowest rpm before takeoff. Could you give me help that what is the best way to implement this?

Re: Implementation of Ready To Fly Mode

Posted: Fri Mar 04, 2022 8:27 pm
by Moj_Dev
I implemented it using python library. Here is the code you can use:
roll = 0
pitch = 0
yawrate = 0
print("let's go")
thrust_mult = 1
thrust_step = 500
thrust = 20000
cf.commander.send_setpoint(0, 0, 0, 0)
for r in range(10):
cf.commander.send_setpoint(roll, pitch, yawrate, thrust)
time.sleep(0.1)
print("Ready 2 fly")

Re: Implementation of Ready To Fly Mode

Posted: Mon Mar 07, 2022 10:21 am
by kristoffer
This is answered in the gihub issue https://github.com/bitcraze/crazyflie-f ... issues/978