added includes/code for absolute encoder