more work on 3 phase BLDC controller