14 #include <wpi/mutex.h>
16 #include "frc/DigitalSource.h"
17 #include "frc/ErrorBase.h"
18 #include "frc/smartdashboard/Sendable.h"
19 #include "frc/smartdashboard/SendableHelper.h"
130 int m_channelIndex = -1;
131 static wpi::mutex m_mutex;
132 static std::array<bool, 3> m_filterAllocated;
void Add(DigitalSource *input)
Assigns the DigitalSource to this glitch filter.
void SetPeriodCycles(int fpgaCycles)
Sets 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:104
int GetPeriodCycles()
Gets the number of cycles that the input must not change state for.
Class to enable glitch filtering on a set of digital inputs.
Definition: DigitalGlitchFilter.h:33
Interface for Sendable objects.
Definition: Sendable.h:17
void SetPeriodNanoSeconds(uint64_t nanoseconds)
Sets the number of nanoseconds that the input must not change state for.
Class to read quad encoders.
Definition: Encoder.h:44
uint64_t GetPeriodNanoSeconds()
Gets the number of nanoseconds that the input must not change state for.
A class that enforces constraints on the differential drive kinematics.
Definition: SPIAccelerometerSim.h:16
Class for counting the number of ticks on a digital input channel.
Definition: Counter.h:37
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
DigitalSource Interface.
Definition: DigitalSource.h:25
A helper class for use with objects that add themselves to SendableRegistry.
Definition: SendableHelper.h:28
Definition: SendableBuilder.h:23