PneumaticsControlModule

class wpilib.PneumaticsControlModule(*args, **kwargs)

Bases: PneumaticsBase

Module class for controlling a Cross The Road Electronics Pneumatics Control Module.

Overloaded function.

  1. __init__(self: wpilib._wpilib.PneumaticsControlModule, busId: typing.SupportsInt | typing.SupportsIndex) -> None

Constructs a PneumaticsControlModule with the default ID (0).

Parameters:

busId – The bus ID.

  1. __init__(self: wpilib._wpilib.PneumaticsControlModule, busId: typing.SupportsInt | typing.SupportsIndex, module: typing.SupportsInt | typing.SupportsIndex) -> None

Constructs a PneumaticsControlModule.

Parameters:
  • busId – The bus ID.

  • module – module number to construct

checkAndReserveSolenoids(mask: SupportsInt | SupportsIndex) int
checkSolenoidChannel(channel: SupportsInt | SupportsIndex) 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: SupportsInt | SupportsIndex) None
getAnalogVoltage(channel: SupportsInt | SupportsIndex) 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: SupportsInt | SupportsIndex) 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: SupportsInt | SupportsIndex, reverseChannel: SupportsInt | SupportsIndex) wpilib._wpilib.DoubleSolenoid
makeSolenoid(channel: SupportsInt | SupportsIndex) wpilib._wpilib.Solenoid
reportUsage(device: str, data: str) None
reserveCompressor() bool
setOneShotDuration(index: SupportsInt | SupportsIndex, duration: wpimath.units.seconds) None
setSolenoids(mask: SupportsInt | SupportsIndex, values: SupportsInt | SupportsIndex) None
unreserveCompressor() None
unreserveSolenoids(mask: SupportsInt | SupportsIndex) None