10 #include <hal/Types.h>
12 #include "frc/SolenoidBase.h"
25 enum Value { kOff, kForward, kReverse };
44 DoubleSolenoid(
int moduleNumber,
int forwardChannel,
int reverseChannel);
56 virtual void Set(Value value);
63 virtual Value
Get()
const;
94 HAL_SolenoidHandle m_forwardHandle = HAL_kInvalidHandle;
95 HAL_SolenoidHandle m_reverseHandle = HAL_kInvalidHandle;
bool IsRevSolenoidBlackListed() const
Check if the reverse solenoid is blacklisted.
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
SolenoidBase class is the common base class for the Solenoid and DoubleSolenoid classes.
Definition: SolenoidBase.h:19
bool IsFwdSolenoidBlackListed() const
Check if the forward solenoid is blacklisted.
virtual void Set(Value value)
Set the value of a solenoid.
DoubleSolenoid class for running 2 channels of high voltage Digital Output (PCM). ...
Definition: DoubleSolenoid.h:23
virtual Value Get() const
Read the current value of the solenoid.
Definition: SendableBuilder.h:23
DoubleSolenoid(int forwardChannel, int reverseChannel)
Constructor.