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).
Namespace: CTRE.Phoenix6.NativeAssembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
public static int OptimizeUpdateFrequencies(
string network,
uint deviceHash,
double timeoutSeconds
)
static member OptimizeUpdateFrequencies :
network : string *
deviceHash : uint32 *
timeoutSeconds : float -> int
- network String
- Network to apply optimization to
- deviceHash UInt32
- Device to apply optimization to
- timeoutSeconds Double
- Timeout for operation
Int32Status code of the optimization