structure to hold everything for one encoder More...
#include <vexime.h>
Data Fields | |
uint8_t | address |
The I2C address of this IME. More... | |
uint8_t | type |
The type of motor this IME is attached to. More... | |
uint16_t | valid |
The IME has been negotiated with and is valid. More... | |
uint16_t | motor_index |
A reference to the motor that this IME is connected to. More... | |
uint8_t | version [IME_BUF_LEN] |
buffer to store version string read from this IME More... | |
uint8_t | vendor [IME_BUF_LEN] |
buffer to store vendor string read from this IME More... | |
uint8_t | deviceid [IME_BUF_LEN] |
buffer to store device id string read from this IME More... | |
uint8_t | enc_data [IME_BUF_LEN] |
buffer used when reading encoder count More... | |
int32_t | count |
last encoder count read from IME More... | |
int32_t | offset |
an offset that id deducted from count More... | |
int32_t | velocity |
velocity data from IME More... | |
int32_t | delta_count |
change in count from last time read More... | |
int32_t | rpm |
calculated rpm (not tested yet) More... | |
int32_t | old_count |
count from last poll More... | |
int32_t | rpm_constant |
constant used to calculate rpm based on IME type More... | |
uint32_t | data_polls |
number of times this IME was polled More... | |
uint32_t | data_errors |
number of errors in communication with this IME More... | |
structure to hold everything for one encoder
uint8_t address |
The I2C address of this IME.
uint8_t type |
The type of motor this IME is attached to.
uint16_t valid |
The IME has been negotiated with and is valid.
uint16_t motor_index |
A reference to the motor that this IME is connected to.
uint8_t version[IME_BUF_LEN] |
buffer to store version string read from this IME
uint8_t vendor[IME_BUF_LEN] |
buffer to store vendor string read from this IME
uint8_t deviceid[IME_BUF_LEN] |
buffer to store device id string read from this IME
uint8_t enc_data[IME_BUF_LEN] |
buffer used when reading encoder count
int32_t count |
last encoder count read from IME
int32_t offset |
an offset that id deducted from count
int32_t velocity |
velocity data from IME
int32_t delta_count |
change in count from last time read
int32_t rpm |
calculated rpm (not tested yet)
int32_t old_count |
count from last poll
int32_t rpm_constant |
constant used to calculate rpm based on IME type
uint32_t data_polls |
number of times this IME was polled
uint32_t data_errors |
number of errors in communication with this IME