stopMotor

fun stopMotor()

Stops the motor by invoking the configured stop function.

This method should be called to immediately halt motor movement, typically by setting output to zero or disabling the motor output, depending on the underlying motor type and configuration.