View Single Post
  #1   Spotlight this post!  
Unread 16-01-2014, 15:35
captianjroot captianjroot is offline
Registered User
FRC #4500
Team Role: Mentor
 
Join Date: Jan 2013
Rookie Year: 2013
Location: St. Louis, MO
Posts: 3
captianjroot is an unknown quantity at this point
Re: Pnuematics Programming Issues

Hi, my team is encountering similar problems. We're also using Java, but our code is a little different.

Code:
//this is all within our main robot class
    
    Compressor compress;
    

    public void robotInit(){

        compress=new Compressor(1,1);

    }

    public void operatorControl() {
        while(isOperatorControl()&&isEnabled()){
            

            if(!compress.enabled())
            {
                compress.start();
            }

            
        }
    }

Last edited by captianjroot : 16-01-2014 at 15:37.