Package com.ctre.phoenix6.mechanisms
Enum Class SimpleDifferentialMechanism.DisabledReason
java.lang.Object
java.lang.Enum<SimpleDifferentialMechanism.DisabledReason>
com.ctre.phoenix6.mechanisms.SimpleDifferentialMechanism.DisabledReason
- All Implemented Interfaces:
Serializable
,Comparable<SimpleDifferentialMechanism.DisabledReason>
,java.lang.constant.Constable
- Enclosing class:
- SimpleDifferentialMechanism
public static enum SimpleDifferentialMechanism.DisabledReason
extends Enum<SimpleDifferentialMechanism.DisabledReason>
Possible reasons for the mechanism to disable.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionA device or remote sensor has reset.The remote Talon FX used for differential control is not present on CAN Bus.A remote sensor is not present on CAN Bus.No reason given.A remote sensor position has overflowed. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
None
No reason given. -
MissingRemoteSensor
A remote sensor is not present on CAN Bus. -
MissingDifferentialFX
The remote Talon FX used for differential control is not present on CAN Bus. -
RemoteSensorPosOverflow
A remote sensor position has overflowed. Because of the nature of remote sensors, it is possible for a remote sensor position to overflow beyond what is supported by the status signal frame. However, this is rare and cannot occur over the course of an FRC match under normal use. -
DeviceHasReset
A device or remote sensor has reset.
-
-
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
-