I am trying to use the HighLevelCommander. However, Crazyflie crashes many times and does not fly properly at all. Sometimes it is also hard turn off the propellers of the Crazyflie, even I have stopped the script. The propellers only turn off after some minutes. So it is getting quite hard to control the Crazyflie.
This is my code.
Code: Select all
with SyncCrazyflie(URI, cf=Crazyflie(rw_cache='./cache')) as scf:
cf = scf.cf
activate_high_level_commander(cf)
commander = cf.high_level_commander
time.sleep(1)
commander.takeoff(0.5, 2.0)
time.sleep(2)
commander.go_to(0.2,0.1,0.1,0, 4.0, relative=False)
time.sleep(2)
commander.land(0.0, 2.0)
time.sleep(2)
commander.stop()
Dalisha