Ubtech Alpha 1 Bluetooth icon Ubtech Alpha 1 Bluetooth Bluetooth control for UBTech Alpha1 servos via ARC: map Vx to servo IDs, enable servos, and integrate with ARC movement & LEDs. Try it →
Tutorial
United Kingdom
YouTube
Published — Updated

The ARC Script Manual.

Step 19 of 21
W.)

WaitFor( expression, [timeout MS] ) Pauses the execution of a script until the specified expression is true. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitFor($AutoPositionStatus = 0) Example: WaitFor($value1 = $value2) Example: WaitFor($value1 = $value2, 1000)

WaitForChange( value, [timeout MS] ) Pauses the execution of a script until the specified value has changed. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitForChange($x) Example: WaitForChange(GetServo(d0)) Example: WaitForChange(GetDigital(d0)) Example: WaitForChange(GetDigital(d0), 1000)

WaitForServoMove (servoPort, [timeout MS]) Waits for the specified servo to move. Unlike Servo_Wait, this function does not wait for a specific value. It simply returns once the servo has moved to a new position. Optionally, the timeout parameter will stop waiting after the specified number of milliseconds. Example: WaitForServoMove(d0) Example: WaitForServoMove(d0, 1000)

WaitForSpeech( timeOut Seconds, phrases ) Pauses and waits for one of the specified phrases to be spoken. Returns the phrase that was spoken. Will return "timeout" if no word is detected in the specified timeout length. Example: WaitForSpeech(30, "Yes", "No") Example: $value = WaitForSpeech(30, "Yes", "No")

WaitUntilTime( hour, minute ) Waits until the specified time. The script will stop at this command and not continue until the specified time. The time is declared in 24 hour format. Example: WaitUntilTime(17, 30)


ARC Pro

Upgrade to ARC Pro

Experience the transformation – subscribe to Synthiam ARC Pro and watch your robot evolve into a marvel of innovation and intelligence.