Implementation of Ready To Fly Mode

Discussions about autonomous flight in general, regardless of positioning method
Post Reply
Moj_Dev
Beginner
Posts: 10
Joined: Wed Jan 19, 2022 7:43 pm

Implementation of Ready To Fly Mode

Post 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?
Moj_Dev
Beginner
Posts: 10
Joined: Wed Jan 19, 2022 7:43 pm

Re: Implementation of Ready To Fly Mode

Post 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")
kristoffer
Bitcraze
Posts: 630
Joined: Tue Jun 30, 2015 7:47 am

Re: Implementation of Ready To Fly Mode

Post by kristoffer »

This is answered in the gihub issue https://github.com/bitcraze/crazyflie-f ... issues/978
Post Reply