LRT14
1.0
|
LRTEncoder patches bugs in WPILib's Encoder class. More...
#include <LRTEncoder.h>
Public Member Functions | |
LRTEncoder (const char *name, uint32_t sourceA, uint32_t sourceB, double trim=1.0) | |
Constructs an LRTEncoder. | |
~LRTEncoder () | |
Destroys this LRTEncoder. | |
void | Start () |
Starts the LRTEncoder. | |
int32_t | Get () |
Gets the current count of the encoder. | |
double | GetRate () |
Gets the current rate of the encoder. | |
void | Log () |
Logs data to the Logger. | |
Additional Inherited Members | |
![]() | |
template<typename T > | |
void | LogToFile (T *field, std::string name) |
Saves a variable to the Logger for logging. | |
template<typename T > | |
void | LogToFile (T *field, int count, std::string name) |
Saves a dynamically allocated array to the Logger for logging. | |
template<typename T > | |
void | LogToFile (T value, std::string name) |
Saves a value to the Logger for logging. | |
LRTEncoder patches bugs in WPILib's Encoder class.
LRTEncoder::LRTEncoder | ( | const char * | name, |
uint32_t | sourceA, | ||
uint32_t | sourceB, | ||
double | trim = 1.0 |
||
) |
Constructs an LRTEncoder.
name | name of encoder |
sourceA | channel A |
sourceB | channel B |
trim | scaling factor for the encoder |
int32_t LRTEncoder::Get | ( | ) |
Gets the current count of the encoder.
double LRTEncoder::GetRate | ( | ) |
Gets the current rate of the encoder.