Package com.ctre.phoenix.sensors
Enum Class SensorVelocityMeasPeriod
- All Implemented Interfaces:
Serializable
,Comparable<SensorVelocityMeasPeriod>
,Constable
Enum for velocity periods used for CANifier
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription100ms velocity measurement period10ms velocity measurement period1ms velocity measurement period20ms velocity measurement period25ms velocity measurement period2ms velocity measurement period50ms velocity measurement period5ms velocity measurement period -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static SensorVelocityMeasPeriod
valueOf
(double value) Get SensorVelocityMeasPeriod of specified valuestatic SensorVelocityMeasPeriod
valueOf
(int value) Get SensorVelocityMeasPeriod of specified valuestatic SensorVelocityMeasPeriod
Returns the enum constant of this class with the specified name.static SensorVelocityMeasPeriod[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Period_1Ms
1ms velocity measurement period -
Period_2Ms
2ms velocity measurement period -
Period_5Ms
5ms velocity measurement period -
Period_10Ms
10ms velocity measurement period -
Period_20Ms
20ms velocity measurement period -
Period_25Ms
25ms velocity measurement period -
Period_50Ms
50ms velocity measurement period -
Period_100Ms
100ms velocity measurement period
-
-
Field Details
-
value
Value of velocity period
-
-
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 SensorVelocityMeasPeriod of specified value- Parameters:
value
- value of SensorVelocityMeasPeriod- Returns:
- SensorVelocityMeasPeriod of specified value
-
valueOf
Get SensorVelocityMeasPeriod of specified value- Parameters:
value
- value of SensorVelocityMeasPeriod- Returns:
- SensorVelocityMeasPeriod of specified value
-
toString
- Overrides:
toString
in classEnum<SensorVelocityMeasPeriod>
- Returns:
- String representation of specified SensorVelocityMeasPeriod
-