Now you can download a copy of these docs so you can use them offline! Download now
CounterBase Class Referenceabstract

#include <CounterBase.h>

Inheritance diagram for CounterBase:

Public Types

enum  EncodingType { k1X, k2X, k4X }
 

Public Member Functions

virtual void Start ()=0
 
virtual int32_t Get ()=0
 
virtual void Reset ()=0
 
virtual void Stop ()=0
 
virtual double GetPeriod ()=0
 
virtual void SetMaxPeriod (double maxPeriod)=0
 
virtual bool GetStopped ()=0
 
virtual bool GetDirection ()=0
 

Detailed Description

Interface for counting the number of ticks on a digital input channel. Encoders, Gear tooth sensors, and counters should all subclass this so it can be used to build more advanced classes for control and driving.

Definition at line 15 of file CounterBase.h.


The documentation for this class was generated from the following file:

Generated on Sat Apr 26 2014 12:26:46 for WPILibC++ by doxygen 1.8.6