10 #include <hal/Types.h>
12 #include "frc/SolenoidBase.h"
13 #include "frc/smartdashboard/Sendable.h"
14 #include "frc/smartdashboard/SendableHelper.h"
18 class SendableBuilder;
43 Solenoid(
int moduleNumber,
int channel);
55 virtual void Set(
bool on);
62 virtual bool Get()
const;
99 hal::Handle<HAL_SolenoidHandle> m_solenoidHandle;
virtual void Set(bool on)
Set the value of a solenoid.
bool IsBlackListed() const
Check if solenoid is blacklisted.
virtual bool Get() const
Read the current value of the solenoid.
void StartPulse()
Trigger the PCM to generate a pulse of the duration set in setPulseDuration.
Solenoid class for running high voltage Digital Output (PCM).
Definition: Solenoid.h:26
SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.
Definition: SolenoidBase.h:18
Interface for Sendable objects.
Definition: Sendable.h:17
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
Solenoid(int channel)
Constructor using the default PCM ID (0).
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23
void SetPulseDuration(double durationSeconds)
Set the pulse duration in the PCM.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.