Package com.ctre.phoenix.motorcontrol
Enum RemoteSensorSource
- All Implemented Interfaces:
Serializable
,Comparable<RemoteSensorSource>
,java.lang.constant.Constable
public enum RemoteSensorSource extends Enum<RemoteSensorSource>
Choose the remote sensor source for a motor controller
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CANCoder
Use CANCoderCANifier_PWMInput0
Use a PWM sensor connected to CANifier's PWM0CANifier_PWMInput1
Use a PWM sensor connected to CANifier's PWM1CANifier_PWMInput2
Use a PWM sensor connected to CANifier's PWM2CANifier_PWMInput3
Use a PWM sensor connected to CANifier's PWM3CANifier_Quadrature
Use a quadrature sensor connected to a CANifierGadgeteerPigeon_Pitch
Use the pitch value of a pigeon connected to a talon over ribbon cableGadgeteerPigeon_Roll
Use the roll value of a pigeon connected to a talon over ribbon cableGadgeteerPigeon_Yaw
Use the yaw value of a pigeon connected to a talon over ribbon cableOff
Don't use a sensorPigeon_Pitch
Use a CAN Pigeon's Pitch valuePigeon_Roll
Use a CAN Pigeon's Roll valuePigeon_Yaw
Use a CAN Pigeon's Yaw valueTalonFX_SelectedSensor
Use a sensor connected to a TalonFX and configured on the TalonFXTalonSRX_SelectedSensor
Use a sensor connected to a TalonSRX and configured on the TalonSRX -
Field Summary
Fields Modifier and Type Field Description int
value
Value of RemoteSensorSource -
Method Summary
Modifier and Type Method Description String
toString()
static RemoteSensorSource
valueOf(double value)
Get RemoteSensorSource of specified valuestatic RemoteSensorSource
valueOf(int value)
Get RemoteSensorSource of specified valuestatic RemoteSensorSource
valueOf(String name)
Returns the enum constant of this type with the specified name.static RemoteSensorSource[]
values()
Returns an array containing the constants of this enum type, 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 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 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
-