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.
Definition: SendableBuilder.h:18
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:19
Interface for Sendable objects.
Definition: Sendable.h:16
::int32_t int32_t
Definition: Meta.h:57
Definition: AprilTagPoseEstimator.h:15
EdgeConfiguration
Definition: EdgeConfiguration.h:8