View unanswered posts | View active topics It is currently Thu Apr 17, 2014 9:40 am






Reply to topic  [ 2 posts ] 
Going from autonomous to RC? 
Author Message
Rookie

Joined: Thu Mar 07, 2013 4:54 pm
Posts: 3
Post Going from autonomous to RC?
Alright im fairly new to ROBOTC and was wondering how you switch from autonomous to RC. The instructions are that it has to drive autonomous for 10 seconds then be controled by an operator. I know this is a fairly easy task but wasn't sure how its done. Can anybody give me an example template or something?

Edited by Xander: please don't use large fonts and excessive question marks. It comes across as shouting and screaming for attention, which you'll find is more often ignored than acknowledged. Thank you.


Thu Mar 07, 2013 5:00 pm
Profile
Site Admin
Site Admin

Joined: Thu May 24, 2012 12:15 pm
Posts: 533
Post Re: Going from autonomous to RC?
There are a couple of possible ways to do this. The easiest way to do this from scratch is to use timers to control a while loop, and place all of the autonomous code inside of the while loop. This way, the code inside of the while loop will run for whatever time you specify. You can learn how to use timers in your program by watching the two videos under the 'Remote Control -> Timers' section of the VEX Cortex Video Trainer Curriculum.

_________________
Check out our Blog! And our Facebook page!
Need help? Take a look at our Wiki and our Forums.

I just met you,
And this is crazy,
But here's my code now,
So fix it, maybe?
~ Carly Rae Jepsen parody


Fri Mar 08, 2013 4:30 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.