The invention provides an electric car accelerator pedal check
algorithm, and relates to the field of whole car control security. The check
algorithm comprises the following steps of 1, acquiring real-time output
voltage signals of the a path and b path of an accelerator pedal, and total travel starts Ua0 and Ub0 and ends Ua1 and Ub1 of two
voltage signals; 2, computing real-
time signal incremental ratios of the a path and b path; 3, separately arranging multiple sampling points at intervals between the
voltage start to end of each of the two voltage
signal travels; dividing the whole openingof the accelerator pedal into multiple sections, and forming the incremental ratio of each sampling point into a
signal sampling table; 4, computing the real-time opening of the accelerator pedal according to the opening sections of the real-time voltage
signal incremental ratios in the signal sampling table; and 5, judging whether the accelerator pedal operates normally through judging whether the change ratio difference of the two signals is less than a set error. The
algorithm provided by the invention has the beneficial effects that the same check algorithm can be applied to the differenttypes of pedals, and parameters needing to be calibrated during a check process are reduced.