Package com.ctre.phoenix.motorcontrol
Enum Class RemoteSensorSource
- All Implemented Interfaces:
Serializable
,Comparable<RemoteSensorSource>
,Constable
Choose the remote sensor source for a motor controller
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUse CANCoderUse a PWM sensor connected to CANifier's PWM0Use a PWM sensor connected to CANifier's PWM1Use a PWM sensor connected to CANifier's PWM2Use a PWM sensor connected to CANifier's PWM3Use a quadrature sensor connected to a CANifierUse the pitch value of a pigeon connected to a talon over ribbon cableUse the roll value of a pigeon connected to a talon over ribbon cableUse the yaw value of a pigeon connected to a talon over ribbon cableDon't use a sensorUse a CAN Pigeon's Pitch valueUse a CAN Pigeon's Roll valueUse a CAN Pigeon's Yaw valueUse a sensor connected to a TalonFX and configured on the TalonFXUse a sensor connected to a TalonSRX and configured on the TalonSRX -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static RemoteSensorSource
valueOf
(double value) Get RemoteSensorSource of specified valuestatic RemoteSensorSource
valueOf
(int value) Get RemoteSensorSource of specified valuestatic RemoteSensorSource
Returns the enum constant of this class with the specified name.static RemoteSensorSource[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Off
Don't use a sensor -
TalonSRX_SelectedSensor
Use a sensor connected to a TalonSRX and configured on the TalonSRX -
TalonFX_SelectedSensor
Use a sensor connected to a TalonFX and configured on the TalonFX -
Pigeon_Yaw
Use a CAN Pigeon's Yaw value -
Pigeon_Pitch
Use a CAN Pigeon's Pitch value -
Pigeon_Roll
Use a CAN Pigeon's Roll value -
CANifier_Quadrature
Use a quadrature sensor connected to a CANifier -
CANifier_PWMInput0
Use a PWM sensor connected to CANifier's PWM0 -
CANifier_PWMInput1
Use a PWM sensor connected to CANifier's PWM1 -
CANifier_PWMInput2
Use a PWM sensor connected to CANifier's PWM2 -
CANifier_PWMInput3
Use a PWM sensor connected to CANifier's PWM3 -
GadgeteerPigeon_Yaw
Use the yaw value of a pigeon connected to a talon over ribbon cable -
GadgeteerPigeon_Pitch
Use the pitch value of a pigeon connected to a talon over ribbon cable -
GadgeteerPigeon_Roll
Use the roll value of a pigeon connected to a talon over ribbon cable -
CANCoder
Use CANCoder
-
-
Field Details
-
value
Value of RemoteSensorSource
-
-
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
-
valueOf
Get RemoteSensorSource of specified value- Parameters:
value
- Value of RemoteSensorSource- Returns:
- RemoteSensorSource of specified value
-
valueOf
Get RemoteSensorSource of specified value- Parameters:
value
- Value of RemoteSensorSource- Returns:
- RemoteSensorSource of specified value
-
toString
- Overrides:
toString
in classEnum<RemoteSensorSource>
- Returns:
- string representation of RemoteSensorSource
-