The invention provides a method and device for preventing collision between a harvesting
machine and a material receiving trolley, and the method comprises the steps: determining a first target
deflection angle between the current advancing direction of the harvesting
machine and a
ridge row where target grains are located if a received starting instruction is an automatic row alignment function starting instruction, adjusting a
steering wheel steering angle according to the first target
deflection angle to make the advancing direction consistent with the
ridge row direction; if the received starting instruction is a vision aided driving function starting instruction, determining a second target
deflection angle between the current advancing direction of the harvesting
machine and the straight line where the target haystack is located, and adjusting the
steering angle of the
steering wheel based on the second target deflection angle to enable the advancing direction to be the same as the direction of the target haystack; in the process of adjusting the
turning angle of the
steering wheel to achieve alignment in the corresponding direction, the distance between the harvesting machine and the material receiving vehicle is obtained, and if the distance is smaller than the preset safety distance, the turning direction of the steering wheel is limited based on the discharging mode of the harvesting machine. By the adoption of the technical scheme, collision accidents of the harvesting machine are reduced, and the safety of operation of the harvesting machine is improved.