View Single Post
  #1   Spotlight this post!  
Unread 12-02-2014, 23:37
DSSRobotics DSSRobotics is offline
Registered User
FRC #5031
 
Join Date: Jan 2014
Location: Canada
Posts: 5
DSSRobotics is an unknown quantity at this point
[Help] Compressor Problem (Java)

So we want our compressor to start immediately once the robot has turned on and this is a simple java code we're experimenting with.

We've imported this class : Compressor compressor = new Compressor(1, 1);

And this is our current code:

public void robotInit() {
compressor.start();

}

public void disabled() {
compressor.stop();
}

Once I deploy this code I get an error. ([cRIO] Robot Drive... Output not updated often enough.)

In addition, I've confirmed that the compressor code is causing this problem because I commented out the compressor code and the cRIO accepted the code, but when I tried to deploy the code with the compressor I get that error. I'm not sure if our team's compressor code is correct or not so please help us out.
Reply With Quote