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

Public Member Functions

 TalonFXFeedbackDevice (int initValue)
 
String toString ()
 
FeedbackDevice toFeedbackDevice ()
 

Static Public Member Functions

 [static initializer]
 
static TalonFXFeedbackDevice valueOf (int value)
 
static TalonFXFeedbackDevice valueOf (double value)
 

Public Attributes

 IntegratedSensor =(1)
 
 SensorSum =(9)
 
 SensorDifference =(10)
 
 RemoteSensor0 =(11)
 
 RemoteSensor1 =(12)
 
 None =(14)
 
 SoftwareEmulatedSensor =(15)
 
final int value
 

Detailed Description

Choose the feedback device for a selected sensor

Constructor & Destructor Documentation

◆ TalonFXFeedbackDevice()

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

Create Feedback device of initValue

Parameters
initValueValue of TalonFXFeedbackDevice

Member Function Documentation

◆ [static initializer]()

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.[static initializer]
inlinestatic

static c'tor, prepare the map

◆ toFeedbackDevice()

FeedbackDevice com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.toFeedbackDevice ( )
inline

Helper method to convert to generic FeedbackDevice enum.

Returns
value cast as FeedbackDevice

◆ toString()

String com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.toString ( )
inline
Returns
string representation of specified TalonFXFeedbackDevice

◆ valueOf() [1/2]

static TalonFXFeedbackDevice com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.valueOf ( double  value)
inlinestatic

Get TalonFXFeedbackDevice from specified value

Parameters
valueValue of TalonFXFeedbackDevice
Returns
TalonFXFeedbackDevice of specified value

◆ valueOf() [2/2]

static TalonFXFeedbackDevice com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.valueOf ( int  value)
inlinestatic

Get TalonFXFeedbackDevice from specified value

Parameters
valueValue of TalonFXFeedbackDevice
Returns
TalonFXFeedbackDevice of specified value

Member Data Documentation

◆ IntegratedSensor

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.IntegratedSensor =(1)

TalonFX supports an integrated sensor.

◆ None

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.None =(14)

Position and velocity will read 0.

◆ RemoteSensor0

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.RemoteSensor0 =(11)

Sensor configured in RemoteFilter0

◆ RemoteSensor1

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.RemoteSensor1 =(12)

Sensor configured in RemoteFilter1

◆ SensorDifference

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.SensorDifference =(10)

Diff0 - Diff1

◆ SensorSum

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.SensorSum =(9)

Sum0 + Sum1

◆ SoftwareEmulatedSensor

com.ctre.phoenix.motorcontrol.TalonFXFeedbackDevice.SoftwareEmulatedSensor =(15)

Motor Controller will fake a sensor based on applied motor output.

◆ value

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

Value of Feedback Device


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