|
Studica - C++ Documentation
|
TitanSmall Encoder class c++ documentation. More...
#include <TitanSmallEncoder.h>
Public Member Functions | |
| TitanSmallEncoder (TitanSmall &titan, 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 | GetRPM () |
| double | GetSpeed () |
| bool | GetDirection () const override |
| void | SetReverseDirection () |
TitanSmall Encoder class c++ documentation.
| studica::TitanSmallEncoder::TitanSmallEncoder | ( | TitanSmall & | titan, |
| double | distPerTick | ||
| ) |
Constructor for encoders
| titan | - The reference to the TitanSmall encoders that are being initialize |
| distPerTick | - Distance per tick value for the encoder |
|
override |
Gets the direction of the encoder
| double studica::TitanSmallEncoder::GetEncoderDistance | ( | ) |
Gets the encoder distance
| double studica::TitanSmallEncoder::GetRaw | ( | ) |
Gets the raw count of encoder
| double studica::TitanSmallEncoder::GetRPM | ( | ) |
Gets the round per minute of encoder
| double studica::TitanSmallEncoder::GetSpeed | ( | ) |
Gets the speed of the encoder
| void studica::TitanSmallEncoder::SetReverseDirection | ( | ) |
Sets the direction of the encoder