Started output coding: set up some states for encoder motor using its feedback.