|
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();
}
|