CoDrone Control
Table of Contents
from CoDrone.codrone import *
drone = CoDrone()
drone.pair('3218')
drone.takeoff()
# -100 to 100 that sets the pitch variable.
# Drone goes diagonally for 1 second with 50 power
drone.set_roll(50)
drone.set_pitch(-65)
drone.move(1)
drone.land()
drone.takeoff()
# -100 to 100 that sets the throttle variable.
# Drone goes up for 1 second with 50 power
drone.set_throttle(100)
drone.move(1)
drone.set_throttle(0)
drone.land()
drone.takeoff()
# -100 to 100 that sets the pitch and roll variable.
# Drone goes forward for 1 second with 50 power and goes right for 1 second with 50 power
drone.set_pitch(50)
drone.move(1)
drone.set_pitch(0)
drone.set_roll(50)
drone.move(1)
drone.land()
[1] ė¤ģķ ģ¼ģģ Movement ėŖ ė ¹ ģ½ė넼 ģ”°ķ©ķģ¬ ģėģ²ė¼ ė¤ģķ Episode 넼 ė§ė¤ģ“볓ģøģ
ģµģ 3ź° ģ“ģģ ģ¼ģģ 4ģ¢ ė„ ģ“ģģ ģ“ė ź“ė Ø ķØģ ģ¬ģ©ķźø°!
# fill your code
# fill your code
Drone ON ā Drone Calibration ā Controller ON
%%javascript
$.getScript('https://kmahelona.github.io/ipython_notebook_goodies/ipython_notebook_toc.js')