SM = (xcg - xnp) / c
The static margin (SM) is given by:
The autopilot system can be tuned by adjusting the controller gains to achieve stable and accurate altitude control. Flight Stability And Automatic Control Nelson Solutions