Go to Post Just wondering what types of food you have been living off of while working on your robot? Our team has had pizza almost 3-4 times a week or more. Just wondering. SGS DRAGONS - sgsdragons [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 31-01-2004, 14:44
Mark Reynolds's Avatar
Mark Reynolds Mark Reynolds is offline
Registered User
#0329 (R.A.I.D.)
Team Role: Driver
 
Join Date: Jan 2004
Location: Medford, NY
Posts: 4
Mark Reynolds is an unknown quantity at this point
Send a message via AIM to Mark Reynolds
Question Varification Required

Can someone please varify the following code function?

In the file: users_routines.c
Under the section: "Buttons to Relays"

relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */

Please varify that we are indeed setting relay8 to Pin18 which is set as an output? We are confussed because this is the first year we have seen this. Thank you
  #2   Spotlight this post!  
Unread 31-01-2004, 17:01
Rickertsen2 Rickertsen2 is offline
Umm Errr...
None #1139 (Chamblee Gear Grinders)
Team Role: Alumni
 
Join Date: Dec 2002
Rookie Year: 2002
Location: ATL
Posts: 1,421
Rickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant futureRickertsen2 has a brilliant future
Send a message via AIM to Rickertsen2 Send a message via Yahoo to Rickertsen2
Re: Varification Required

Quote:
Originally Posted by Mark Reynolds
Can someone please varify the following code function?

In the file: users_routines.c
Under the section: "Buttons to Relays"

relay8_fwd = !rc_dig_in18; /* Power pump only if pressure switch is off. */

Please varify that we are indeed setting relay8 to Pin18 which is set as an output? We are confussed because this is the first year we have seen this. Thank you
It sets relay 8 to the opposite of pin 18 which is set as an[b]INPUT[/]. Hence the "!" operator. This means that when the pressure is to high( switch is closed circuit) the compressor is shut off. When the pressure is too low( switch is open circuit) thne compressor turns on.
__________________
1139 Alumni
Closed Thread


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
Shifting Gears MBosompra Technical Discussion 71 23-07-2004 02:49
Robot Numbers - Required Mike Martus OCCRA 0 25-10-2003 16:18
Would you like 'Preview' to be required in order to post? Brandon Martus CD Forum Support 18 09-03-2003 18:12
Team 308 Pictures (and a little story, too) archiver 1999 12 23-06-2002 22:52
Additional Parts Required for the Control System?? Tom Fairchild Electrical 4 17-02-2002 15:01


All times are GMT -5. The time now is 00:02.

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