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

Public Member Functions

 FeedbackDevice (int initValue)
 
String toString ()
 

Static Public Member Functions

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

Public Attributes

 QuadEncoder =(0)
 
 IntegratedSensor =(1)
 
 Analog =(2)
 
 Tachometer =(4)
 
 PulseWidthEncodedPosition =(8)
 
 SensorSum =(9)
 
 SensorDifference =(10)
 
 RemoteSensor0 =(11)
 
 RemoteSensor1 =(12)
 
 None =(14)
 
 SoftwareEmulatedSensor =(15)
 
 CTRE_MagEncoder_Absolute =(8)
 
 CTRE_MagEncoder_Relative =(0)
 
final int value
 

Detailed Description

Choose the feedback device for a selected sensor. Consult product-specific documentation to determine what is available/supported for your device.

Constructor & Destructor Documentation

◆ FeedbackDevice()

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

Create Feedback device of initValue

Parameters
initValueValue of FeedbackDevice

Member Function Documentation

◆ [static initializer]()

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

static c'tor, prepare the map

◆ toString()

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

◆ valueOf() [1/2]

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

Get FeedbackDevice from specified value

Parameters
valueValue of FeedbackDevice
Returns
FeedbackDevice of specified value

◆ valueOf() [2/2]

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

Get FeedbackDevice from specified value

Parameters
valueValue of FeedbackDevice
Returns
FeedbackDevice of specified value

Member Data Documentation

◆ Analog

com.ctre.phoenix.motorcontrol.FeedbackDevice.Analog =(2)

Analog potentiometer/encoder

◆ CTRE_MagEncoder_Absolute

com.ctre.phoenix.motorcontrol.FeedbackDevice.CTRE_MagEncoder_Absolute =(8)

CTR mag encoder configured in absolute, is the same as a PWM sensor.

◆ CTRE_MagEncoder_Relative

com.ctre.phoenix.motorcontrol.FeedbackDevice.CTRE_MagEncoder_Relative =(0)

CTR mag encoder configured in relative, is the same as an quadrature encoder sensor.

◆ IntegratedSensor

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

TalonFX supports an integrated sensor.

◆ None

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

Position and velocity will read 0.

◆ PulseWidthEncodedPosition

com.ctre.phoenix.motorcontrol.FeedbackDevice.PulseWidthEncodedPosition =(8)

CTRE Mag Encoder in Relative mode or any other device that uses PWM to encode its output

◆ QuadEncoder

com.ctre.phoenix.motorcontrol.FeedbackDevice.QuadEncoder =(0)

Quadrature encoder

◆ RemoteSensor0

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

Sensor configured in RemoteFilter0

◆ RemoteSensor1

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

Sensor configured in RemoteFilter1

◆ SensorDifference

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

Diff0 - Diff1

◆ SensorSum

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

Sum0 + Sum1

◆ SoftwareEmulatedSensor

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

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

◆ Tachometer

com.ctre.phoenix.motorcontrol.FeedbackDevice.Tachometer =(4)

Tachometer

◆ value

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

Value of Feedback Device


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