27 explicit GearTooth(
int channel,
bool directionSensitive =
false);
29 explicit GearTooth(std::shared_ptr<DigitalSource> source,
30 bool directionSensitive =
false);
GearTooth(int channel, bool directionSensitive=false)
Construct a GearTooth sensor given a channel.
Definition: GearTooth.cpp:33
Class for counting the number of ticks on a digital input channel.
Definition: Counter.h:33
DigitalSource Interface.
Definition: DigitalSource.h:25
Alias for counter class.
Definition: GearTooth.h:23
static constexpr double kGearToothThreshold
55 uSec for threshold
Definition: GearTooth.h:26
std::string GetSmartDashboardType() const override
Definition: GearTooth.cpp:69
void EnableDirectionSensing(bool directionSensitive)
Common code called by the constructors.
Definition: GearTooth.cpp:19