LRTEncoder patches bugs in WPILib's Encoder class. More...
#include <LRTEncoder.h>
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() | |
LRTEncoder patches bugs in WPILib's Encoder class.
LRTEncoder::LRTEncoder | ( | const char * | name, |
UINT32 | sourceA, | ||
UINT32 | sourceB, | ||
double | trim = 1.0 |
||
) |
Constructs an LRT Encoder.
name | name of encoder |
sourceA | channel A |
sourceB | channel B |
trim | scaling factor for the encoder |
INT32 LRTEncoder::Get | ( | ) |
Gets the current count of the encoder.
double LRTEncoder::GetRate | ( | ) |
Gets the current rate of the encoder.