StatusSignalNativeOptimizeUpdateFrequencies Method

Optimizes the device's bus utilization by reducing the update frequencies of its 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 on this device in the robot program.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 SetUpdateFrequency(Double, Double).

Definition

Namespace: CTRE.Phoenix6.Native
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public static int OptimizeUpdateFrequencies(
	string network,
	uint deviceHash,
	double timeoutSeconds
)

Parameters

network  String
Network to apply optimization to
deviceHash  UInt32
Device to apply optimization to
timeoutSeconds  Double
Timeout for operation

Return Value

Int32
Status code of the optimization

See Also