Go to Post I tried, but our freshmen lost enthusiasm about filing the blocks of aluminum I gave them into Andymark Performance Wheels after only a few hours! - Greg Woelki [more]
Home
Go Back   Chief Delphi > Technical > Pneumatics
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   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.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:35.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi