|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
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. |
|
#2
|
||||
|
||||
|
Re: Pnuematics Programming Issues
Quote:
This will only start the compressor in teleop. |
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
||||||
|
||||||
|
Re: Pnuematics Programming Issues
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?
|
|
#5
|
|||
|
|||
|
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?
|
|
#6
|
||||
|
||||
|
Re: Pnuematics Programming Issues
Quote:
http://www.chiefdelphi.com/forums/sh...44&postcount=7 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|