Controller for Brushless Motor