Implementation of Ready To Fly Mode
Implementation of Ready To Fly Mode
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
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")
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")
-
- Bitcraze
- Posts: 630
- Joined: Tue Jun 30, 2015 7:47 am
Re: Implementation of Ready To Fly Mode
This is answered in the gihub issue https://github.com/bitcraze/crazyflie-f ... issues/978