Package com.ctre.phoenix.sensors
Enum PigeonIMU.PigeonState
- All Implemented Interfaces:
Serializable
,Comparable<PigeonIMU.PigeonState>
,java.lang.constant.Constable
- Enclosing class:
- PigeonIMU
public static enum PigeonIMU.PigeonState extends Enum<PigeonIMU.PigeonState>
Overall state of the Pigeon.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Initializing
Pigeon is initializingNoComm
No communications with PigeonReady
Pigeon is readyUnknown
Unknown stateUserCalibration
Pigeon is calibrating due to user -
Field Summary
Fields Modifier and Type Field Description int
value
Value of PigeonState -
Method Summary
Modifier and Type Method Description static PigeonIMU.PigeonState
valueOf(int value)
Get a PigeonState of specified valuestatic PigeonIMU.PigeonState
valueOf(String name)
Returns the enum constant of this type with the specified name.static PigeonIMU.PigeonState[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NoComm
No communications with Pigeon -
Initializing
Pigeon is initializing -
Ready
Pigeon is ready -
UserCalibration
Pigeon is calibrating due to user -
Unknown
Unknown state
-
-
Field Details
-
value
Value of PigeonState
-
-
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
-
valueOf
Get a PigeonState of specified value- Parameters:
value
- Value of PigeonState- Returns:
- PigeonState of specified value
-