LimitSwitchRoutines

class phoenix5.LimitSwitchRoutines

Bases: pybind11_object

Class to handle various functions regarding limit switches

static isRemote(limitSwitchSource: phoenix5._ctre.LimitSwitchSource) bool

Checks if a limit switch is one of the remote values (i.e. RemoteTalonSRX or RemoteCANifier)

Parameters:

limitSwitchSource – limitSwitchSource to check

Returns:

true if it’s a remote limit switch source

static promote(limitSwitchSource: phoenix5._ctre.RemoteLimitSwitchSource) phoenix5._ctre.LimitSwitchSource

Takes a RemoteLimitSwitchSource and brings it up to a LimitSwitchSource

Parameters:

limitSwitchSource – LimitSwitchSource to promote

Returns:

promoted limitSwitchSource