Thread: HELP!!
View Single Post
  #2   Spotlight this post!  
Unread 25-03-2010, 06:39
Golto's Avatar
Golto Golto is offline
Registered User
AKA: Pat Plude
FRC #4572 (BArlow RobAutics)
Team Role: Mentor
 
Join Date: Oct 2006
Rookie Year: 2007
Location: Bethel, CT
Posts: 91
Golto is a glorious beacon of lightGolto is a glorious beacon of lightGolto is a glorious beacon of lightGolto is a glorious beacon of lightGolto is a glorious beacon of light
Re: HELP!!

Define the spike as:
Code:
Relay *[variable here]
Initialize it as:
Code:
[variable name used above] = new Relay([Relay port it's plugged into on the DSC])
To use it, place where needed in your code like this:
Code:
[variable name]->Set(Relay::kForward)
-OR-
[variable name]->Set(Relay::kReverse)
-OR-
[variable name]->Set(Relay::kOff)
__________________