Enum Class Encoder.PositionType

java.lang.Object
java.lang.Enum<Encoder.PositionType>
com.viam.component.encoder.v1.Encoder.PositionType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, Serializable, Comparable<Encoder.PositionType>, Constable
Enclosing class:
Encoder

public static enum Encoder.PositionType extends Enum<Encoder.PositionType> implements com.google.protobuf.Internal.EnumLite
Protobuf enum viam.component.encoder.v1.PositionType
  • Enum Constant Details

    • POSITION_TYPE_UNSPECIFIED

      public static final Encoder.PositionType POSITION_TYPE_UNSPECIFIED
      POSITION_TYPE_UNSPECIFIED = 0;
    • POSITION_TYPE_TICKS_COUNT

      public static final Encoder.PositionType POSITION_TYPE_TICKS_COUNT
       Return type for relative encoders that report
       how far they've gone from a start position
       
      POSITION_TYPE_TICKS_COUNT = 1;
    • POSITION_TYPE_ANGLE_DEGREES

      public static final Encoder.PositionType POSITION_TYPE_ANGLE_DEGREES
       Return type for absolute encoders that report
       their position in degrees along the radial axis
       
      POSITION_TYPE_ANGLE_DEGREES = 2;
    • UNRECOGNIZED

      public static final Encoder.PositionType UNRECOGNIZED
  • Field Details

    • POSITION_TYPE_UNSPECIFIED_VALUE

      public static final int POSITION_TYPE_UNSPECIFIED_VALUE
      POSITION_TYPE_UNSPECIFIED = 0;
      See Also:
    • POSITION_TYPE_TICKS_COUNT_VALUE

      public static final int POSITION_TYPE_TICKS_COUNT_VALUE
       Return type for relative encoders that report
       how far they've gone from a start position
       
      POSITION_TYPE_TICKS_COUNT = 1;
      See Also:
    • POSITION_TYPE_ANGLE_DEGREES_VALUE

      public static final int POSITION_TYPE_ANGLE_DEGREES_VALUE
       Return type for absolute encoders that report
       their position in degrees along the radial axis
       
      POSITION_TYPE_ANGLE_DEGREES = 2;
      See Also:
  • Method Details

    • values

      public static Encoder.PositionType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Encoder.PositionType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
    • valueOf

      @Deprecated public static Encoder.PositionType valueOf(int value)
      Deprecated.
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static Encoder.PositionType forNumber(int value)
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<Encoder.PositionType> internalGetValueMap()
    • internalGetVerifier

      public static com.google.protobuf.Internal.EnumVerifier internalGetVerifier()