Skip to main content

control_motors()

Description#

Sets the speed of each individual motor. The changes take place immediately. This function does not include a stop command or any sensor feedback.

Syntax#

control_motors(right,left)

Parameters#

right: Integer between -126 and 127. Positive values for forward, negative values for reverse.
left: Integer between -126 and 127. Positive values for forward, negative values for reverse.

Returns#

None

Example Code#
Python#
#Python code
from zumi.zumi import Zumi
import time
zumi = Zumi()
zumi.control_motors(30,30)
time.sleep(2)
zumi.stop()