Cognitive Emotion icon Cognitive Emotion Uses Microsoft Cognitive Emotion cloud to analyze camera images, returning emotion descriptions and confidence for speech/output (requires internet). Try it →

ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

Author Avatar
United Kingdom
YouTube
#41  

@DJ.

That's cool. I guessed it was a GOTO but didn't realise you could rename, or should I say label it with a custom named. I'll have a look at the examples folder.

Thanks.

Author Avatar
PRO
Synthiam
LinkedIn Thingiverse Twitter YouTube GitHub
#42  

Anytime dude:D

I think my random selection of CHICKEN was due to how hungry I am... oh so hungry. Skipped lunch!

Author Avatar
United Kingdom
YouTube
#43  

Mmmm. I was thinking pizza myself, lol. Go get something to eat buddy.

Author Avatar
PRO
Belgium
Thingiverse
#44  

so above loop comes chicken?or any name.

Author Avatar
United Kingdom
YouTube
#45  

@nomad.

From how I understanding now, that's not correct. In your example, :loop doesn't go above :chicken, :loop is :chicken (or :whatever you name it).

Quote from the script manual...

Defines a label for a GOTO() command Example: :My_Label [/quote]

#46  

For you guys that are hungry....:)


setVolume(100)
:chickenandpizza
ControlCommand(Soundboard V4, Track_4)
repeatuntil(1=2)
$distance=GetPing(D20,D21) #check ping
if ($distance<50)
ControlCommand("Soundboard v4", Stop)
servo(D3,90)
sayEZBwait("danger, danger, danger")
goto(chickenandpizza)
endif
sleep(250)
endrepeatuntil
Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#48  

@RichardR a little off topic but I've always wondered why you use the impossible statement in a repeatuntil rather than a label/goto loop?