View Single Post
  #2   Spotlight this post!  
Unread 09-02-2008, 23:20
eaglesfan10's Avatar
eaglesfan10 eaglesfan10 is offline
Registered User
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2005
Location: New Jersey
Posts: 19
eaglesfan10 is an unknown quantity at this point
Re: Single Solenoids

Quote:
Originally Posted by mormannoob View Post
so if i wanted to i could do
#define punch_relay relay1_fwd

then

punch_relay = EXTEND; (presumming i set EXTEND = 1)

Sure, and you could even create a variable called RETRACT and set it to 0 and alternate EXTEND and RETRACT based on a button being pressed.