RobotIOWaitUntilSensorsReady(Int32, ContinuousSensor) Method

Waits up to the timeout period for specified sensors to become ready. The sensors must have been enabled beforehand. Analog sensors are enabled by default.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
C#
public bool WaitUntilSensorsReady(
	int timeoutMs,
	params ContinuousSensor[] sensors
)

Parameters

timeoutMs  Int32
A timeout specified in milliseconds.
sensors  ContinuousSensor
One or more sensors that can report whether they are ready or not.

Return Value

Boolean
true if the sensors are ready within the timeout period, false otherwise.

Exceptions

ArgumentOutOfRangeExceptiontimeoutMs must be greater than 0 and less than or equal to 5000.
ArgumentNullExceptionsensors is null or empty.

See Also