libstp.step.motion.stop¶
Classes¶
Step that stops all drive motors. |
Functions¶
|
Stop all drive motors immediately. |
Module Contents¶
- class libstp.step.motion.stop.Stop(hard: bool = True)¶
Bases:
libstp.step.StepStep 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. IfFalse, 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()])