mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-04 03:11:43 +00:00
@@ -34,10 +34,6 @@ Compressor::~Compressor() {
|
||||
}
|
||||
}
|
||||
|
||||
bool Compressor::Enabled() const {
|
||||
return IsEnabled();
|
||||
}
|
||||
|
||||
bool Compressor::IsEnabled() const {
|
||||
return m_module->GetCompressor();
|
||||
}
|
||||
|
||||
@@ -57,19 +57,6 @@ class Compressor : public wpi::Sendable,
|
||||
Compressor(Compressor&&) = default;
|
||||
Compressor& operator=(Compressor&&) = default;
|
||||
|
||||
/**
|
||||
* Check if compressor output is active.
|
||||
* To (re)enable the compressor use EnableDigital() or EnableAnalog(...).
|
||||
*
|
||||
* @return true if the compressor is on.
|
||||
* @deprecated To avoid confusion in thinking this (re)enables the compressor
|
||||
* use IsEnabled().
|
||||
*/
|
||||
[[deprecated(
|
||||
"To avoid confusion in thinking this (re)enables the compressor use "
|
||||
"IsEnabled()")]]
|
||||
bool Enabled() const;
|
||||
|
||||
/**
|
||||
* Returns whether the compressor is active or not.
|
||||
*
|
||||
|
||||
@@ -62,18 +62,6 @@ public class Compressor implements Sendable, AutoCloseable {
|
||||
m_module = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the status of the compressor. To (re)enable the compressor use enableDigital() or
|
||||
* enableAnalog(...).
|
||||
*
|
||||
* @return true if the compressor is on
|
||||
* @deprecated To avoid confusion in thinking this (re)enables the compressor use IsEnabled().
|
||||
*/
|
||||
@Deprecated(since = "2023", forRemoval = true)
|
||||
public boolean enabled() {
|
||||
return isEnabled();
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether the compressor is active or not.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user