CANSparkMax_GetForwardLimitSwitch1

Function CANSparkMax_GetForwardLimitSwitch1 

Source
pub unsafe extern "C" fn CANSparkMax_GetForwardLimitSwitch1(
    this: *mut CANSparkMax,
    polarity: CANDigitalInput_LimitSwitchPolarity,
) -> SparkMaxLimitSwitch
Expand description

Returns an object for interfacing with the forward limit switch connected to the appropriate pins on the data port.

This call will disable support for the alternate encoder.

@param polarity Whether the limit switch is normally open or normally closed.

@deprecated Use GetForwardLimitSwitch(SparkMaxLimitSwitch::Type) instead