50                 int forwardChannel, 
int reverseChannel);
 
  130  std::shared_ptr<PneumaticsBase> m_module;
 
  131  int m_forwardChannel;  
 
  132  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.
 
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.
 
void Set(Value value)
Set the value of a 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
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
 
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
 
PneumaticsModuleType
Pneumatics module type.
Definition PneumaticsModuleType.h:11