<viztask>.waitSensorUp

Wait for a specified sensor button release

 

<viztask>.waitSensorUp(
    sensor    
    button    

)

 

sensor

A sensor object, list of sensors, or None to wait for any sensor


button

The button on the sensor to wait for.

If button is a sequence, then the Condition will wait for one of the buttons to be released.

If button is None, then the Condition will wait for any button on the sensor to be released.


Remarks

This command will create a Condition object that will wait for one of the specified sensor buttons to be released.

The yielded command returns a viz.Data object with the following information about the Condition:

Properties

button

The sensor button that was released

sensor

The sensor object

Return Value

viztask.Condition object