Go to Post It's amazing what you'll find in the FIRST Manual :) - dcarr [more]
Home
Go Back   Chief Delphi > Technical > Programming
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
  #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.
 


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
C coding ExarKun666 General Forum 12 21-12-2007 14:13
Photoswitch coding magical hands Programming 0 17-01-2006 21:20
pneumatics coding problem (or technical) wildabyss Programming 2 22-02-2005 22:16
pneumatics coding problem (or technical) wildabyss Pneumatics 2 22-02-2005 22:16
coding a potentiometer incognito_NICK Programming 5 14-02-2005 15:56


All times are GMT -5. The time now is 19:07.

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