robotpy_toolkit_7407.pneumatics package

Subpackages

Submodules

robotpy_toolkit_7407.pneumatics.compressor module

class robotpy_toolkit_7407.pneumatics.compressor.Compressor(module, ctre_hub=False)

Bases: object

Wrapper class for a wpilib compressor.

enable_analog(minimum_psi: float, maximum_psi: float)

Enable the compressor.

Args:

minimum_psi (float): The minimum pressure in PSI to enable the compressor maximum_psi (float): The maximum pressure in PSI to disable the compressor

get_compressor_enabled() bool

Get whether the compressor is enabled.

get_current() float

Get the current draw of the compressor.

start()

Start the compressor.

stop()

Stop the compressor.

Module contents