MPU9150 Accelerometer, Gyro, Temperature, Compass icon MPU9150 Accelerometer, Gyro, Temperature, Compass — MPU9150 ARC control reads compass, gyro, accelerometer and temperature via I2C, initializes and sets EZ-Script variables on demand. Try it →
 

Waitforpositionequals

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

Parameters

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

Returns

Returns current servo position. Returns -1 if timeout

Description

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