| With the constant improvement of automobile electronic, EPS is widely used in carnow. Compared with the traditional hydraulic power steering system, EPS can have betterauxiliary torque in both high speed and low speed conditions. Besides it can also save costsand reduce fuel consumption. In the process of development of EPS controller, the rightsoftware development environment and the testing environment is very important for theefficiency and stability. this paper will research on Software Realization of EPS based onRTOS and auto code generation and verify its feasibility.The traditional EPS controller software is written by a developer manually, this kind ofsoftware development method consume a lot of time, and the debug is difficult, and it’seasy to bring in many artificial errors. Nowadays, software development method based onmodel automatic code generation is becoming the mainstream, Embedded Coder functionin MATLAB/Simulink platform allows the developer to generate code through the modeldirectly. the author will be developping the automatic code generation environment ofMPC5634M chip in the MATLAB platform.This will greatly improve the efficiency ofsoftware development and simplify the debugging process of software.On the basis of automatic code generation development environment with real-timeoperating system in it, this article explores the EPS control strategy. Motor current must beas close as possible to target current no matter under what circumstances. Motor currenttracking which is realized by using fixed PID parameters is difficult to meet therequirements of the rapidity and stability at the same time. Variable parameter PI controlstrategy is adopted in this paper to realize the tracking control of motor current, so that itcan following the target current fast and stable under any conditions.Through customizing the automatic code generation development environment and MPC5634M driver module, this paper will build the EPS control software model. Thengenerate the C code and download to the EPS controller hardware directly. At last we willdo the experiment to verify the correctness of the control strategy. At the same time,we alsoprove the correctness and efficiency of the software development environment. |