ARC Pro

Upgrade to ARC Pro

ARC Pro is more than a tool; it's a creative playground for robot enthusiasts, where you can turn your wildest ideas into reality.

#65  

Get rid of servo(D3,90) in my code and the ping should point to the object it sees..

PRO
Belgium
#66  

dj has fix the bug on port d22 and i downloded the new version. here the video what we have sofar.

#67  

Looks like you almost got it working... awesome...:)

PRO
Belgium
#68  

yes now looking to make the servo stop when he detects an object and say. stop surrender now ,got the sound file. gonna make a motion for the ping make a special movement when he detects, the anemy.

PRO
Belgium
#69  

i made a video.what i want him to do when he spotted an object. can i wright that in the script next to a soundfile?

User-inserted image

#70  

@nomad you can add a new line anywhere you want... see below


setVolume(100)
repeatuntil(0)
$distance=GetPing(D20,D21) #check ping
if ($distance<50)
servo(D3,90)
ControlCommand(Soundboard V4, Track_4)

#new line
#new line
#another new line

sleep(3000) # change to what works best
else
ControlCommand(Soundboard V4, Track_5)
#may need a sleep command here
endif
servo(D3,50)
sleep(250)
servo(D3,130)
sleep(250)
endrepeatuntil
PRO
Belgium
#71  

and it will play soundfile and motionfile same time?

#72  

It depends on what you are doing and how you code it...