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

Public Member Functions

 TalonFXInvertType (int value)
InvertType toInvertType ()

Public Attributes

 CounterClockwise =(0)
 Clockwise =(1)
 FollowMaster =(2)
 OpposeMaster =(3)
int value

Detailed Description

Choose the invert type of the motor controller. None is the equivalent of SetInverted(false), where positive request yields positive voltage on M+. InvertMotorOutput is the equivelant of SetInverted(true), where positive request yields positive voltage on M-. FollowMaster/OpposeMaster will match/oppose a master Talon/Victor. This requires device to be configured as a follower.

Constructor & Destructor Documentation

◆ TalonFXInvertType()

com.ctre.phoenix.motorcontrol.TalonFXInvertType.TalonFXInvertType ( int  value)

Create TalonFXInvertType of specified value

valueValue of Invert Type

Member Function Documentation

◆ toInvertType()

InvertType com.ctre.phoenix.motorcontrol.TalonFXInvertType.toInvertType ( )

Helper method to convert to generic InvertType enum.

value cast as InvertType

Member Data Documentation

◆ Clockwise

com.ctre.phoenix.motorcontrol.TalonFXInvertType.Clockwise =(1)

Same as SetInverted(true)

◆ CounterClockwise

com.ctre.phoenix.motorcontrol.TalonFXInvertType.CounterClockwise =(0)

Same as SetInverted(false)

◆ FollowMaster

com.ctre.phoenix.motorcontrol.TalonFXInvertType.FollowMaster =(2)

Follow the invert of the master this MC is following

◆ OpposeMaster

com.ctre.phoenix.motorcontrol.TalonFXInvertType.OpposeMaster =(3)

Oppose the invert of the master this MC is following

◆ value

int com.ctre.phoenix.motorcontrol.TalonFXInvertType.value

Value of Invert Type

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