|
Studica - C++ Documentation
|
TitanQuad Encoder class c++ documentation. More...
#include <TitanQuadEncoder.h>
Public Member Functions | |
| TitanQuadEncoder (TitanQuad &titan, int encoder, double distPerTick) | |
| int | Get () const override |
| void | Reset () override |
| double | GetPeriod () const override |
| void | SetMaxPeriod (double maxPeriod) override |
| bool | GetStopped () const override |
| double | GetEncoderDistance () |
| double | GetRaw () |
| double | GetSpeed () |
| bool | GetDirection () const override |
| void | SetReverseDirection () |
TitanQuad Encoder class c++ documentation.
|
override |
Gets the direction of the encoder
| double studica::TitanQuadEncoder::GetEncoderDistance | ( | ) |
Will give the distance traveled based on encoder data
| encoder | encoder to be used |
| double studica::TitanQuadEncoder::GetRaw | ( | ) |
Gets the raw count of encoder
| double studica::TitanQuadEncoder::GetSpeed | ( | ) |
Gets the speed of the encoder
| void studica::TitanQuadEncoder::SetReverseDirection | ( | ) |
Sets the direction of the encoder