Acceleration Setpoint in body frame coordinates for MC_POS_CONTROLLER

Hi all,

I have been reading through the code for multicopter position controller and I know that it generates acceleration setpoints which from my understanding are relative to the inertial earth frame. I was wondering if there is any way to convert these to the body frame.