public enum EncoderLong extends Enum<EncoderLong>
| Enum Constant and Description |
|---|
ENCODER_POSITION
The motor position in raw encoder counts, updated at every servo interrupt.
|
| Modifier and Type | Method and Description |
|---|---|
int |
index(EncoderName enc)
Gets the motor controller's index for the parameter for a given encoder.
|
String |
reference(EncoderName enc)
Gets the AcroBasic reference string for the parameter for a given encoder.
|
static EncoderLong |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EncoderLong[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncoderLong ENCODER_POSITION
public static EncoderLong[] values()
for (EncoderLong c : EncoderLong.values()) System.out.println(c);
public static EncoderLong valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int index(EncoderName enc)
enc - the encoder.public String reference(EncoderName enc)
enc - the encoder.Copyright © 2017 LSST. All rights reserved.