View Single Post
  #3   Spotlight this post!  
Unread 15-01-2014, 18:46
sukhjinder564's Avatar
sukhjinder564 sukhjinder564 is offline
Registered User
FRC #0564
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2011
Location: New York
Posts: 11
sukhjinder564 is an unknown quantity at this point
Re: Compressor Not Starting

I am creating a constructor for my class in Java, and initializing the compressor in there. The comp.start() is called within robotInit(). We tested with an enabled robot.

Ex:

public class 564code extends IterativeRobot{


Compressor comp;

public 564code(){

comp= new Compressor(pressureSwitch, Relay);


}



public void robotInit(){

comp.start();

}