StatusSignalTWaitForUpdate Method

Waits up to timeoutSec to get the up-to-date status signal value.

This performs a blocking refresh operation. If you want to non-blocking refresh the signal, call Refresh(Boolean) instead.

Definition

Namespace: CTRE.Phoenix6
Assembly: Phoenix6 (in Phoenix6.dll) Version: 1.0.0
C#
public StatusSignal<T> WaitForUpdate(
	double timeoutSec,
	bool reportError = true
)

Parameters

timeoutSec  Double
Maximum time to wait for the signal to update
reportError  Boolean  (Optional)
Whether to report any errors to the console. Defaults true

Return Value

StatusSignalT
Reference to itself

See Also