View Single Post
  #8   Spotlight this post!  
Unread 22-02-2011, 10:21
smcmahon's Avatar
smcmahon smcmahon is offline
The Architect
AKA: Sean McMahon
FRC #2656 (QUASICS)
Team Role: Coach
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Pittsburgh, PA
Posts: 197
smcmahon is an unknown quantity at this point
Exclamation Re: SPIKEs malfunctioning in "Reverse"

Quote:
Originally Posted by Alan Anderson View Post
If the lights are flickering the way you say they are, it sounds like a programming problem. My wild guess:

Your program has a pair of case blocks or if/then statements. One decides whether the Spike should be set REV or OFF. The other decides whether the Spike should be set FWD or OFF.

Prove me wrong. Show us your code.
--------------------
I can get the code from the Programmer a little later on today, but that's basically exactly what we have Mr. Anderson. We have code that sets the relay(s) to FORWARD if Button 1 is true, and OFF if button 1 is false. And then I think they're REVERSE if Button 2 is true, and OFF if button 1 is false.

We've never programmed Spikes like this before. The only one we ever used was "always Forward" and it was for a harvester brush in 2009.

What's the proper way to program the Spike relays to accomplish what I described above?

[should I move this to Programming/LabVIEW, or start a new thread there?]
__________________
FRC 2656 | FTC 5526 | VEX 9656