|
virtual | ~PneumaticsBase ()=default |
|
virtual bool | GetCompressor () const =0 |
| Returns whether the compressor is active or not. More...
|
|
virtual bool | GetPressureSwitch () const =0 |
| Returns the state of the pressure switch. More...
|
|
virtual units::ampere_t | GetCompressorCurrent () const =0 |
| Returns the current drawn by the compressor. More...
|
|
virtual void | DisableCompressor ()=0 |
| Disables the compressor. More...
|
|
virtual void | EnableCompressorDigital ()=0 |
| Enables the compressor in digital mode using the digital pressure switch. More...
|
|
virtual void | EnableCompressorAnalog (units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure)=0 |
| If supported by the device, enables the compressor in analog mode. More...
|
|
virtual void | EnableCompressorHybrid (units::pounds_per_square_inch_t minPressure, units::pounds_per_square_inch_t maxPressure)=0 |
| If supported by the device, enables the compressor in hybrid mode. More...
|
|
virtual CompressorConfigType | GetCompressorConfigType () const =0 |
| Returns the active compressor configuration. More...
|
|
virtual void | SetSolenoids (int mask, int values)=0 |
| Sets solenoids on a pneumatics module. More...
|
|
virtual int | GetSolenoids () const =0 |
| Gets a bitmask of solenoid values. More...
|
|
virtual int | GetModuleNumber () const =0 |
| Get module number for this module. More...
|
|
virtual int | GetSolenoidDisabledList () const =0 |
| Get a bitmask of disabled solenoids. More...
|
|
virtual void | FireOneShot (int index)=0 |
| Fire a single solenoid shot. More...
|
|
virtual void | SetOneShotDuration (int index, units::second_t duration)=0 |
| Set the duration for a single solenoid shot. More...
|
|
virtual bool | CheckSolenoidChannel (int channel) const =0 |
| Check if a solenoid channel is valid. More...
|
|
virtual int | CheckAndReserveSolenoids (int mask)=0 |
| Check to see if the masked solenoids can be reserved, and if not reserve them. More...
|
|
virtual void | UnreserveSolenoids (int mask)=0 |
| Unreserve the masked solenoids. More...
|
|
virtual bool | ReserveCompressor ()=0 |
|
virtual void | UnreserveCompressor ()=0 |
|
virtual units::volt_t | GetAnalogVoltage (int channel) const =0 |
| If supported by the device, returns the raw voltage of the specified analog input channel. More...
|
|
virtual units::pounds_per_square_inch_t | GetPressure (int channel) const =0 |
| If supported by the device, returns the pressure read by an analog pressure sensor on the specified analog input channel. More...
|
|
virtual Solenoid | MakeSolenoid (int channel)=0 |
|
virtual DoubleSolenoid | MakeDoubleSolenoid (int forwardChannel, int reverseChannel)=0 |
|
virtual Compressor | MakeCompressor ()=0 |
|
virtual void frc::PneumaticsBase::EnableCompressorAnalog |
( |
units::pounds_per_square_inch_t |
minPressure, |
|
|
units::pounds_per_square_inch_t |
maxPressure |
|
) |
| |
|
pure virtual |
If supported by the device, enables the compressor in analog mode.
This mode uses an analog pressure sensor connected to analog channel 0 to cycle the compressor. The compressor will turn on when the pressure drops below minPressure
and will turn off when the pressure reaches
maxPressure
. This mode is only supported by the REV PH with the REV Analog Pressure Sensor connected to analog channel 0.
On CTRE PCM, this will enable digital control.
- Parameters
-
minPressure | The minimum pressure. The compressor will turn on when the pressure drops below this value. |
maxPressure | The maximum pressure. The compressor will turn off when the pressure reaches this value. |
Implemented in frc::PneumaticHub, and frc::PneumaticsControlModule.
virtual void frc::PneumaticsBase::EnableCompressorHybrid |
( |
units::pounds_per_square_inch_t |
minPressure, |
|
|
units::pounds_per_square_inch_t |
maxPressure |
|
) |
| |
|
pure virtual |
If supported by the device, enables the compressor in hybrid mode.
This mode uses both a digital pressure switch and an analog pressure sensor connected to analog channel 0 to cycle the compressor. This mode is only supported by the REV PH with the REV Analog Pressure Sensor connected to analog channel 0.
The compressor will turn on when both:
- The digital pressure switch indicates the system is not full AND
- The analog pressure sensor indicates that the pressure in the system is below the specified minimum pressure.
The compressor will turn off when either:
- The digital pressure switch is disconnected or indicates that the system is full OR
- The pressure detected by the analog sensor is greater than the specified maximum pressure.
On CTRE PCM, this will enable digital control.
- Parameters
-
minPressure | The minimum pressure. The compressor will turn on when the pressure drops below this value and the pressure switch indicates that the system is not full. |
maxPressure | The maximum pressure. The compressor will turn off when the pressure reaches this value or the pressure switch is disconnected or indicates that the system is full. |
Implemented in frc::PneumaticHub, and frc::PneumaticsControlModule.