CANSparkMax_GetEncoder

Function CANSparkMax_GetEncoder 

Source
pub unsafe extern "C" fn CANSparkMax_GetEncoder(
    this: *mut CANSparkMax,
    encoderType: i32,
    countsPerRev: i32,
) -> SparkMaxRelativeEncoder
Expand description

Returns an object for interfacing with the encoder connected to the encoder pins or front port of the SPARK MAX.

The default encoder type is assumed to be the hall effect for brushless. This can be modified for brushed DC to use an quadrature encoder.