This is the latest (main) BeagleBoard documentation. If you are looking for stable releases, use the drop-down menu on the bottom-left and select the desired version.

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