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

Don't limit your robot's potential – subscribe to ARC Pro and transform it into a dynamic, intelligent machine.

PRO
Synthiam
#9  

Visit the ARC's download page and update to v2012.08.12.00

Click File->Examples and load the Example - Script - Security Guard

#10  

man I'm right behind you Moviemaker - keep at it, I'm sure you'll crack it.

Lets make sure that we all help each other as much as possible with any issues we have with scripts - for the uninitiated they can be damn daunting (like myself) :) There a a heap of really smart guys on this forum who need to appreciate that for some of us, this is a brave new world and sometimes a little confusing.

Oh and for the record - the best robot in a movie was in Rocky IV -Pauli's advances were a little worrying though!

#11  

the best robot of all time is Bicentennial Man with ROBIN Williams and was made by the worlds greatest robotic writer ISSAC ASIMOV and gave us the 3 LAWS OF ROBOTICS ,HE IS THE ONE WHO STARTED ROBOTS and my favorate robot is JOHHNY FIVE from short circuit,and working on a full detail and size of him

Spain
#12  

Totally agree with you robotmaker, Isaac Asimov is my favorite writer, and a movie Bicentennial Man fantastic.:)

#13  

he is the creator of robots,plus the writer of IROBOT and more

#14  

Thanks guys and Thank You, D.J;. I haven't looked at it yet, but I bet I am going to be amazed.

I USED to be a good programmer back in the DOS days. I programmed in Basic. The way I learned to program was to read three books. The first one I forget the title was like Beginning Basic. But, the second two I will NEVER forget. One was called BASIC BASIC, The other was called ADVANCED BASIC. Each book had over a hundred programs listed in a readable format. I had all of that in the palm of my hand. I started off slow like "hello world." By the time I finished I was writing short useful programs. Then, I owned a computer store for 12.5 years. I was an authorized Peach-Tree Dealer. Software would come in on a regular basis not working. So, I had to correct it. Sometimes, I called the factory, but mostly by then, I could correct it myself. Then I started Customizing software for my customers. When Wayne Ratlif came out with Vulcan database it was Heaven. I started to program in DbaseII, and III. That is when Aston Tate bought out Vulcan and changed it's name to Dbase. I had all of the knowledge and was so good at it. But, that was about 35 years ago and one forgets. I am hoping to get back into programming. I just need a few good books. I did good with c for the arduino. But, like you said that is Mickey-Mouse compared to the EZB.

If I do succeed in all of this, it will be because of D.J. and the Wonderful People of this forum that gave me moral support.

God Bless All of you.

Mel

#15  

D.J. !!! You are the Son I never had!

Thank You soooooo much. It is Perfect!!!!!!!!

I will use those subroutines to do many more projects.

Mel

:D

Australia
#16  

I've just seen the example in the new EB version. I'm really happy for you Moviemaker, this is what I've been pushing for. I like the fact they have explained a lot of it in the notepad. I think if we all rally together we can get the help we need in a way we can understand it. There is no better way than a good - fully explained example.

.:) :) :)