EV motor controller