CTRE_Phoenix 5.20.2
com.ctre.phoenix.motorcontrol.ControlMode Enum Reference

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
 

Detailed Description

Choose the control mode for a motor controller. Consult product-specific documentation to determine what is available/supported for your device.

Constructor & Destructor Documentation

◆ ControlMode()

com.ctre.phoenix.motorcontrol.ControlMode.ControlMode ( int  initValue)
inline

Create ControlMode of initValue

Parameters
initValueValue of ControlMode

Member Data Documentation

◆ Current

com.ctre.phoenix.motorcontrol.ControlMode.Current =(3)

Input current closed loop

◆ Disabled

com.ctre.phoenix.motorcontrol.ControlMode.Disabled =(15)

Disable Motor Controller

◆ Follower

com.ctre.phoenix.motorcontrol.ControlMode.Follower =(5)

Follow other motor controller

◆ MotionMagic

com.ctre.phoenix.motorcontrol.ControlMode.MotionMagic =(7)

Motion Magic

◆ MotionProfile

com.ctre.phoenix.motorcontrol.ControlMode.MotionProfile =(6)

Motion Profile

◆ MotionProfileArc

com.ctre.phoenix.motorcontrol.ControlMode.MotionProfileArc =(10)

Motion Profile with auxiliary output

◆ MusicTone

com.ctre.phoenix.motorcontrol.ControlMode.MusicTone =(13)

Plays a single tone. Frequency (hz) is passed into set.

◆ PercentOutput

com.ctre.phoenix.motorcontrol.ControlMode.PercentOutput =(0)

Percent output [-1,1]

◆ Position

com.ctre.phoenix.motorcontrol.ControlMode.Position =(1)

Position closed loop

◆ value

final int com.ctre.phoenix.motorcontrol.ControlMode.value

Value of control mode

◆ Velocity

com.ctre.phoenix.motorcontrol.ControlMode.Velocity =(2)

Velocity closed loop


The documentation for this enum was generated from the following file: