A function that represents yaw, but with more natural language. It simply turns in the given direction, duration and power.
turn(direction, duration, power)
direction : 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.