Movement Joystick icon Movement Joystick — Analog joystick UI to control any ARC movement panel via mouse/touch-configurable dead zone, max speed, center-reset for smooth robot motion Try it →
Asked — Edited

Help Me With Security Guard Script Please

:start stop()

:test #See if someone comes too close to it GetPing( d18, d17) GetPing( d9, d8 )
Ping_wait(d18,d17,LOWER,20) Ping_wait(d9,d8,LOWER,20) if (ADC(ADC1 < 120) sleep(500)

   if (ADC(ADC2 < 120)
       sleep(500)
       goto (alarm)
       goto(test)

:alarm

ControlCommand("Soundboard",Track_10)
    goto(start)

    #If speech recognition hears "Halt!"

 say ("Exit ting Security Mode!")
   halt()
RETURN()

ARC Pro

Upgrade to ARC Pro

Take control of your robot's destiny by subscribing to Synthiam ARC Pro, and watch it evolve into a versatile and responsive machine.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#17  

@hazbot, you can find more examples in ARC under File->Examples. Since day 1, examples are documented using the notepad. You have been told nearly 8 times.

Author Avatar
Australia
#18  

I'm glad Moviemaker understands the example and it works - that's the main thing. The examples are improving and it would be great if they were catagorised - like a Dictionary or like any data that is referenced in a logical order. eyeroll

#19  

I actually sort of made a list of the Examples and the things that they illustrated. I printed it out and put it in a three ring binder. I didn't save it. But, it was helpful to do that. You can easily do that. Just go down the list and see what you have and make a note on a pad, then type it in and print it out.

thanks for the kind words.

:D