Skip to main content

turn_right()

Description#

Causes Zumi to turn right the specified number of degrees. Default to 90 degrees.

Syntax#

turn_right()
turn_right(desired_angle=90,duration=1.0)

Parameters#

desired_angle: Degrees you want to turn to the right from your starting position. Default to 90. Only positive values.
duration: The amount of time in seconds Zumi will try and complete the turn. Increase for turns greater than 90 degrees.

Returns#

None

Example Code#
Python#
#Python code
from zumi.zumi import Zumi
import time
zumi = Zumi()
zumi.turn_right(45)
time.sleep(1)
zumi.turn_right(200,duration=1.3)