In order to improve the measurement precision of the tilt angle sensor,a temperature drift compensation method based on the least square polynomial piecewise function nonlinear curve fitting is proposed. According to the principle of tilt angle sensor and the characteristic of temperature drift compensation,a two-segment function temperature drift compensation model is established,which ignores the influence of other gross errors,and introduces independent variable temperature and fixed angle. The least square method is used to analyze and proc...