CTRE_Phoenix 5.20.2
|
Public Member Functions | |
ControlMode (int initValue) | |
Public Attributes | |
PercentOutput =(0) | |
Position =(1) | |
Velocity =(2) | |
Current =(3) | |
Follower =(5) | |
MotionProfile =(6) | |
MotionMagic =(7) | |
MotionProfileArc =(10) | |
MusicTone =(13) | |
Disabled =(15) | |
final int | value |
Choose the control mode for a motor controller. Consult product-specific documentation to determine what is available/supported for your device.
|
inline |
Create ControlMode of initValue
initValue | Value of ControlMode |
com.ctre.phoenix.motorcontrol.ControlMode.Current =(3) |
Input current closed loop
com.ctre.phoenix.motorcontrol.ControlMode.Disabled =(15) |
Disable Motor Controller
com.ctre.phoenix.motorcontrol.ControlMode.Follower =(5) |
Follow other motor controller
com.ctre.phoenix.motorcontrol.ControlMode.MotionMagic =(7) |
Motion Magic
com.ctre.phoenix.motorcontrol.ControlMode.MotionProfile =(6) |
Motion Profile
com.ctre.phoenix.motorcontrol.ControlMode.MotionProfileArc =(10) |
Motion Profile with auxiliary output
com.ctre.phoenix.motorcontrol.ControlMode.MusicTone =(13) |
Plays a single tone. Frequency (hz) is passed into set.
com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput =(0) |
Percent output [-1,1]
com.ctre.phoenix.motorcontrol.ControlMode.Position =(1) |
Position closed loop
final int com.ctre.phoenix.motorcontrol.ControlMode.value |
Value of control mode
com.ctre.phoenix.motorcontrol.ControlMode.Velocity =(2) |
Velocity closed loop