42 std::shared_ptr<DigitalSource> downSource);
84 void InitUpDownCounter();
85 std::shared_ptr<DigitalSource> m_upSource;
86 std::shared_ptr<DigitalSource> m_downSource;
DigitalSource Interface.
Definition: DigitalSource.h:22
Up Down Counter.
Definition: UpDownCounter.h:25
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
UpDownCounter(DigitalSource &upSource, DigitalSource &downSource)
Constructs a new UpDown Counter.
UpDownCounter(UpDownCounter &&)=default
void SetReverseDirection(bool reverseDirection)
Sets to revert the counter direction.
UpDownCounter & operator=(UpDownCounter &&)=default
void Reset()
Resets the current count.
int GetCount() const
Gets the current count.
void SetUpEdgeConfiguration(EdgeConfiguration configuration)
Sets the configuration for the up source.
~UpDownCounter() override
UpDownCounter(std::shared_ptr< DigitalSource > upSource, std::shared_ptr< DigitalSource > downSource)
Constructs a new UpDown Counter.
void SetDownEdgeConfiguration(EdgeConfiguration configuration)
Sets the configuration for the down source.
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:19
Interface for Sendable objects.
Definition: Sendable.h:16
Definition: AprilTagPoseEstimator.h:15
EdgeConfiguration
Edge configuration.
Definition: EdgeConfiguration.h:11