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.
Namespace: RoboTx.ApiAssembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
public bool WaitUntilSensorsReady(
int timeoutMs,
params ContinuousSensor[] sensors
)
Public Function WaitUntilSensorsReady (
timeoutMs As Integer,
ParamArray sensors As ContinuousSensor()
) As Boolean
member WaitUntilSensorsReady :
timeoutMs : int *
sensors : ContinuousSensor[] -> bool
- timeoutMs Int32
- A timeout specified in milliseconds.
- sensors ContinuousSensor
- One or more sensors that can report whether they are ready or not.
Booleantrue if the sensors are ready within the timeout period, false otherwise.