40 int forwardChannel,
int reverseChannel);
120 std::shared_ptr<PneumaticsBase> m_module;
121 int m_forwardChannel;
122 int m_reverseChannel;
DoubleSolenoid class for running 2 channels of high voltage Digital Output on a pneumatics module.
Definition: DoubleSolenoid.h:26
bool IsFwdSolenoidDisabled() const
Check if the forward solenoid is Disabled.
DoubleSolenoid(PneumaticsModuleType moduleType, int forwardChannel, int reverseChannel)
Constructs a double solenoid for a default module of a specific module type.
bool IsRevSolenoidDisabled() const
Check if the reverse solenoid is Disabled.
DoubleSolenoid(DoubleSolenoid &&)=default
void Toggle()
Toggle the value of the solenoid.
virtual Value Get() const
Read the current value of the solenoid.
int GetFwdChannel() const
Get the forward channel.
DoubleSolenoid(int module, PneumaticsModuleType moduleType, int forwardChannel, int reverseChannel)
Constructs a double solenoid for a specified module of a specific module type.
~DoubleSolenoid() override
Value
Definition: DoubleSolenoid.h:28
@ kOff
Definition: DoubleSolenoid.h:28
@ kReverse
Definition: DoubleSolenoid.h:28
@ kForward
Definition: DoubleSolenoid.h:28
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
virtual void Set(Value value)
Set the value of a solenoid.
int GetRevChannel() const
Get the reverse channel.
DoubleSolenoid & operator=(DoubleSolenoid &&)=default
Definition: SendableBuilder.h:18
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
PneumaticsModuleType
Definition: PneumaticsModuleType.h:8