Motor control simulation