A control method for carpet drift in robot motion, a chip, and a cleaning robot are disclosed. The control method includes: performing fusion calculation on a current position coordinate of the robot according to data sensed by a sensor every first preset time, calculating amount of drift, relative to a preset direction, of the robot, according to a relative position relationship between a current position and an initial position of the robot, and accumulating to obtain a drift statistical value; and calculating the number of acquisitions of the position coordinate within a second preset time, averaging to obtain a drift average value, then determining a state of the robot deviating from the preset direction according to the drift average value, and setting a corresponding Proportion Integration Differentiation (PID) proportionality coefficient to synchronously adjust speeds of left and right drive wheels of the robot while reducing a deviation angle of the robot. The control method improves accuracy in detecting carpet drift of the robot, thereby effectively controlling the robot to maintain a good linear walking effect.
展开▼