|
[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.
|