velocityControl

abstract val velocityControl: (T, Double) -> Unit?

Lambda function for controlling the motor using a velocity value.

This function takes two parameters:

  • An instance of type T representing the motor or device.

  • A Double value representing the target velocity.

If null, velocity control is not supported.