waitForPositionLower

Servo.waitForPositionLower(port, position, [ezbIndex])

Parameters

port Servo port to use.
position Exclusive upper bound on the position to wait for.
ezbIndex (optional) Board index of the EZB to use.

Returns

The position of the servo at the specified port that is lower than position.

Description

Suspends execution of the script until the commanded position of the servo at the specified port is lower than position. The commanded position can be changed either by the user from another skill, or another script. position is a value between 0 and 180.