View Single Post
  #6   Spotlight this post!  
Unread 23-10-2010, 15:05
whcirobotics's Avatar
whcirobotics whcirobotics is offline
Registered User
FRC #1514 (Vikings)
 
Join Date: Nov 2008
Rookie Year: 2009
Location: WHCI
Posts: 174
whcirobotics is an unknown quantity at this point
Re: How do i add two "True" values

I have tried to make the kicker by the state machine way,, with the Enums and everything. But it was a lot of case structures. i made it worked with just 3 if statements so that is not my problem.

But what is my problem is that i want it to kick when (2) values of 2 switches is true. I did it by adding another Case structure in autonomus over the two "True" cases and did the solenoid extend and retract.

I am asking if there is a better way > to do this. Like a ( + ) that adds the true values. maybe? i have written the code and posted it,, in my attachments above. If you know a way to do this tell me!

1514
Whcirobotics
Reply With Quote