Delphi adopted MATLAB and MATLAB Coder to develop and implement the radar sensor alignment algorithm.
Liang used MATLAB to analyze recorded sensor data captured from road testing a real vehicle. With huge amounts of testing data and the help of powerful MATLAB built-in functions, Liang realized and verified a radar sensor alignment algorithm that calculates sensor misalignment angles from raw radar detection and host vehicle speed. The algorithm computes the least squares solution to a system of linear equations. It also estimates the computed angle’s accuracy based on the residual of the least squares solution.
To verify the algorithm, Liang ran simulations using recorded sensor and vehicle data in MATLAB. He then used MATLAB scripts to process huge amounts of vehicle data to verify the accuracy of the sensor misalignment angle calculated by the algorithm.
He generated C code from the algorithm using MATLAB Coder. He verified the C code by calling a MEX function within the MATLAB testing code and comparing the results of the generated code with the results of the original MATLAB algorithm, completing each iteration in minutes.
Initially, the generated C code running on an ARM10 processor computed the misalignment angle in more than 3 milliseconds. Liang removed redundant logic, combined for-loops, and performed other optimizations in the MATLAB code until the generated code completed its computations in less than 1 millisecond, which met the throughput requirements.
On schedule, Liang delivered the verified C code for the improved algorithm to the software integration team for integration into the production system.
Delphi already uses this radar sensor alignment algorithm in active safety systems in production vehicles for several OEMs, with no reported defects.
Liang and his co-workers have used MATLAB and MATLAB Coder to design and implement several other production algorithms, including a target selection algorithm that uses fusion tracks information, camera vision objects, and host vehicle information to select appropriate targets for OEMs’ active safety features.