Go to Post Competition is only the path that FIRST takes to bring science, engineering, and technology to the masses. - Pavan Dave [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
programming the pneumatics Armando Programming 2 17-02-2007 21:47
Programming Pneumatics? itzrobz Programming 2 20-01-2007 00:30
Programming of Pneumatics Ben Piecuch Programming 3 18-02-2005 02:39
Pneumatics Programming KWalsh Programming 8 19-02-2004 09:17
Programming PBASIC for pneumatics archiver 2001 2 23-06-2002 23:58


All times are GMT -5. The time now is 12:13.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi