Openai Text To Speech icon Openai Text To Speech Convert text to dynamic, real-time speech with nine expressive OpenAI voices-natural, varied, accessible robot communication. Try it →

ARC Pro

Upgrade to ARC Pro

Stay on the cutting edge of robotics with ARC Pro, guaranteeing that your robot is always ahead of the game.

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?