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