View Single Post
  #3   Spotlight this post!  
Unread 14-02-2010, 21:33
Mark McLeod's Avatar
Mark McLeod Mark McLeod is offline
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
Re: Buttons on Joystick

Are you using a double solenoid or two single solenoids?

One issue with the code is that the solenoids cannot work in opposition to each other. If you turn one on, then at the same time you should be turning the other off.
They have to be changed to False at some point.

Also, the compressor code doesn't go in periodic tasks, but whatever you've done is obviously not hurting. The compressor is started in Begin and then left alone.

The Open looks fine.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Reply With Quote