View Single Post
  #3   Spotlight this post!  
Unread 23-02-2007, 08:59
dominic.danna dominic.danna is offline
Dominic
FRC #1184 (Cobra Robotics)
Team Role: Electrical
 
Join Date: Feb 2007
Rookie Year: 2004
Location: Bel Air
Posts: 2
dominic.danna is an unknown quantity at this point
Send a message via AIM to dominic.danna
Re: PROGRAMMING PNEUMATICS

But how would you program to turn the switch on and off with the click of the trigger

Would it be

if (p1_sw_trig == 1)
{
relay2_fwd = 1; //to go
}
else
{
relay3_fwd = 0; //to stop
}

would this work for having the switch be in relay2 for on and relay3 is for the switch off. Thanks