Text this: Control methods for electrical machines