The invention relates to the technical field of electric vehicles, in particular to an extended-range
electric vehicle endurance mileage
algorithm, which comprises the following steps of: S1, aiming at different batteries, obtaining real-time available residual electric quantity Ebatteriaval of the batteries; the method comprises the following steps: S1, starting a VCU (
vehicle control unit), S2, after the VCU is initialized, reading data of a previous
driving cycle in an
EEPROM (electrically erasable programmable read-only memory), and calculating average
power consumption data per hundred kilometers and pure electric endurance mileage, S3, carrying out upper and
lower limit value
processing on the filtered pure electric endurance mileage, S4, calculating oil-
electricity comprehensive endurance mileage, S5, carrying out
limit value processing on the oil-
electricity comprehensive endurance mileage again, and S5, carrying out
limit value processing on the oil-
electricity comprehensive endurance mileage. The problem that the driving mileage is calculated inaccurately at the present stage, if a driver does not supplement energy in time when a charging
pile is far away from a gas
station, the vehicle may lie down due to no oil and no electricity, and normal vehicle use of a user is affected is solved.