setMotor

Parameter Explanation Example
motorPort The port or name of the motor to be used. leftMotor
speed The speed at which the motor will move. 50
  • Sets the selected motor to the specified speed.
  • Speed values can range from -100 (full speed backward) to +100 (full speed forward)
    • The motor will continue turning at the specified speed/direction until a new speed value is given to the motor.