Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Using DoubleSolenoids on a PCM without a compressor (http://www.chiefdelphi.com/forums/showthread.php?t=144175)

PiMeson123 19-02-2016 19:23

Using DoubleSolenoids on a PCM without a compressor
 
Hello,
Our team is trying to control a double solenoid through the CAN bus that is connected to a PCM without a compressor. The double solenoid controls the direction of airflow for gear shifting in our drive train, and will be connected to reservoirs of air that we charge before a match. We are a command-based Java team. This is what our GearShift subsystem looks like:
Code:

public class GearShiftSubsystem extends Subsystem {
        private DoubleSolenoid shifter;
        private Compressor compressor;
        public GearShiftSubsystem(){
                shifter = new DoubleSolenoid(RobotMap.SOLENOID_PORTS[0], RobotMap.SOLENOID_PORTS[1]); // (0, 2)
                compressor = new Compressor(50);
                compressor.setClosedLoopControl(true);
        }
       
        public void shiftUp(){
                shifter.set(Value.kForward);
        }
       
        public void shiftDown(){
                shifter.set(Value.kReverse);
        }
       
        public Value shiftedState(){
                return shifter.get();
        }
}

This is not working for us. We cannot hear or see the double solenoid moving valves although we can confirm that the PCM is receiving signalling from the RoboRIO. We are concerned about instantiating a Compressor object, when there is not in fact a literal compressor, although we need a way to pass in the PCM ID. If anyone could give us a hint or show us a resources regarding a fix to this, it would be greatly appreciated. It's probably a very simple fix, but unfortunately it has eluded us for the moment. Thanks.

Mark McLeod 19-02-2016 19:32

Re: Using DoubleSolenoids on a PCM without a compressor
 
Most of the solenoids we use in FRC are piloted requiring a minimum pressure (20-30 psi) at the input port to actually shift.
They don't work without air pressure.

rich2202 19-02-2016 20:00

Re: Using DoubleSolenoids on a PCM without a compressor
 
Also make sure the voltage jumper on the pcm matches your solenoids


All times are GMT -5. The time now is 00:43.

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