![]() |
Zap'Em Blast'Em Robots
robots that play laser tag!
|
Structure to hold encoder task configuration and state. More...
#include <encoder_driver.h>
Data Fields | |
uint32_t | zero |
int32_t | ar |
int32_t | ticks |
int32_t | last_ticks |
int32_t | range |
TIM_HandleTypeDef * | htim |
Structure to hold encoder task configuration and state.
This struct includes timer values, encoder tick accumulation, and wrap-around handling through the auto-reload value.
int32_t ar |
Auto-reload or max timer value
TIM_HandleTypeDef* htim |
Timer handle
int32_t last_ticks |
Last read relative count
int32_t range |
Logical range of encoder
int32_t ticks |
Accumulated ticks
uint32_t zero |
Timer value when "zeroed"