libstp.step.motion.stop

Classes

Stop

Step that stops all drive motors.

Functions

stop(→ Stop)

Stop all drive motors immediately.

Module Contents

class libstp.step.motion.stop.Stop(hard: bool = True)

Bases: libstp.step.Step

Step that stops all drive motors.

hard = True
libstp.step.motion.stop.stop(hard: bool = True) Stop

Stop all drive motors immediately.

Use this between motion sequences or at the end of a mission to ensure the robot is stationary.

Parameters:

hard – If True (default), immediately zero motor output. If False, decelerate smoothly using the drive controller.

Returns:

A Stop step instance.

Example:

from libstp.step.motion import drive_forward, stop

# Drive forward then stop
seq([drive_forward(50), stop()])