View Single Post
  #2   Spotlight this post!  
Unread 21-01-2002, 06:46
Joe Johnson's Avatar Unsung FIRST Hero
Joe Johnson Joe Johnson is online now
Engineer at Medrobotics
AKA: Dr. Joe
FRC #0088 (TJ2)
Team Role: Engineer
 
Join Date: May 2001
Rookie Year: 1996
Location: Raynham, MA
Posts: 2,633
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.