movePWM

abstract fun movePWM(value: Double)

Moves the motor using the default control method.

The specific behavior depends on the motor implementation and its configuration. The meaning of the value depends on the control type:

  • PWM: Duty cycle from -1.0 to 1.0

  • VOLTAGE: Voltage in Volts

  • POSITION: Target position in rotations

  • VELOCITY: Target velocity in rotations per second

Parameters

value

The control value (meaning depends on motor type and configuration).