View Single Post
  #9   Spotlight this post!  
Unread 13-02-2011, 22:17
Robby Unruh's Avatar
Robby Unruh Robby Unruh is offline
*insert random dial-up tone here*
FRC #3266 (Robots R Us)
Team Role: Coach
 
Join Date: Feb 2010
Rookie Year: 2010
Location: Eaton, OH
Posts: 338
Robby Unruh will become famous soon enough
Re: Issue with autonomous mode and some newbie questions

4) I use to stop my builds before switching over to the driver station. I actually only (very) recently discovered that I can keep it running to debug my code!

So to answer your question, let's say I have a teleop function like so:

Code:
public void operatorControl() {
    while(isOperatorControl()) {
        System.out.println("This code will show up a million times when I enable Teleop from the driver station!");
    }
}
I was shocked that it actually worked. haha
__________________
[Robots R Us #3266]
2015: Georgia Southern Classic (Winners / Thanks 1319 & 1648!), Queen City
2014: Crossroads, Queen City
2013: Buckeye, Queen City, Crossroads
2012: Buckeye, Queen City

2011: Buckeye
2010: Buckeye
Reply With Quote