HMC5883 Compass icon HMC5883 Compass Reads HMC5883 3-axis compass via I2C and updates EZ-Script variables on demand; polled control offers periodic heading data, for connected sensors. Try it →
 

Waitforpositionhigher

Servo.waitForPositionHigher(port, position, [ezbIndex], [timeoutMS])

Parameters

port Servo port to use.
position Exclusive lower bound on the position to wait for.
ezbIndex (optional) Board index of the EZB to use.
timeoutMS (optional) Number of milliseconds to wait before timeout.

Returns

The position of the servo at the specified port that is higher than position. Returns -1 if timeout.

Description

Suspends execution of the script until the commanded position of the servo at the specified port is higher than position. The commanded position can be changed either by the user from another skill, or another script.