Motor controller optimized for slow speed