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

Public Member Functions

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

Static Public Member Functions

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

Public Attributes

 QuadEncoder =(0)
 
 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

Constructor & Destructor Documentation

◆ TalonSRXFeedbackDevice()

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

Create Feedback device of initValue

Parameters
initValueValue of TalonSRXFeedbackDevice

Member Function Documentation

◆ [static initializer]()

com.ctre.phoenix.motorcontrol.TalonSRXFeedbackDevice.[static initializer] ( )
inlinestatic

static c'tor, prepare the map

◆ toFeedbackDevice()

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

Helper method to convert to generic FeedbackDevice enum.

Returns
value cast as FeedbackDevice

◆ toString()

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

◆ valueOf() [1/2]

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

Get TalonSRXFeedbackDevice from specified value

Parameters
valueValue of TalonSRXFeedbackDevice
Returns
TalonSRXFeedbackDevice of specified value

◆ valueOf() [2/2]

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

Get TalonSRXFeedbackDevice from specified value

Parameters
valueValue of TalonSRXFeedbackDevice
Returns
TalonSRXFeedbackDevice of specified value

Member Data Documentation

◆ Analog

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

Analog potentiometer/encoder

◆ CTRE_MagEncoder_Absolute

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

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

◆ CTRE_MagEncoder_Relative

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

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

◆ None

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

Position and velocity will read 0.

◆ PulseWidthEncodedPosition

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

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

◆ QuadEncoder

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

Quadrature encoder

◆ RemoteSensor0

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

Sensor configured in RemoteFilter0

◆ RemoteSensor1

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

Sensor configured in RemoteFilter1

◆ SensorDifference

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

Diff0 - Diff1

◆ SensorSum

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

Sum0 + Sum1

◆ SoftwareEmulatedSensor

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

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

◆ Tachometer

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

Tachometer

◆ value

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

Value of Feedback Device


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