#include <encoders.h>
◆ encoder_id_t
◆ Encoders()
| Device::Encoders::Encoders |
( |
Robot & | robot | ) |
|
|
explicit |
◆ ~Encoders()
| Device::Encoders::~Encoders |
( |
| ) |
|
◆ encoder_isr_handler()
| void Device::Encoders::encoder_isr_handler |
( |
void * | arg | ) |
|
|
static |
◆ get_pulse_count()
| int32_t Device::Encoders::get_pulse_count |
( |
encoder_id_t | encoder_id | ) |
const |
|
inlinenodiscard |
Gets the pulse count of the given encoder.
- Returns
- The pulse count
- Parameters
-
| encoder_id | The id of the encoder of which to get the pulse count |
◆ initialize()
| void Device::Encoders::initialize |
( |
| ) |
|
Sets up the necessary GPIO pins.
◆ reset_pulse_count()
| void Device::Encoders::reset_pulse_count |
( |
encoder_id_t | encoder_id | ) |
|
|
inline |
Resets the pulse count of the given encoder back to zero.
- Parameters
-
| encoder_id | The id of the encoder of which to reset the pulse count |
The documentation for this class was generated from the following files: