ESP32_MPU6050 icon ESP32_MPU6050 ESP32/Arduino EZB firmware with MPU6050 support: provides accelerometer angles and Yaw/Pitch/Roll gimbal servo values for stabilization and scripting Try it →
 

Waitforpositionlower

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

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.
timeoutMS (optional) Number of milliseconds to wait before timeout.

Returns

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

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.