I'm not a real DJI employee ( but I play one on TV )...
It's front to back. If you can't get the Phantom properly calibrated or you've added addition equipment (rocket launchers?) and the weight and balance are off you can compensate by adjusting the gain.