Skip to main content

smooth_turn_left()

Description#

Turns left gradually to reach the desired angle while also going forward. Default to 90 degrees.

Syntax#

smooth_turn_left()
smooth_turn_left(desired_angle=90,speed=20,step=2)

Parameters#

desired_angle: Degrees you want to turn from your starting position
speed: Positive integer value for speed between 0 and 80. Default to 20.
step: The angle step size (decrease for wider turns, increase for tighter turns)

Returns#

None

Example Code#
Python#
#Python code
from zumi.zumi import Zumi
import time
zumi = Zumi()
zumi.smooth_turn_left()
time.sleep(1)
zumi.smooth_turn_left(speed=30)