Package com.ctre.phoenix6.mechanisms
Enum DifferentialMechanism.DisabledReason
java.lang.Object
java.lang.Enum<DifferentialMechanism.DisabledReason>
com.ctre.phoenix6.mechanisms.DifferentialMechanism.DisabledReason
- All Implemented Interfaces:
Serializable
,Comparable<DifferentialMechanism.DisabledReason>
,java.lang.constant.Constable
- Enclosing class:
- DifferentialMechanism
public static enum DifferentialMechanism.DisabledReason extends Enum<DifferentialMechanism.DisabledReason>
Possible reasons for the mechanism to disable.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description DeviceHasReset
A device or remote sensor has reset.MissingDifferentialFX
The remote Talon FX used for differential control is not present on CAN Bus.MissingRemoteSensor
A remote sensor is not present on CAN Bus.None
No reason given.RemoteSensorPosOverflow
A remote sensor position has overflowed. -
Method Summary
Modifier and Type Method Description static DifferentialMechanism.DisabledReason
valueOf(String name)
Returns the enum constant of this type with the specified name.static DifferentialMechanism.DisabledReason[]
values()
Returns an array containing the constants of this enum type, 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 type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-