CTRE_Phoenix  5.19.4
com.ctre.phoenix.motorcontrol.TalonSRXControlMode Enum Reference

Public Member Functions

 TalonSRXControlMode (int initValue)
 
ControlMode toControlMode ()
 

Public Attributes

 PercentOutput =(0)
 
 Position =(1)
 
 Velocity =(2)
 
 Current =(3)
 
 Follower =(5)
 
 MotionProfile =(6)
 
 MotionMagic =(7)
 
 MotionProfileArc =(10)
 
 Disabled =(15)
 
final int value
 

Detailed Description

Choose the control mode for a TalonSRX.

Constructor & Destructor Documentation

◆ TalonSRXControlMode()

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

Create TalonSRXControlMode of initValue

Parameters
initValueValue of TalonSRXControlMode

Member Function Documentation

◆ toControlMode()

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

Helper method to convert to generic ControlMode enum.

Returns
value cast as ControlMode

Member Data Documentation

◆ Current

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

Input current closed loop

◆ Disabled

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

Disable Motor Controller

◆ Follower

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

Follow other motor controller

◆ MotionMagic

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

Motion Magic

◆ MotionProfile

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

Motion Profile

◆ MotionProfileArc

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

Motion Profile with auxiliary output

◆ PercentOutput

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

Percent output [-1,1]

◆ Position

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

Position closed loop

◆ value

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

Value of control mode

◆ Velocity

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

Velocity closed loop


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