|
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.
|