Function rc_encoder_init#

Function Documentation#

int rc_encoder_init(void)#

Initializes counters for channels 1-4.

This also resets the encoder position to 0 so the first position read is consistent.

Returns:

0 on success or -1 on failure