View Single Post
  #1   Spotlight this post!  
Unread 24-01-2014, 22:34
Zaque Zaque is offline
FF: Bobo Brigade
AKA: Zachary H.
FRC #3352 (Flaming Monkeys)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2013
Location: Belvidere, Illinois
Posts: 91
Zaque has a spectacular aura aboutZaque has a spectacular aura aboutZaque has a spectacular aura about
While loop not working in autonomous

Hi all,

I have created a while loop in autonomous that uses a boolean from the vision processing (hot goal). I have a System.out that will print repeatedly in NetConsole, but my relay will only go forward the first time. Relevant code below:

Code:
        while(h){
            relay.set(Relay.Value.kForward);
            System.out.println("Firing");
        }
__________________
Zaque (Zach) H.
President
Programming/Electrical Lead
Reply With Quote