Go to Post amazing stuff. - Specialagentjim [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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 21-01-2002, 04:41
BinaryBob0001 BinaryBob0001 is offline
Registered User
#0973
 
Join Date: Jan 2002
Location: Atascadero
Posts: 5
BinaryBob0001 is an unknown quantity at this point
How do you control relays

I've been reading about all of the commands on the bs2sx and there seems to be now way to control the relays, is there any way to do this? Thanks.
  #2   Spotlight this post!  
Unread 21-01-2002, 06:46
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is offline
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,629
Joe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond reputeJoe Johnson has a reputation beyond repute
MOST Pbasic commands are of no use to the FIRST community because you have very little direct access to the outside world.

To turn on or off a relay, all you have to do is change the appropriate bit of the byte RelayA or RelayB prior to outputting the data to the Master CPU at the bottom of your control loop.

It is not that hard once you look closely at the Default Code.

Innovation First has aliased all the bits to things that make sense so for example you simply put
relay1_fwd = 1
to turn relay 1 on in the forward direction
relay1_fwd = 0
turns it back off.

Try it and get back to us with questions if you run into problems

Good luck,


Joe J.
  #3   Spotlight this post!  
Unread 21-01-2002, 08:42
Jordan A.'s Avatar
Jordan A. Jordan A. is offline
Registered User
#0781 (Kinetic Knights)
 
Join Date: Dec 2001
Location: Kincardine, Ontario
Posts: 145
Jordan A. is an unknown quantity at this point
Send a message via ICQ to Jordan A.
Joe, I am still thrown off by your new pic
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
Need a FIRST Robotics control system kershawrobotics General Forum 3 07-07-2003 09:49
UNFAIR ADVANTAGE for CDI and new control system archiver 2000 6 23-06-2002 22:13
Ok, how much is the control system worth? archiver 2001 6 23-06-2002 22:05
more control options smokescreen Technical Discussion 17 05-03-2002 15:41
goals: how much control? Pat Sarmiento Rules/Strategy 2 18-01-2002 19:10


All times are GMT -5. The time now is 01:22.

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