Function rc_encoder_pru_write#
Defined in File encoder_pru.h
Function Documentation#
-
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.
- Parameters:
pos – [in] The new position
- Returns:
0 on success, -1 on failure