45 std::shared_ptr<DigitalSource> directionSource);
80 std::shared_ptr<DigitalSource> m_countSource;
81 std::shared_ptr<DigitalSource> m_directionSource;
DigitalSource Interface.
Definition DigitalSource.h:22
Counter using external direction.
Definition ExternalDirectionCounter.h:27
int GetCount() const
Gets the current count.
~ExternalDirectionCounter() override=default
void SetEdgeConfiguration(EdgeConfiguration configuration)
Sets the edge configuration for counting.
void SetReverseDirection(bool reverseDirection)
Sets to reverse the counter direction.
ExternalDirectionCounter & operator=(ExternalDirectionCounter &&)=default
ExternalDirectionCounter(ExternalDirectionCounter &&)=default
ExternalDirectionCounter(std::shared_ptr< DigitalSource > countSource, std::shared_ptr< DigitalSource > directionSource)
Constructs a new ExternalDirectionCounter.
ExternalDirectionCounter(DigitalSource &countSource, DigitalSource &directionSource)
Constructs a new ExternalDirectionCounter.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
void Reset()
Resets the current count.
A move-only C++ wrapper around a HAL handle.
Definition Types.h:96
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
EdgeConfiguration
Edge configuration.
Definition EdgeConfiguration.h:11