70 "To avoid confusion in thinking this (re)enables the compressor use "
147 units::pounds_per_square_inch_t maxPressure);
179 units::pounds_per_square_inch_t maxPressure);
Class for operating a compressor connected to a pneumatics module.
Definition: Compressor.h:36
bool GetPressureSwitchValue() const
Returns the state of the pressure switch.
void EnableDigital()
Enables the compressor in digital mode using the digital pressure switch.
Compressor(PneumaticsModuleType moduleType)
Constructs a compressor for a default module and specified type.
units::volt_t GetAnalogVoltage() const
If supported by the device, returns the analog input voltage (on channel 0).
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).
CompressorConfigType GetConfigType() const
Returns the active compressor configuration.
bool IsEnabled() const
Returns whether the compressor is active or not.
Compressor(int module, PneumaticsModuleType moduleType)
Constructs a compressor for a specified module and type.
Compressor & operator=(const Compressor &)=delete
units::ampere_t GetCurrent() const
Get the current drawn by the compressor.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
Compressor(Compressor &&)=default
void EnableHybrid(units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure)
If supported by the device, enables the compressor in hybrid mode.
void EnableAnalog(units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure)
If supported by the device, enables the compressor in analog mode.
bool Enabled() const
Check if compressor output is active.
Compressor(const Compressor &)=delete
Compressor & operator=(Compressor &&)=default
void Disable()
Disable the compressor.
Definition: PneumaticsBase.h:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Interface for Sendable objects.
Definition: Sendable.h:16
Definition: AprilTagFieldLayout.h:22
CompressorConfigType
Definition: CompressorConfigType.h:8
PneumaticsModuleType
Definition: PneumaticsModuleType.h:8
Definition: StdDeque.h:50
Unit Conversion Library namespace.
Definition: current.h:31
/file This file defines the SmallVector class.
Definition: AprilTagFieldLayout.h:18