Package frc.robot.hardware
Class Pneumatics
- java.lang.Object
-
- edu.wpi.first.wpilibj.PneumaticsControlModule
-
- frc.robot.hardware.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classPneumatics.Compressor2
-
Field Summary
Fields Modifier and Type Field Description intclimberPneumatics.Compressor2compressorintintakeprivate intmoduleIndexedu.wpi.first.wpilibj.DoubleSolenoid[]pistonsboolean[]pistonValuestrue for out, false for in
-
Constructor Summary
Constructors Constructor Description Pneumatics()Pneumatics(int module)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearStickyFaults()voidinitSendable(edu.wpi.first.util.sendable.SendableBuilder builder)Pneumatics.Compressor2makeCompressor2()voidpistonIn(int index)voidpistonOff(int index)voidpistonOut(int index)edu.wpi.first.wpilibj.DoubleSolenoid.ValuetogglePiston(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
-
-
-
-
Field Detail
-
compressor
public Pneumatics.Compressor2 compressor
-
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
-
-
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()
-
makeCompressor2
public Pneumatics.Compressor2 makeCompressor2()
-
initSendable
public void initSendable(edu.wpi.first.util.sendable.SendableBuilder builder)
- Specified by:
initSendablein interfaceedu.wpi.first.util.sendable.Sendable
-
-