10 #include <hal/Types.h>
12 #include "frc/SolenoidBase.h"
37 Solenoid(
int moduleNumber,
int channel);
46 virtual void Set(
bool on);
53 virtual bool Get()
const;
90 HAL_SolenoidHandle m_solenoidHandle = HAL_kInvalidHandle;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.
Definition: SolenoidBase.h:19
void StartPulse()
Trigger the PCM to generate a pulse of the duration set in setPulseDuration.
virtual void Set(bool on)
Set the value of a solenoid.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Solenoid class for running high voltage Digital Output (PCM).
Definition: Solenoid.h:22
virtual bool Get() const
Read the current value of the solenoid.
void SetPulseDuration(double durationSeconds)
Set the pulse duration in the PCM.
Definition: SendableBuilder.h:23
bool IsBlackListed() const
Check if solenoid is blacklisted.
Solenoid(int channel)
Constructor using the default PCM ID (0).