Go to Post There is more to our team than my hair, you know. :P - thefro526 [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 09-02-2008, 22:10
mormannoob's Avatar
mormannoob mormannoob is offline
President and Senior Programmer
AKA: Clinton
FRC #0498 (Cobra Commanders)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Glendale,AZ
Posts: 93
mormannoob is on a distinguished road
Single Solenoids

I need help my team is using a single solenoid on our robot and me and our programming team is unsure on how to program one (we've always used double solenoids in the passed) any help,code, suggestions on material to read will be greatly appreciated.

thanks
from the Team 498 programming team and especially their captian(me)
__________________
Why cant code work the first time

Wait I have to lead programmers thats like asking a kid who doesnt know how to ride a bike to lead a group of guys at the tour de france
  #2   Spotlight this post!  
Unread 09-02-2008, 22:19
eaglesfan10's Avatar
eaglesfan10 eaglesfan10 is offline
Registered User
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2005
Location: New Jersey
Posts: 19
eaglesfan10 is an unknown quantity at this point
Re: Single Solenoids

I think single solenoids are actually easier. You just need to change one variable in the code so one position will look like this:
relay1_fwd = 1;
and the other position would look like this:
relay1_fwd = 0;
  #3   Spotlight this post!  
Unread 09-02-2008, 23:12
mormannoob's Avatar
mormannoob mormannoob is offline
President and Senior Programmer
AKA: Clinton
FRC #0498 (Cobra Commanders)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Glendale,AZ
Posts: 93
mormannoob is on a distinguished road
Re: Single Solenoids

so if i wanted to i could do
#define punch_relay relay1_fwd

then

punch_relay = EXTEND; (presumming i set EXTEND = 1)
__________________
Why cant code work the first time

Wait I have to lead programmers thats like asking a kid who doesnt know how to ride a bike to lead a group of guys at the tour de france
  #4   Spotlight this post!  
Unread 09-02-2008, 23:20
eaglesfan10's Avatar
eaglesfan10 eaglesfan10 is offline
Registered User
FRC #1647 (Iron Devils)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2005
Location: New Jersey
Posts: 19
eaglesfan10 is an unknown quantity at this point
Re: Single Solenoids

Quote:
Originally Posted by mormannoob View Post
so if i wanted to i could do
#define punch_relay relay1_fwd

then

punch_relay = EXTEND; (presumming i set EXTEND = 1)

Sure, and you could even create a variable called RETRACT and set it to 0 and alternate EXTEND and RETRACT based on a button being pressed.
  #5   Spotlight this post!  
Unread 09-02-2008, 23:25
mormannoob's Avatar
mormannoob mormannoob is offline
President and Senior Programmer
AKA: Clinton
FRC #0498 (Cobra Commanders)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2006
Location: Glendale,AZ
Posts: 93
mormannoob is on a distinguished road
Re: Single Solenoids

ok thanks for the help figured it was simple i just wanted to make sure i didnt make any mistakes
__________________
Why cant code work the first time

Wait I have to lead programmers thats like asking a kid who doesnt know how to ride a bike to lead a group of guys at the tour de france
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
# of solenoids Brawler006 Pneumatics 5 01-02-2004 11:12
solenoids hot69z Electrical 2 08-01-2003 06:02
Solenoids archiver 2001 9 23-06-2002 23:47
solenoids zarb Electrical 1 28-01-2002 23:19
Solenoids turbidum Rules/Strategy 1 09-01-2002 21:26


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