125 int m_channelIndex = -1;
127 static std::array<bool, 3> m_filterAllocated;
Class for counting the number of ticks on a digital input channel.
Definition: Counter.h:35
Class to enable glitch filtering on a set of digital inputs.
Definition: DigitalGlitchFilter.h:30
void SetPeriodNanoSeconds(uint64_t nanoseconds)
Sets the number of nanoseconds that the input must not change state for.
void InitSendable(wpi::SendableBuilder &builder) override
Initializes this Sendable object.
void Remove(Encoder *input)
Removes an encoder from this filter.
void Remove(DigitalSource *input)
Removes a digital input from this filter.
void SetPeriodCycles(int fpgaCycles)
Sets the number of cycles that the input must not change state for.
void Remove(Counter *input)
Removes a counter from this filter.
void Add(Counter *input)
Assigns the Counter to this glitch filter.
int GetPeriodCycles()
Gets the number of cycles that the input must not change state for.
DigitalGlitchFilter(DigitalGlitchFilter &&)=default
uint64_t GetPeriodNanoSeconds()
Gets the number of nanoseconds that the input must not change state for.
DigitalGlitchFilter & operator=(DigitalGlitchFilter &&)=default
~DigitalGlitchFilter() override
void Add(DigitalSource *input)
Assigns the DigitalSource to this glitch filter.
void Add(Encoder *input)
Assigns the Encoder to this glitch filter.
DigitalSource Interface.
Definition: DigitalSource.h:22
Class to read quad encoders.
Definition: Encoder.h:40
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
Definition: AprilTagPoseEstimator.h:15
::std::mutex mutex
Definition: mutex.h:17