51 int forwardChannel,
int reverseChannel);
132 std::shared_ptr<PneumaticsBase> m_module;
133 int m_forwardChannel;
134 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.
Value Get() const
Read the current value of the solenoid.
bool IsRevSolenoidDisabled() const
Check if the reverse solenoid is Disabled.
DoubleSolenoid(DoubleSolenoid &&)=default
void Toggle()
Toggle the value of the solenoid.
DoubleSolenoid(int busId, int module, PneumaticsModuleType moduleType, int forwardChannel, int reverseChannel)
Constructs a double solenoid for a specified module of a specific module type.
void Set(Value value)
Set the value of a solenoid.
int GetFwdChannel() const
Get the forward channel.
~DoubleSolenoid() override
Value
Possible values for a DoubleSolenoid.
Definition DoubleSolenoid.h:31
@ kOff
Off position.
Definition DoubleSolenoid.h:33
@ kReverse
Reverse position.
Definition DoubleSolenoid.h:37
@ kForward
Forward position.
Definition DoubleSolenoid.h:35
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
int GetRevChannel() const
Get the reverse channel.
DoubleSolenoid & operator=(DoubleSolenoid &&)=default
DoubleSolenoid(int busId, PneumaticsModuleType moduleType, int forwardChannel, int reverseChannel)
Constructs a double solenoid for a default module of a specific module type.
Helper class for building Sendable dashboard representations.
Definition SendableBuilder.h:21
A helper class for use with objects that add themselves to SendableRegistry.
Definition SendableHelper.h:21
Interface for Sendable objects.
Definition Sendable.h:16
Definition SystemServer.h:9
PneumaticsModuleType
Pneumatics module type.
Definition PneumaticsModuleType.h:11