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

Public Member Functions

 TalonFXControlMode (int initValue)
 
ControlMode toControlMode ()
 

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 TalonFX / Falcon 500.

Constructor & Destructor Documentation

◆ TalonFXControlMode()

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

Create TalonFXControlMode of initValue

Parameters
initValueValue of TalonFXControlMode

Member Function Documentation

◆ toControlMode()

ControlMode com.ctre.phoenix.motorcontrol.TalonFXControlMode.toControlMode ( )
inline

Helper method to convert to generic ControlMode enum.

Returns
value cast as ControlMode

Member Data Documentation

◆ Current

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

Input current closed loop

◆ Disabled

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

Disable Motor Controller

◆ Follower

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

Follow other motor controller

◆ MotionMagic

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

Motion Magic

◆ MotionProfile

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

Motion Profile

◆ MotionProfileArc

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

Motion Profile with auxiliary output

◆ MusicTone

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

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

◆ PercentOutput

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

Percent output [-1,1]

◆ Position

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

Position closed loop

◆ value

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

Value of control mode

◆ Velocity

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

Velocity closed loop


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