Enum Class ThriftyBotDevices.AbsoluteEncoder
java.lang.Object
java.lang.Enum<ThriftyBotDevices.AbsoluteEncoder>
swervelib.core.parser.deserializer.reflections.ThriftyBotDevices.AbsoluteEncoder
- All Implemented Interfaces:
Serializable, Comparable<ThriftyBotDevices.AbsoluteEncoder>, Constable
- Enclosing class:
ThriftyBotDevices
public static enum ThriftyBotDevices.AbsoluteEncoder
extends Enum<ThriftyBotDevices.AbsoluteEncoder>
Absolute encoder types on the
Nova's data port, named after the encoder in the JSON <encoder>_attached
type.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAnalog encoder.AndyMark hex bore encoder, read as a duty cycle encoder.Redux Canandmag encoder.DutyCycle encoder.REV Through Bore encoder.SRX Mag encoder.Thrifty 10 pin absolute encoder. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.thrifty.core.Motor.AbsoluteEncoderTypeAbsolute encoder type. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static ThriftyBotDevices.AbsoluteEncoder[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CANANDMAG
Redux Canandmag encoder. -
THRIFTY
Thrifty 10 pin absolute encoder. -
REVTHROUGHBORE
REV Through Bore encoder. -
ANDYMARKHEXBORE
AndyMark hex bore encoder, read as a duty cycle encoder. -
SRXMAG
SRX Mag encoder. -
DUTYCYCLE
DutyCycle encoder. -
ANALOG
Analog encoder.
-
-
Field Details
-
encoder
public final com.thrifty.core.Motor.AbsoluteEncoderType encoderAbsolute encoder type.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-