View Single Post
  #1   Spotlight this post!  
Unread 27-01-2005, 12:17
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Relay Assignments

Quote:
Originally Posted by MulletFish
I am trying to assign more than one joystick button to a single relay_rev. I have tried using an "=" sign, I have tried adding a new line but the program recognizes one but not the other. How can I do it? Thanks!
Use C's | "or" operator.

Code:
relay3_rev = p1_sw_trig | p2_sw_trig;