View Single Post
  #14   Spotlight this post!  
Unread 13-02-2014, 21:11
nyaculak nyaculak is offline
Registered User
FRC #0053 (Area 53)
Team Role: Programmer
 
Join Date: Oct 2011
Rookie Year: 2011
Location: Maryland
Posts: 28
nyaculak will become famous soon enough
Re: Programming Ring Light [Java]

The code supplied is not going to work at all. The operatorControl() function is only called once, so it's necessary to surround all of the control logic in a while loop
Code:
while(isEnabled() && isOperatorControl()) {
    // code goes here
}
__________________
2013 MUC DC 3rd Place, FRC DC Regional, FRC Chesapeake Regional
2012 FRC DC Regional, FRC Chesapeake Regional
ERHS Robotics Club
- FRC Team 53 "Area 53"
www.erhsroboticsclub.org
Reply With Quote