Package com.playingwithfusion
Enum Class CANVenom.ControlMode
- All Implemented Interfaces:
Serializable
,Comparable<CANVenom.ControlMode>
,Constable
- Enclosing class:
- CANVenom
Venom control strategy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionClosed-loop current (torque) controlMotor is disabled and coastingFollow the duty cycle commanded to another Venom motor.Execute a motion control path.Closed-loop position (servo) control.Proportional (duty-cycle) controlClosed-loop speed control.Open-loop voltage control mode, also refered to voltage compensated proportional mode -
Method Summary
Modifier and TypeMethodDescriptionstatic CANVenom.ControlMode
Returns the enum constant of this class with the specified name.static CANVenom.ControlMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Disabled
Motor is disabled and coasting -
Proportional
Proportional (duty-cycle) control -
CurrentControl
Closed-loop current (torque) control -
SpeedControl
Closed-loop speed control. -
PositionControl
Closed-loop position (servo) control. -
MotionProfile
Execute a motion control path. Motion profiles are generally loaded in Disabled mode. The transition to the MotionProfile state causes Venom to begin following the path. -
FollowTheLeader
Follow the duty cycle commanded to another Venom motor. Generally used when more that one Venom is geared together in a drivetrain application. In that case one Venom, the leader, executes a motion profile or is placed in another control mode. The other Venom(s) are placed in FolloewTheLeader and command the same duty cycle as the leader so that only the leader is used to calculate closed-loop commands. This avoid implementing PID controllers on multiple motors which may "fight". -
VoltageControl
Open-loop voltage control mode, also refered to voltage compensated proportional 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
-