Package com.revrobotics
Enum CANSparkMax.FaultID
- java.lang.Object
-
- java.lang.Enum<CANSparkMax.FaultID>
-
- com.revrobotics.CANSparkMax.FaultID
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CANSparkMax.FaultID>
- Enclosing class:
- CANSparkMax
public static enum CANSparkMax.FaultID extends java.lang.Enum<CANSparkMax.FaultID>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description kBrownout
kCANRX
kCANTX
kDRVFault
kEEPROMCRC
kHardLimitFwd
kHardLimitRev
kHasReset
kIWDTReset
kMotorFault
kOtherFault
kOvercurrent
kSensorFault
kSoftLimitFwd
kSoftLimitRev
kStall
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CANSparkMax.FaultID
fromId(int id)
static CANSparkMax.FaultID
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CANSparkMax.FaultID[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
kBrownout
public static final CANSparkMax.FaultID kBrownout
-
kOvercurrent
public static final CANSparkMax.FaultID kOvercurrent
-
kIWDTReset
public static final CANSparkMax.FaultID kIWDTReset
-
kMotorFault
public static final CANSparkMax.FaultID kMotorFault
-
kSensorFault
public static final CANSparkMax.FaultID kSensorFault
-
kStall
public static final CANSparkMax.FaultID kStall
-
kEEPROMCRC
public static final CANSparkMax.FaultID kEEPROMCRC
-
kCANTX
public static final CANSparkMax.FaultID kCANTX
-
kCANRX
public static final CANSparkMax.FaultID kCANRX
-
kHasReset
public static final CANSparkMax.FaultID kHasReset
-
kDRVFault
public static final CANSparkMax.FaultID kDRVFault
-
kOtherFault
public static final CANSparkMax.FaultID kOtherFault
-
kSoftLimitFwd
public static final CANSparkMax.FaultID kSoftLimitFwd
-
kSoftLimitRev
public static final CANSparkMax.FaultID kSoftLimitRev
-
kHardLimitFwd
public static final CANSparkMax.FaultID kHardLimitFwd
-
kHardLimitRev
public static final CANSparkMax.FaultID kHardLimitRev
-
-
Method Detail
-
values
public static CANSparkMax.FaultID[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CANSparkMax.FaultID c : CANSparkMax.FaultID.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CANSparkMax.FaultID valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
fromId
public static CANSparkMax.FaultID fromId(int id)
-
-