ParentDeviceOptimizeBusUtilizationForAll Method

Optimizes the bus utilization of the provided devices by reducing the update frequencies of their status signals.

All status signals that have not been explicitly given an update frequency will be disabled. Note that if other status signals in the same status frame have been given an update frequency, the update frequency will be honored for the entire frame.

This function only needs to be called once in the robot program for the provided devices. Additionally, this method does not necessarily need to be called after setting the update frequencies of other signals.

To restore the default status update frequencies, remove this method call, redeploy the robot application, and power-cycle the devices on the bus. Alternatively, the user can override individual status update frequencies using {@link BaseStatusSignal#setUpdateFrequency}.

This will wait up to 0.050 seconds (50ms) for each status frame.

Definition

Namespace: CTRE.Phoenix6.Hardware
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public static StatusCode OptimizeBusUtilizationForAll(
	params ParentDevice[] devices
)

Parameters

devices  ParentDevice
Devices for which to opimize bus utilization

Return Value

StatusCode
Status code of the first failed optimize call, or OK if all succeeded

See Also