This invention discloses an external force
estimation and compensation method based on
power flow discrimination and Bayesian
estimation, relating to the field of precision
servo control technology. The main steps include: calculating the
motor power flow in real time and intelligently discriminating driving, pullback, and other operating
modes based on its sign; employing a dual-model Bayesian
estimation architecture to couple the estimation of fast dynamic states and slowly changing
system parameters, achieving effective separation of internal and external disturbances; based on the high-confidence estimation results, comprehensively calculating friction, efficiency
asymmetry, and
inertia compensation terms to form a total feedforward compensation torque; this torque, after undergoing multiple
safety constraints such as amplitude, rate of change, and energy integral, is superimposed on the torque command of the main controller in an open-loop feedforward manner, ultimately driving the motor. This invention achieves high-precision compensation for
internal friction losses in the
motor system and pure estimation of external forces through intelligent mode discrimination based on
power flow and dual-model Bayesian collaborative estimation.