turn()
#
DescriptionA function that represents yaw, but with more natural language. It turns CoDrone Mini in the given direction, with the given duration and power.
#
Syntaxturn(direction)
turn(direction, duration)
turn(direction, duration, power)
#
Parametersdirection : an enum in Python. It’s the direction of the turn, which can either LEFT
or RIGHT
.
duration : the duration of the turn in seconds. If 0, it will turn default to turn indefinitely.
power : the power at which the drone turns right. Takes a value from 0 to 100. Defaults to 50 if not defined.
#
ReturnsNone