CTRE Phoenix C++ 5.33.1
ctre::phoenix::motorcontrol::LimitSwitchRoutines Class Reference

Class to handle various functions regarding limit switches. More...

#include <ctre/phoenix/motorcontrol/LimitSwitchType.h>

Static Public Member Functions

static LimitSwitchSource Promote (RemoteLimitSwitchSource limitSwitchSource)
 Takes a RemoteLimitSwitchSource and brings it up to a LimitSwitchSource. More...
 
static bool IsRemote (LimitSwitchSource limitSwitchSource)
 Checks if a limit switch is one of the remote values (i.e. More...
 
static std::string toString (LimitSwitchSource value)
 
static std::string toString (RemoteLimitSwitchSource value)
 
static std::string toString (LimitSwitchNormal value)
 

Detailed Description

Class to handle various functions regarding limit switches.

Member Function Documentation

◆ IsRemote()

static bool ctre::phoenix::motorcontrol::LimitSwitchRoutines::IsRemote ( LimitSwitchSource  limitSwitchSource)
inlinestatic

Checks if a limit switch is one of the remote values (i.e.

RemoteTalonSRX or RemoteCANifier)

Parameters
limitSwitchSourcelimitSwitchSource to check
Returns
true if it's a remote limit switch source

◆ Promote()

static LimitSwitchSource ctre::phoenix::motorcontrol::LimitSwitchRoutines::Promote ( RemoteLimitSwitchSource  limitSwitchSource)
inlinestatic

Takes a RemoteLimitSwitchSource and brings it up to a LimitSwitchSource.

Parameters
limitSwitchSourceLimitSwitchSource to promote
Returns
promoted limitSwitchSource

◆ toString() [1/3]

static std::string ctre::phoenix::motorcontrol::LimitSwitchRoutines::toString ( LimitSwitchNormal  value)
inlinestatic
Parameters
valueLimitSwitchNormal to get the string value of
Returns
string representation of value

◆ toString() [2/3]

static std::string ctre::phoenix::motorcontrol::LimitSwitchRoutines::toString ( LimitSwitchSource  value)
inlinestatic
Parameters
valueLimitSwitchSource to get the string value of
Returns
string representation of value

◆ toString() [3/3]

static std::string ctre::phoenix::motorcontrol::LimitSwitchRoutines::toString ( RemoteLimitSwitchSource  value)
inlinestatic
Parameters
valueLimitSwitchSource to get the string value of
Returns
string representation of value

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