SparkMaxRelativeEncoder_GetPosition

Function SparkMaxRelativeEncoder_GetPosition 

Source
pub unsafe extern "C" fn SparkMaxRelativeEncoder_GetPosition(
    this: *mut c_void,
) -> f64
Expand description

Get the position of the motor. This returns the native units of ‘rotations’ by default, and can be changed by a scale factor using setPositionConversionFactor().

@return Number of rotations of the motor