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

Public Member Functions

 VictorSPXControlMode (int initValue)
 
ControlMode toControlMode ()
 

Public Attributes

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

Detailed Description

Choose the control mode for a VictorSPX.

Constructor & Destructor Documentation

◆ VictorSPXControlMode()

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

Create VictorSPXControlMode of initValue

Parameters
initValueValue of VictorSPXControlMode

Member Function Documentation

◆ toControlMode()

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

Helper method to convert to generic ControlMode enum.

Returns
value cast as ControlMode

Member Data Documentation

◆ Disabled

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

Disable Motor Controller

◆ Follower

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

Follow other motor controller

◆ MotionMagic

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

Motion Magic

◆ MotionProfile

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

Motion Profile

◆ MotionProfileArc

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

Motion Profile with auxiliary output

◆ PercentOutput

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

Percent output [-1,1]

◆ Position

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

Position closed loop

◆ value

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

Value of control mode

◆ Velocity

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

Velocity closed loop


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