Package com.ctre.phoenix.motorcontrol
Enum Class VictorSPXControlMode
- All Implemented Interfaces:
Serializable
,Comparable<VictorSPXControlMode>
,Constable
Choose the control mode for a VictorSPX.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionDisable Motor ControllerFollow other motor controllerMotion MagicMotion ProfileMotion Profile with auxiliary outputPercent output [-1,1]Position closed loopVelocity closed loop -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionHelper method to convert to generic ControlMode enum.static VictorSPXControlMode
Returns the enum constant of this class with the specified name.static VictorSPXControlMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PercentOutput
Percent output [-1,1] -
Position
Position closed loop -
Velocity
Velocity closed loop -
Follower
Follow other motor controller -
MotionProfile
Motion Profile -
MotionMagic
Motion Magic -
MotionProfileArc
Motion Profile with auxiliary output -
Disabled
Disable Motor Controller
-
-
Field Details
-
value
Value of control mode
-
-
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
-
toControlMode
Helper method to convert to generic ControlMode enum.- Returns:
- value cast as ControlMode
-