25 GearTooth(uint32_t channel,
bool directionSensitive =
false);
27 GearTooth(std::shared_ptr<DigitalSource> source,
28 bool directionSensitive =
false);
static constexpr double kGearToothThreshold
55 uSec for threshold
Definition: GearTooth.h:24
GearTooth(uint32_t channel, bool directionSensitive=false)
Construct a GearTooth sensor given a channel.
Definition: GearTooth.cpp:30
DigitalSource Interface.
Definition: DigitalSource.h:22
Class for counting the number of ticks on a digital input channel.
Definition: Counter.h:31
virtual std::string GetSmartDashboardType() const override
Definition: GearTooth.cpp:64
Alias for counter class.
Definition: GearTooth.h:21
void EnableDirectionSensing(bool directionSensitive)
Common code called by the constructors.
Definition: GearTooth.cpp:16