Package com.ctre.phoenix.sensors
Enum SensorVelocityMeasPeriod
- All Implemented Interfaces:
Serializable
,Comparable<SensorVelocityMeasPeriod>
,java.lang.constant.Constable
public enum SensorVelocityMeasPeriod extends Enum<SensorVelocityMeasPeriod>
Enum for velocity periods used for CANifier
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description Period_100Ms
100ms velocity measurement periodPeriod_10Ms
10ms velocity measurement periodPeriod_1Ms
1ms velocity measurement periodPeriod_20Ms
20ms velocity measurement periodPeriod_25Ms
25ms velocity measurement periodPeriod_2Ms
2ms velocity measurement periodPeriod_50Ms
50ms velocity measurement periodPeriod_5Ms
5ms velocity measurement period -
Field Summary
Fields Modifier and Type Field Description int
value
Value of velocity period -
Method Summary
Modifier and Type Method Description String
toString()
static SensorVelocityMeasPeriod
valueOf(double value)
Get SensorVelocityMeasPeriod of specified valuestatic SensorVelocityMeasPeriod
valueOf(int value)
Get SensorVelocityMeasPeriod of specified valuestatic SensorVelocityMeasPeriod
valueOf(String name)
Returns the enum constant of this type with the specified name.static SensorVelocityMeasPeriod[]
values()
Returns an array containing the constants of this enum type, 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 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 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
-