View unanswered posts | View active topics It is currently Fri Jul 25, 2014 5:10 pm






Reply to topic  [ 3 posts ] 
To get the robot to do something when it first starts up 
Author Message
Rookie

Joined: Fri Dec 02, 2011 12:19 pm
Posts: 1
Post To get the robot to do something when it first starts up
To make it play a sound (which I already have the code for) when it first starts up?!
In an "if" or "whiletrue" statement form?


Fri Dec 02, 2011 12:23 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: To get the robot to do something when it first starts up
Do you want the robot to play the sound when it starts up? In that case, just put the code that you have at the very top of your main task.

_________________
sudo rm -rf /


Fri Dec 02, 2011 1:03 pm
Profile
Senior Roboticist
User avatar

Joined: Wed Sep 28, 2011 10:13 pm
Posts: 630
Location: If I told you, I'd have to kill you.
Post Re: To get the robot to do something when it first starts up
If you want it to play a sound when you first turn it on, then just rename the sound file to "! Startup.rso".

_________________
A.K.A. inxt-generation
Self-proclaimed genius, and future world dominator.
My Brickshelf Folder
"Don't they teach recreational mathematics anymore?" - The Tenth Doctor
Bow down to Nikola Tesla, King of the Geek Gods.


Sat Dec 03, 2011 12:18 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 3 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.