Go to Post The FIRST community will always step up in times of need. - nikeairmancurry [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 29-01-2015, 17:39
hyprvx's Avatar
hyprvx hyprvx is offline
Registered User
AKA: Devon
FRC #2151 (Monty Pythons)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2014
Location: Forest Park
Posts: 22
hyprvx is an unknown quantity at this point
Relays only going backwards?

So we have one relay set on relay output 0, configured in both directions. We have boolean variables true if button 5 or 6 is held, respectively, and two while loops if those variables are true. In those loops, we have the relays set to trigger forwards or backwards, and when the code breaks out of those two loops, set back to off. The loop for backwards works perfectly; when I hold button 5, the relay triggers to go backwards. But button 6, when held, does nothing. We have stepped through the code with the debugger, and it's supposed to be setting the relay to forwards, but it does nothing. Help?

Our code is at https://github.com/caffeinatedDrummer/2151-Code
__________________
My userbars were eaten by Cthulhu.


FRC team 2151, the Monty Pythons!
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 22:29.

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