Go to Post The real key to drive team coaching is to tie your jacket around your waist. Got a couple championship rings that way. - TravusCubington [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Spotlight this post!  
Unread 25-01-2014, 00:19
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
Re: While loop not working in autonomous

Sorry for not giving enough information. We are using SimpleRobot. It is located within public void autonomous(). I have the while(isAutonomous() && isEnabled()) loop commented out, so as not to kill the flash on the cRIO. I can post the whole code tomorrow morning, but this is the only code that acts on the relay. To clarify the problem, when I run the program, it prints "Firing" repeatedly in NetConsole, but the relay only turns on for the first time through the while(h) loop. Also, the green LED on the digital sidecar turns on and off with the motor. The h Boolean is set based on whether or not the goal is hot, and I have confirmed this to work.
__________________
Zaque (Zach) H.
President
Programming/Electrical Lead
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:41.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi