14 #include <wpi/mutex.h>
16 #include "frc/DigitalSource.h"
17 #include "frc/ErrorBase.h"
18 #include "frc/smartdashboard/SendableBase.h"
124 int m_channelIndex = -1;
125 static wpi::mutex m_mutex;
126 static std::array<bool, 3> m_filterAllocated;
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
void SetPeriodCycles(int fpgaCycles)
Sets the number of cycles that the input must not change state for.
Class to read quad encoders.
Definition: Encoder.h:40
Class to enable glitch filtering on a set of digital inputs.
Definition: DigitalGlitchFilter.h:32
Class for counting the number of ticks on a digital input channel.
Definition: Counter.h:34
void Add(DigitalSource *input)
Assigns the DigitalSource to this glitch filter.
void SetPeriodNanoSeconds(uint64_t nanoseconds)
Sets the number of nanoseconds that the input must not change state for.
DigitalSource Interface.
Definition: DigitalSource.h:25
int GetPeriodCycles()
Gets the number of cycles that the input must not change state for.
void Remove(DigitalSource *input)
Removes a digital input from this filter.
Base class for most objects.
Definition: ErrorBase.h:74
Definition: SendableBase.h:19
Definition: SendableBuilder.h:23
uint64_t GetPeriodNanoSeconds()
Gets the number of nanoseconds that the input must not change state for.
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.