BaseStatusSignalSetUpdateFrequency Method

Sets the rate at which the device will publish this signal.

A frequency of 0 Hz will turn off the signal. Otherwise, the minimum supported signal frequency is 4 Hz, and the maximum is 1000 Hz.

If other StatusSignals in the same status frame have been set to an update frequency, the fastest requested update frequency will be applied to the frame.

Definition

Namespace: CTRE.Phoenix6
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public StatusCode SetUpdateFrequency(
	double frequencyHz,
	double timeoutSeconds = 0.05
)

Parameters

frequencyHz  Double
Rate to publish the signal in Hz
timeoutSeconds  Double  (Optional)
Maximum amount of time to wait when performing the action

Return Value

StatusCode
Status code of setting the update frequency

See Also