115 std::shared_ptr<PneumaticsBase> m_module;
Solenoid class for running high voltage Digital Output on a pneumatics module.
Definition Solenoid.h:26
void Toggle()
Toggle the value of the solenoid.
void SetPulseDuration(units::second_t duration)
Set the pulse duration in the pneumatics module.
Solenoid(Solenoid &&)=default
bool Get() const
Read the current value of the solenoid.
Solenoid(PneumaticsModuleType moduleType, int channel)
Constructs a solenoid for a default module and specified type.
void StartPulse()
Trigger the pneumatics module to generate a pulse of the duration set in setPulseDuration.
bool IsDisabled() const
Check if solenoid is Disabled.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
int GetChannel() const
Get the channel this solenoid is connected to.
Solenoid(int module, PneumaticsModuleType moduleType, int channel)
Constructs a solenoid for a specified module and type.
Solenoid & operator=(Solenoid &&)=default
void Set(bool on)
Set the value of a solenoid.
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