Go to Post A shaft that yielded is just as useless as a shaft that broke. - Chris is me [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

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 16-01-2014, 08:19
wildbot3844 wildbot3844 is offline
Registered User
AKA: James Helton
FRC #3844 (Kentucky Wildbots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: Kentucky
Posts: 11
wildbot3844 is an unknown quantity at this point
Pnuematics Programming Issues

Our team has never used pnuematics and we started this year, and we hooked up and wired up everything right according to the manuals, BUT when i try to add the compressor to the program and deploy the code my robot WILL NOT DO ANYTHING,.. does anyone know a solution to this?
  #2   Spotlight this post!  
Unread 16-01-2014, 09:03
sergioCorral842's Avatar
sergioCorral842 sergioCorral842 is offline
College Student
FRC #0842 (Falcon Robotics)
Team Role: Alumni
 
Join Date: Aug 2011
Rookie Year: 2012
Location: Phoenix, Arizona
Posts: 161
sergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to beholdsergioCorral842 is a splendid one to behold
Re: Pnuematics Programming Issues

It would help if you can include what language you are using, and post the code you are using.
__________________
Team 842 Falcon Robotics: 2011-2015 (President, Head Programmer, Drive Team)
Arizona Regional Winners: 2012-2014 (Thanks 610, 1212, 1726, 3944, 2486, 2403)
Curie Division Semi-Finalists: 2014 (Thanks 1311, 2013, 2928)
Las Vegas Semi-Finalists: 2015 (Thanks 3495, 4415)
Curie Division Quarter-Finalists: 2015 (Thanks 107, 228, 649)

2015 - 2016: Programming, Drive Team, and Strategy Mentor for Team 3187, The Titans

Studying Computer Science- Software Engineering at ASU (Class of 2019)
  #3   Spotlight this post!  
Unread 16-01-2014, 10:43
wildbot3844 wildbot3844 is offline
Registered User
AKA: James Helton
FRC #3844 (Kentucky Wildbots)
Team Role: Programmer
 
Join Date: Mar 2013
Rookie Year: 2012
Location: Kentucky
Posts: 11
wildbot3844 is an unknown quantity at this point
Re: Pnuematics Programming Issues

i'm using Java and when i deploy this code and my compressor will pulse on when i first enable it then it will just cut off.





public class RobotTemplate extends IterativeRobot {

Compressor compressor = new Compressor(1, 1);

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

}
  #4   Spotlight this post!  
Unread 16-01-2014, 12:04
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Pnuematics Programming Issues

Looks like that portion of your code is without errors.

When the compressor stops running, do you see any error messages printed out to the DriverStation or, if you are connected to your coding computer, in the console?

Are other functions of your robot still operating when the compressor stops running? for example, can you still drive the robot around?

Can you post the rest of the code from your project?
Note, use the [ code ] and [ / code ] tags (without spaces) around a block of code, and it will be easier for people to read.

example:
Code:
public class RobotTemplate extends IterativeRobot {

  Compressor compressor = new Compressor(1, 1);

  public void robotInit() {
    compressor.start();
  }
}
__________________
http://team2168.org
  #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.
  #6   Spotlight this post!  
Unread 16-01-2014, 16:44
feverittm's Avatar
feverittm feverittm is offline
Registered User
FRC #0997 (Spartans)
Team Role: Mentor
 
Join Date: Apr 2010
Rookie Year: 2010
Location: Corvallis, OR
Posts: 120
feverittm will become famous soon enoughfeverittm will become famous soon enough
Re: Pnuematics Programming Issues

Quote:
Originally Posted by captianjroot View Post
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();
            }

            
        }
    }
This is of course assuming that the compressor is connected to a spike that is connected to relay channel 1 (on the first digital sidecar if you have more than one) and that the pressure switch is connected to digital input #1 on the same digital sidecar. Also note that you don't really need the 'enabled' clause, you can continually 'start' the compressor. It doesn't hurt anything.
This will only start the compressor in teleop.
__________________
Floyd Moore
Mentor Electrical and Pneumatics
Team 997 - Spartan Robotics
Corvallis High School, Corvallis Oregon
  #7   Spotlight this post!  
Unread 30-01-2014, 12:19
puneeth.meruva puneeth.meruva is offline
MIT Class of 2019
AKA: Puneeth Meruva
FRC #1501 (Team T.H.R.U.S.T)
Team Role: Alumni
 
Join Date: Oct 2013
Rookie Year: 2012
Location: Fort Wayne, Indiana
Posts: 36
puneeth.meruva will become famous soon enoughpuneeth.meruva will become famous soon enough
Re: Pnuematics Programming Issues

We are having similar problems but the compressor will not turn on at all. We have the same code as the very first presented sample code. Could it be that something is wrong with our sidecar or relay?
  #8   Spotlight this post!  
Unread 30-01-2014, 13:35
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,559
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Pnuematics Programming Issues

Quote:
Originally Posted by puneeth.meruva View Post
We are having similar problems but the compressor will not turn on at all. We have the same code as the very first presented sample code. Could it be that something is wrong with our sidecar or relay?
There are several things related to the pressure switch that could keep the compressor from turning on that are not related to the Digital Sidecar or Relay. Is the pressure switch plugged into the port defined in your code? Is the pressure switch wired between signal and ground? Is the Digital Sidecar properly powered (are all 3 power LEDs brightly lit) if you remove the DB-37 cable?
  #9   Spotlight this post!  
Unread 30-01-2014, 13:46
puneeth.meruva puneeth.meruva is offline
MIT Class of 2019
AKA: Puneeth Meruva
FRC #1501 (Team T.H.R.U.S.T)
Team Role: Alumni
 
Join Date: Oct 2013
Rookie Year: 2012
Location: Fort Wayne, Indiana
Posts: 36
puneeth.meruva will become famous soon enoughpuneeth.meruva will become famous soon enough
Re: Pnuematics Programming Issues

The led's for power to the sidecar do turn on and I believe that the pressure switch ports are correctly assigned in the code. How exactly is the pressure switch supposed to be wired?
  #10   Spotlight this post!  
Unread 30-01-2014, 13:50
otherguy's Avatar
otherguy otherguy is offline
sparkE
AKA: James
FRC #2168 (The Aluminum Falcons)
Team Role: Mentor
 
Join Date: Feb 2010
Rookie Year: 2009
Location: CT
Posts: 429
otherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to beholdotherguy is a splendid one to behold
Re: Pnuematics Programming Issues

Quote:
How exactly is the pressure switch supposed to be wired?
See response to your question in the other thread:
http://www.chiefdelphi.com/forums/sh...44&postcount=7
__________________
http://team2168.org
Closed Thread


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 05:28.

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