Combined motor control and encoder readings