CANSparkMaxLowLevel_SetPeriodicFramePeriod

Function CANSparkMaxLowLevel_SetPeriodicFramePeriod 

Source
pub unsafe extern "C" fn CANSparkMaxLowLevel_SetPeriodicFramePeriod(
    this: *mut CANSparkMaxLowLevel,
    frame: CANSparkMaxLowLevel_PeriodicFrame,
    periodMs: c_int,
) -> REVLibError
Expand description

Set the rate of transmission for periodic frames from the SPARK MAX

Each motor controller sends back three status frames with different data at set rates. Use this function to change the default rates.

Defaults: Status0 - 10ms Status1 - 20ms Status2 - 50ms

This value is not stored in the FLASH after calling burnFlash() and is reset on powerup.

Refer to the SPARK MAX reference manual on details for how and when to configure this parameter.

@param frame Which periodic frame to change the period of @param periodMs The rate the controller sends the frame to the controller.

@return REVLibError::kOk if successful