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

Public Member Functions

 LimitSwitchSource (int value)
 
RemoteLimitSwitchSource getRemote ()
 
String toString ()
 

Static Public Member Functions

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

Public Attributes

 FeedbackConnector =(0)
 
 RemoteTalon =(1)
 
 RemoteTalonSRX =(1)
 
 RemoteCANifier =(2)
 
 Deactivated =(3)
 
final int value
 

Detailed Description

Choose the limit switch source for a motor controller

Constructor & Destructor Documentation

◆ LimitSwitchSource()

com.ctre.phoenix.motorcontrol.LimitSwitchSource.LimitSwitchSource ( int  value)
inline

Create LimitSwitchSource of specified value

Parameters
valueValue of LimitSwitchSource

Member Function Documentation

◆ [static initializer]()

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

static c'tor, prepare the map

◆ getRemote()

RemoteLimitSwitchSource com.ctre.phoenix.motorcontrol.LimitSwitchSource.getRemote ( )
inline

◆ toString()

String com.ctre.phoenix.motorcontrol.LimitSwitchSource.toString ( )
inline
Returns
String representation of LimitSwitchSource

◆ valueOf() [1/2]

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

Get LimitSwitchSource of specified value

Parameters
valueValue of LimitSwitchSource
Returns
LimitSwitchSource of specified value

◆ valueOf() [2/2]

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

Get LimitSwitchSource of specified value

Parameters
valueValue of LimitSwitchSource
Returns
LimitSwitchSource of specified value

Member Data Documentation

◆ Deactivated

com.ctre.phoenix.motorcontrol.LimitSwitchSource.Deactivated =(3)

Don't use a limit switch

◆ FeedbackConnector

com.ctre.phoenix.motorcontrol.LimitSwitchSource.FeedbackConnector =(0)

Use a limit switch connected directly to the motor controller

◆ RemoteCANifier

com.ctre.phoenix.motorcontrol.LimitSwitchSource.RemoteCANifier =(2)

Use the limit switch connected to a CANifier

◆ RemoteTalon

com.ctre.phoenix.motorcontrol.LimitSwitchSource.RemoteTalon =(1)

Use the limit switch connected to a Talon

◆ RemoteTalonSRX

com.ctre.phoenix.motorcontrol.LimitSwitchSource.RemoteTalonSRX =(1)

Use the limit switch connected to a TalonSRX

◆ value

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

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