Class Pneumatics

  • All Implemented Interfaces:
    edu.wpi.first.util.sendable.Sendable, edu.wpi.first.wpilibj.PneumaticsBase, java.lang.AutoCloseable

    public class Pneumatics
    extends edu.wpi.first.wpilibj.PneumaticsControlModule
    implements edu.wpi.first.util.sendable.Sendable
    • Constructor Summary

      Constructors 
      Constructor Description
      Pneumatics()  
      Pneumatics​(int module)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clearStickyFaults()  
      void initSendable​(edu.wpi.first.util.sendable.SendableBuilder builder)  
      Pneumatics.Compressor2 makeCompressor2()  
      void pistonIn​(int index)  
      void pistonOff​(int index)  
      void pistonOut​(int index)  
      edu.wpi.first.wpilibj.DoubleSolenoid.Value togglePiston​(int index)  
      • Methods inherited from class edu.wpi.first.wpilibj.PneumaticsControlModule

        checkAndReserveSolenoids, checkSolenoidChannel, clearAllStickyFaults, close, disableCompressor, enableCompressorAnalog, enableCompressorDigital, enableCompressorHybrid, fireOneShot, getAnalogVoltage, getCompressor, getCompressorConfigType, getCompressorCurrent, getCompressorCurrentTooHighFault, getCompressorCurrentTooHighStickyFault, getCompressorNotConnectedFault, getCompressorNotConnectedStickyFault, getCompressorShortedFault, getCompressorShortedStickyFault, getModuleNumber, getPressure, getPressureSwitch, getSolenoidDisabledList, getSolenoids, getSolenoidVoltageFault, getSolenoidVoltageStickyFault, makeCompressor, makeDoubleSolenoid, makeSolenoid, reserveCompressor, setOneShotDuration, setSolenoids, unreserveCompressor, unreserveSolenoids
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • pistons

        public edu.wpi.first.wpilibj.DoubleSolenoid[] pistons
      • pistonValues

        public boolean[] pistonValues
        true for out, false for in
      • moduleIndex

        private int moduleIndex
      • climber

        public int climber
      • intake

        public int intake
    • Constructor Detail

      • Pneumatics

        public Pneumatics()
      • Pneumatics

        public Pneumatics​(int module)
    • Method Detail

      • pistonOut

        public void pistonOut​(int index)
      • pistonIn

        public void pistonIn​(int index)
      • pistonOff

        public void pistonOff​(int index)
      • togglePiston

        public edu.wpi.first.wpilibj.DoubleSolenoid.Value togglePiston​(int index)
      • clearStickyFaults

        public void clearStickyFaults()
      • initSendable

        public void initSendable​(edu.wpi.first.util.sendable.SendableBuilder builder)
        Specified by:
        initSendable in interface edu.wpi.first.util.sendable.Sendable