Skip to main content

smooth_reverse()

Description#

Causes Zumi to gradually accelerate in reverse to max speed during a given duration before decelerating back to zero.

Syntax#

smooth_reverse(duration)
smooth_reverse(duration, rate=1)

Parameters#

duration: Total duration of drive command including acceleration and deceleration
rate: rate at which speed changes. Default to 1

Returns#

None

Example Code#
Python#
#Python code
from zumi.zumi import Zumi
import time
zumi = Zumi()
zumi.smooth_reverse(3)
time.sleep(1)
zumi.smooth_reverse(duration=3,rate=2)