Thread: C++ Relay Code?
View Single Post
  #2   Spotlight this post!  
Unread 14-07-2009, 17:52
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: C++ Relay Code?

Your logic seems good, but here's a question....Are you trying to have the relay fire in teleop or autonomous?

If you're trying to do teleop, your logic needs to be in the TeleopPeriodic function.

If you're trying to do autonomous, you have to keep in mind that the inputs are zero'd out during autonomous and plan your logic around that. As is, the button will always be false and therefore the relay will always be in the off state.
Reply With Quote