add encoder motor driver