View Single Post
  #13   Spotlight this post!  
Unread 07-08-2013, 14:18
rkoripalli's Avatar
rkoripalli rkoripalli is offline
Registered User
AKA: Rohan Koripalli
FRC #3735 (Klein Bots)
Team Role: Alumni
 
Join Date: Aug 2013
Rookie Year: 2013
Location: Klein
Posts: 19
rkoripalli is an unknown quantity at this point
Re: Proper way to connect a solenoid

In terms of code, I am using Java commandbase. I have "public static Relay cannon = new Relay(4);" in RobotMap. I also have a command setup to fire. In the initialize i'm doing "RobotMap.cannon.set(Relay.Value.kOn);" where cannon is the name of the Relay and RobotMap is the place where it is defined. I can verify that the command is running because I have a debug statement which is printing when I push the button to run it.