LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
Public Member Functions | List of all members
LRTEncoder Class Reference

LRTEncoder patches bugs in WPILib's Encoder class. More...

#include <LRTEncoder.h>

Inheritance diagram for LRTEncoder:
Loggable

Public Member Functions

 LRTEncoder (const char *name, UINT32 sourceA, UINT32 sourceB, double trim=1.0)
 Constructs an LRT Encoder.
 
 ~LRTEncoder ()
 destroys this LRT Encoder
 
void Start ()
 Starts the LRT Encoder.
 
INT32 Get ()
 Gets the current count of the encoder.
 
double GetRate ()
 Gets the current rate of the encoder.
 
virtual void Log ()
 Overload this function to log when LogManager calls LogAll()
 

Detailed Description

LRTEncoder patches bugs in WPILib's Encoder class.

Constructor & Destructor Documentation

LRTEncoder::LRTEncoder ( const char *  name,
UINT32  sourceA,
UINT32  sourceB,
double  trim = 1.0 
)

Constructs an LRT Encoder.

Parameters
namename of encoder
sourceAchannel A
sourceBchannel B
trimscaling factor for the encoder

Member Function Documentation

INT32 LRTEncoder::Get ( )

Gets the current count of the encoder.

Returns
encoder Tick count
double LRTEncoder::GetRate ( )

Gets the current rate of the encoder.

Returns
encoder Tick rate

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