encoder_control should be const in nearly all the code