Brushless Motor Become Slower when combined with the IMU

Could you explain more about the hardware - what kind of brushless motor? What is your approach to commutation?
What pins are controlling / sensing what? And what interrupts are you using?