Enum DifferentialSensorSourceValue
- All Implemented Interfaces:
Serializable
,Comparable<DifferentialSensorSourceValue>
,java.lang.constant.Constable
public enum DifferentialSensorSourceValue extends Enum<DifferentialSensorSourceValue>
Choose RemoteTalonFX_Diff to use another TalonFX on the same CAN bus. Talon FX will update its differential position and velocity whenever the remote TalonFX publishes its information on CAN bus. The differential controller will use the difference between this TalonFX's sensor and the remote Talon FX's sensor for the differential component of the output.
Choose RemotePigeon2_Yaw, RemotePigeon2_Pitch, and RemotePigeon2_Roll to use another Pigeon2 on the same CAN bus (this also requires setting DifferentialRemoteSensorID). Talon FX will update its differential position to match the selected value whenever Pigeon2 publishes its information on CAN bus. Note that the Talon FX differential position will be in rotations and not degrees.
Choose RemoteCANcoder to use another CANcoder on the same CAN bus (this also requires setting DifferentialRemoteSensorID). Talon FX will update its differential position and velocity to match the CANcoder whenever CANcoder publishes its information on CAN bus.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Disabled
RemoteCANcoder
RemotePigeon2_Pitch
RemotePigeon2_Roll
RemotePigeon2_Yaw
RemoteTalonFX_Diff
-
Field Summary
Fields Modifier and Type Field Description int
value
-
Method Summary
Modifier and Type Method Description static DifferentialSensorSourceValue
valueOf(int value)
Gets DifferentialSensorSourceValue from specified valuestatic DifferentialSensorSourceValue
valueOf(String name)
Returns the enum constant of this type with the specified name.static DifferentialSensorSourceValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
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
Gets DifferentialSensorSourceValue from specified value- Parameters:
value
- Value of DifferentialSensorSourceValue- Returns:
- DifferentialSensorSourceValue of specified value
-