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;
31 enum Value { kOff, kForward, kReverse };
50 DoubleSolenoid(
int moduleNumber,
int forwardChannel,
int reverseChannel);
62 virtual void Set(Value value);
69 virtual Value
Get()
const;
100 hal::Handle<HAL_SolenoidHandle> m_forwardHandle;
101 hal::Handle<HAL_SolenoidHandle> m_reverseHandle;
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:27
bool IsFwdSolenoidBlackListed() const
Check if the forward solenoid is blacklisted.
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
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
DoubleSolenoid(int forwardChannel, int reverseChannel)
Constructor.
bool IsRevSolenoidBlackListed() const
Check if the reverse solenoid is blacklisted.
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23
virtual Value Get() const
Read the current value of the solenoid.