Getrss icon Getrss Fetch RSS via GetRSS command; populates $RSSSuccess, $RSSErrorMsg and arrays $RSSTitles, $RSSDescriptions, $RSSLinks, $RSSDates for scripts. 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

Get access to the latest features and updates before they're released. You'll have everything that's needed to unleash your robot's potential!

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