|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
||||||
|
||||||
|
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
|
|||||
|
|||||
|
Joe, I am still thrown off by your new pic
![]() |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |