13 #include "frc/Counter.h"
27 static constexpr
double kGearToothThreshold = 55e-6;
37 explicit GearTooth(
int channel,
bool directionSensitive =
false);
61 explicit GearTooth(std::shared_ptr<DigitalSource> source,
62 bool directionSensitive =
false);
WPILib FRC namespace.
Definition: SPIAccelerometerSim.h:18
Class for counting the number of ticks on a digital input channel.
Definition: Counter.h:34
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
void EnableDirectionSensing(bool directionSensitive)
Common code called by the constructors.
DigitalSource Interface.
Definition: DigitalSource.h:25
Alias for counter class.
Definition: GearTooth.h:24
GearTooth(int channel, bool directionSensitive=false)
Construct a GearTooth sensor given a channel.
Definition: SendableBuilder.h:23