PneumaticsControlModule
- class wpilib.PneumaticsControlModule(*args, **kwargs)
Bases:
PneumaticsBaseModule class for controlling a Cross The Road Electronics Pneumatics Control Module.
Overloaded function.
__init__(self: wpilib._wpilib.PneumaticsControlModule, bus_id: typing.SupportsInt | typing.SupportsIndex) -> None
Constructs a PneumaticsControlModule with the default ID (0).
- Parameters:
bus_id – The bus ID.
__init__(self: wpilib._wpilib.PneumaticsControlModule, bus_id: typing.SupportsInt | typing.SupportsIndex, module: typing.SupportsInt | typing.SupportsIndex) -> None
Constructs a PneumaticsControlModule.
- Parameters:
bus_id – The bus ID.
module – module number to construct
- check_and_reserve_solenoids(mask: SupportsInt | SupportsIndex) int
- check_solenoid_channel(channel: SupportsInt | SupportsIndex) bool
- clear_all_sticky_faults() None
Clears all sticky faults on this device.
- disable_compressor() None
Disables the compressor. The compressor will not turn on until EnableCompressorDigital() is called.
- enable_compressor_analog(min_pressure: wpimath.units.pounds_per_square_inch, max_pressure: wpimath.units.pounds_per_square_inch) None
Enables the compressor in digital mode. Analog mode is unsupported by the CTRE PCM.
- Parameters:
min_pressure – Unsupported.
max_pressure – Unsupported. @see EnableCompressorDigital()
- enable_compressor_digital() None
- enable_compressor_hybrid(min_pressure: wpimath.units.pounds_per_square_inch, max_pressure: wpimath.units.pounds_per_square_inch) None
Enables the compressor in digital mode. Hybrid mode is unsupported by the CTRE PCM.
- Parameters:
min_pressure – Unsupported.
max_pressure – Unsupported. @see EnableCompressorDigital()
- fire_one_shot(index: SupportsInt | SupportsIndex) None
- get_analog_voltage(channel: SupportsInt | SupportsIndex) wpimath.units.volts
Unsupported by the CTRE PCM.
- Parameters:
channel – Unsupported.
- Returns:
0
- get_compressor() bool
- get_compressor_config_type() wpilib._wpilib.CompressorConfigType
- get_compressor_current() wpimath.units.amperes
- get_compressor_current_too_high_fault() bool
Return whether the compressor current is currently too high.
- Returns:
True if the compressor current is too high, otherwise false. @see GetCompressorCurrentTooHighStickyFault()
- get_compressor_current_too_high_sticky_fault() 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()
- get_compressor_not_connected_fault() bool
Returns whether the compressor is currently disconnected.
- Returns:
True if compressor is currently disconnected, otherwise false. @see GetCompressorNotConnectedStickyFault()
- get_compressor_not_connected_sticky_fault() 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()
- get_compressor_shorted_fault() bool
Returns whether the compressor is currently shorted.
- Returns:
True if the compressor is currently shorted, otherwise false. @see GetCompressorShortedStickyFault()
- get_compressor_shorted_sticky_fault() 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()
- get_module_number() int
- get_pressure(channel: SupportsInt | SupportsIndex) wpimath.units.pounds_per_square_inch
Unsupported by the CTRE PCM.
- Parameters:
channel – Unsupported.
- Returns:
0
- get_pressure_switch() bool
- get_solenoid_disabled_list() int
- get_solenoid_voltage_fault() bool
Returns whether the solenoid is currently reporting a voltage fault.
- Returns:
True if solenoid is reporting a fault, otherwise false. @see GetSolenoidVoltageStickyFault()
- get_solenoid_voltage_sticky_fault() 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()
- get_solenoids() int
- make_compressor() wpilib._wpilib.Compressor
- make_double_solenoid(forward_channel: SupportsInt | SupportsIndex, reverse_channel: SupportsInt | SupportsIndex) wpilib._wpilib.DoubleSolenoid
- make_solenoid(channel: SupportsInt | SupportsIndex) wpilib._wpilib.Solenoid
- report_usage(device: str, data: str) None
- reserve_compressor() bool
- set_one_shot_duration(index: SupportsInt | SupportsIndex, duration: wpimath.units.seconds) None
- set_solenoids(mask: SupportsInt | SupportsIndex, values: SupportsInt | SupportsIndex) None
- unreserve_compressor() None
- unreserve_solenoids(mask: SupportsInt | SupportsIndex) None