SparkMaxAlternateEncoder_SetInverted

Function SparkMaxAlternateEncoder_SetInverted 

Source
pub unsafe extern "C" fn SparkMaxAlternateEncoder_SetInverted(
    this: *mut c_void,
    inverted: bool,
) -> REVLibError
Expand description

Set the phase of the MotorFeedbackSensor so that it is set to be in phase with the motor itself. This only works for quadrature encoders.

@param inverted The phase of the encoder

@return REVLibError::kOk if successful