SparkMaxAnalogSensor_SetVelocityConversionFactor

Function SparkMaxAnalogSensor_SetVelocityConversionFactor 

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

Set the conversion factor for the velocity of the analog sensor. By default, revolutions per volt second is 1. Changing the velocity conversion factor will also change the velocity units.

@param factor The conversion factor which will be multipled by volts per second

@return REVLibError::kOk is successful