27 static constexpr
double kGearToothThreshold = 55e-6;
29 explicit GearTooth(
int channel,
bool directionSensitive =
false);
31 explicit GearTooth(std::shared_ptr<DigitalSource> source,
32 bool directionSensitive =
false);
GearTooth(int channel, bool directionSensitive=false)
Construct a GearTooth sensor given a channel.
Definition: GearTooth.cpp:33
Definition: RobotController.cpp:14
void InitSendable(SendableBuilder &builder) override
Initializes this Sendable object.
Definition: GearTooth.cpp:71
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:24
Definition: SendableBuilder.h:23
void EnableDirectionSensing(bool directionSensitive)
Common code called by the constructors.
Definition: GearTooth.cpp:19