UBTECH Alpha Servos UBT-12HC icon UBTECH Alpha Servos UBT-12HC — Control UBTECH Alpha UBT-12HC smart servos via ARC using EZ-B v4/IoTiny UART, assign virtual ports, set baud, custom bits and position mapping. Try it →
Asked — Edited

If Conditions Broke On 9-14-2012 Update

Here's some sample code that just keeps counting beyond 90 where on the previous update it exits as it's told.


$position = 10

:loop

 servo(d1, $position)

 print("Position: $position")

 Say("$Position")

 sleep(1000)

 $position = $position + 10

 if ($position > 90)
   goto(done)

goto(loop)

:done
Say("I'm Done counting!")

 

Uninstalling the latest update and reinstalling the previous one was a solution for me.

Hope this helps.


ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro