Robot Control Library
|
Go to the source code of this file.
Functions | |
int | rc_encoder_pru_init (void) |
Initializes the pru encoder counter for channel 4. More... | |
void | rc_encoder_pru_cleanup (void) |
Stops the PRU encoder counter and closes file descriptors. This is not strictly necessary but is recommended that the user calls this function at the end of their program. More... | |
int | rc_encoder_pru_read (void) |
Reads the current position of encoder channel 4. More... | |
int | rc_encoder_pru_write (int pos) |
Sets the current position of encoder channel 4. Usually for resetting a counter to 0 but can set an arbitrary position if desired. More... | |