RobotIOWaitUntilSensorsReady(ContinuousSensor) Method

Waits up to 2000ms 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(
	params ContinuousSensor[] sensors
)

Parameters

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

ArgumentNullExceptionsensors is null or empty.

See Also