View Single Post
  #7   Spotlight this post!  
Unread 12-02-2008, 02:43
Inetta's Avatar
Inetta Inetta is offline
NaNa
FRC #1703 (R.A.W.R.)
Team Role: Webmaster
 
Join Date: Feb 2008
Rookie Year: 2008
Location: Las Vegas
Posts: 5
Inetta is an unknown quantity at this point
Re: Pneumatics coding

First off thanks so much to everyone that replied and helped and also thanks so much Squishy for helping me at all, I really appreciate it. <3

basically I used this line of code so far

relay2_fwd = 0;
relay2_rev = 0;

if(p4_sw_trig == 1)
{
relay2_fwd=1;
relay2_rev=0;
}
else if (p4_sw_trig == 0)
{
relay2_fwd=0;
relay2_rev=0;
}

like would that work.. or is that completely wrong?

sorry, I really don't have any experience in programming so my questions might seem pointless. So like I said, sorry ahead of time

Last edited by Inetta : 12-02-2008 at 03:01.