X-Shape flatness measurement and control