![]() |
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?
|
Re: Pnuematics Programming Issues
It would help if you can include what language you are using, and post the code you are using.
|
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(); } |
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 { |
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 |
Re: Pnuematics Programming Issues
Quote:
This will only start the compressor in teleop. |
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?
|
Re: Pnuematics Programming Issues
Quote:
|
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?
|
Re: Pnuematics Programming Issues
Quote:
http://www.chiefdelphi.com/forums/sh...44&postcount=7 |
| All times are GMT -5. The time now is 16:29. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi