Re: switching between autonomous and RC
It does depend on how you have your code set up, but generally you would have two functions; one for autonomous and one for remote control. Basically, if you have your autnomous controlled by a while loop (which is generally a timer-based loop, with the time value being however long you want the autonomous period to last) you can put a call to your remote control function in an if statement. Then, if the button you determine is pressed when the code gets to that part of the code, it will kick out of the autonomous 'while' loop and go into the remote control section of code.
I don't know what level of coding you are at (and I never assume code mastery) so here are a few links to get you started with while loops, functions, and remote control buttons. Functions
are under Sensing->Behaviors and Functions, Remote Control
can be found under Remote Control->Buttons->Remote start: http://www.education.rec.ri.cmu.edu/pro ... index.htmlWhile loops
can be found on our wiki: http://www.robotc.net/wiki/Control_Structures#while
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