com.qualcomm.robotcore.hardware

## Interface CRServo

- All Superinterfaces:
    DcMotorSimple, HardwareDevice
  All Known Implementing Classes:
    CRServoImpl, CRServoImplEx

      public interface CRServo
      extends DcMotorSimple

  CRServo is the central interface supported by continuous rotation servos

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface com.qualcomm.robotcore.hardware.DcMotorSimple

      `DcMotorSimple.Direction`

    - ### Nested classes/interfaces inherited from interface com.qualcomm.robotcore.hardware.HardwareDevice

      `HardwareDevice.Manufacturer`

  - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `ServoController` | `getController()` Returns the underlying servo controller on which this servo is situated.
    `int` | `getPortNumber()` Returns the port number on the underlying servo controller on which this motor is situated.

    - ### Methods inherited from interface com.qualcomm.robotcore.hardware.DcMotorSimple

      `getDirection, getPower, setDirection, setPower`

    - ### Methods inherited from interface com.qualcomm.robotcore.hardware.HardwareDevice

      `close, getConnectionInfo, getDeviceName, getManufacturer, getVersion, resetDeviceConfigurationForOpMode`

- - ### Method Detail

    - #### getController

          ServoController getController()

      Returns the underlying servo controller on which this servo is situated.
      Returns:
        the underlying servo controller on which this servo is situated.
      See Also:
        `getPortNumber()`

    - #### getPortNumber

          int getPortNumber()

      Returns the port number on the underlying servo controller on which this motor is situated.
      Returns:
        the port number on the underlying servo controller on which this motor is situated.
      See Also:
        `getController()`