PneumaticsControlModule
- class wpilib.PneumaticsControlModule(*args, **kwargs)
Bases:
PneumaticsBase
Module class for controlling a Cross The Road Electronics Pneumatics Control Module.
Overloaded function.
__init__(self: wpilib._wpilib.PneumaticsControlModule) -> None
Constructs a PneumaticsControlModule with the default ID (0).
__init__(self: wpilib._wpilib.PneumaticsControlModule, module: int) -> None
Constructs a PneumaticsControlModule.
- Parameters:
module – module number to construct
- checkAndReserveSolenoids(mask: int) int
- checkSolenoidChannel(channel: int) bool
- clearAllStickyFaults() None
Clears all sticky faults on this device.
- disableCompressor() None
Disables the compressor. The compressor will not turn on until EnableCompressorDigital() is called.
- enableCompressorAnalog(minPressure: wpimath.units.pounds_per_square_inch, maxPressure: wpimath.units.pounds_per_square_inch) None
Enables the compressor in digital mode. Analog mode is unsupported by the CTRE PCM.
- Parameters:
minPressure – Unsupported.
maxPressure – Unsupported. @see EnableCompressorDigital()
- enableCompressorDigital() None
- enableCompressorHybrid(minPressure: wpimath.units.pounds_per_square_inch, maxPressure: wpimath.units.pounds_per_square_inch) None
Enables the compressor in digital mode. Hybrid mode is unsupported by the CTRE PCM.
- Parameters:
minPressure – Unsupported.
maxPressure – Unsupported. @see EnableCompressorDigital()
- fireOneShot(index: int) None
- getAnalogVoltage(channel: int) wpimath.units.volts
Unsupported by the CTRE PCM.
- Parameters:
channel – Unsupported.
- Returns:
0
- getCompressor() bool
- getCompressorConfigType() wpilib._wpilib.CompressorConfigType
- getCompressorCurrent() wpimath.units.amperes
- getCompressorCurrentTooHighFault() bool
Return whether the compressor current is currently too high.
- Returns:
True if the compressor current is too high, otherwise false. @see GetCompressorCurrentTooHighStickyFault()
- getCompressorCurrentTooHighStickyFault() bool
Returns whether the compressor current has been too high since sticky faults were last cleared. This fault is persistent and can be cleared by ClearAllStickyFaults()
- Returns:
True if the compressor current has been too high since sticky faults were last cleared. @see GetCompressorCurrentTooHighFault()
- getCompressorNotConnectedFault() bool
Returns whether the compressor is currently disconnected.
- Returns:
True if compressor is currently disconnected, otherwise false. @see GetCompressorNotConnectedStickyFault()
- getCompressorNotConnectedStickyFault() bool
Returns whether the compressor has been disconnected since sticky faults were last cleared. This fault is persistent and can be cleared by ClearAllStickyFaults()
- Returns:
True if the compressor has been disconnected since sticky faults were last cleared, otherwise false. @see GetCompressorNotConnectedFault()
- getCompressorShortedFault() bool
Returns whether the compressor is currently shorted.
- Returns:
True if the compressor is currently shorted, otherwise false. @see GetCompressorShortedStickyFault()
- getCompressorShortedStickyFault() bool
Returns whether the compressor has been shorted since sticky faults were last cleared. This fault is persistent and can be cleared by ClearAllStickyFaults()
- Returns:
True if the compressor has been shorted since sticky faults were last cleared, otherwise false. @see GetCompressorShortedFault()
- getModuleNumber() int
- getPressure(channel: int) wpimath.units.pounds_per_square_inch
Unsupported by the CTRE PCM.
- Parameters:
channel – Unsupported.
- Returns:
0
- getPressureSwitch() bool
- getSolenoidDisabledList() int
- getSolenoidVoltageFault() bool
Returns whether the solenoid is currently reporting a voltage fault.
- Returns:
True if solenoid is reporting a fault, otherwise false. @see GetSolenoidVoltageStickyFault()
- getSolenoidVoltageStickyFault() bool
Returns whether the solenoid has reported a voltage fault since sticky faults were last cleared. This fault is persistent and can be cleared by ClearAllStickyFaults()
- Returns:
True if solenoid is reporting a fault, otherwise false. @see GetSolenoidVoltageFault()
- getSolenoids() int
- makeCompressor() wpilib._wpilib.Compressor
- makeDoubleSolenoid(forwardChannel: int, reverseChannel: int) wpilib._wpilib.DoubleSolenoid
- makeSolenoid(channel: int) wpilib._wpilib.Solenoid
- reserveCompressor() bool
- setOneShotDuration(index: int, duration: wpimath.units.seconds) None
- setSolenoids(mask: int, values: int) None
- unreserveCompressor() None
- unreserveSolenoids(mask: int) None