WPILib 2012
WPILibRoboticsLibraryforFRC
GearTooth.h
00001 /*----------------------------------------------------------------------------*/
00002 /* Copyright (c) FIRST 2008. All Rights Reserved.                                                         */
00003 /* Open Source Software - may be modified and shared by FRC teams. The code   */
00004 /* must be accompanied by the FIRST BSD license file in $(WIND_BASE)/WPILib.  */
00005 /*----------------------------------------------------------------------------*/
00006 
00007 #ifndef GEAR_TOOTH_H_
00008 #define GEAR_TOOTH_H_
00009 
00010 #include "Counter.h"
00011 
00018 class GearTooth : public Counter
00019 {
00020 public:
00022         static const double kGearToothThreshold = 55e-6;
00023         GearTooth(UINT32 channel, bool directionSensitive = false);
00024         GearTooth(UINT8 moduleNumber, UINT32 channel, bool directionSensitive = false);
00025         GearTooth(DigitalSource *source, bool directionSensitive = false);
00026         GearTooth(DigitalSource &source, bool directionSensitive = false);
00027         virtual ~GearTooth();
00028         void EnableDirectionSensing(bool directionSensitive);
00029 };
00030 
00031 
00032 #endif
 All Classes Functions Variables