134 wpi::units::pounds_per_square_inch_t maxPressure);
166 wpi::units::pounds_per_square_inch_t maxPressure);
178 std::shared_ptr<PneumaticsBase> m_module;
bool IsEnabled() const
Returns whether the compressor is active or not.
Compressor & operator=(const Compressor &)=delete
Compressor(const Compressor &)=delete
void InitSendable(wpi::util::SendableBuilder &builder) override
Initializes this Sendable object.
wpi::units::ampere_t GetCurrent() const
Get the current drawn by the compressor.
Compressor(int busId, int module, PneumaticsModuleType moduleType)
Constructs a compressor for a specified module and type.
wpi::units::volt_t GetAnalogVoltage() const
If supported by the device, returns the analog input voltage (on channel 0).
void EnableHybrid(wpi::units::pounds_per_square_inch_t minPressure, wpi::units::pounds_per_square_inch_t maxPressure)
If supported by the device, enables the compressor in hybrid mode.
CompressorConfigType GetConfigType() const
Returns the active compressor configuration.
Compressor(int busId, PneumaticsModuleType moduleType)
Constructs a compressor for a default module and specified type.
void Disable()
Disable the compressor.
void EnableDigital()
Enables the compressor in digital mode using the digital pressure switch.
bool GetPressureSwitchValue() const
Returns the state of the pressure switch.
Compressor & operator=(Compressor &&)=default
wpi::units::pounds_per_square_inch_t GetPressure() const
If supported by the device, returns the pressure read by the analog pressure sensor (on channel 0).
void EnableAnalog(wpi::units::pounds_per_square_inch_t minPressure, wpi::units::pounds_per_square_inch_t maxPressure)
If supported by the device, enables the compressor in analog mode.
Compressor(Compressor &&)=default
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.hpp:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.hpp:21
Interface for Sendable objects.
Definition Sendable.hpp:16
Definition CvSource.hpp:15
PneumaticsModuleType
Pneumatics module type.
Definition PneumaticsModuleType.hpp:11
CompressorConfigType
Compressor config type.
Definition CompressorConfigType.hpp:11