Scania engineers used MathWorks tools for Model-Based Design to model and simulate the driver support system, develop a prototype user interface, and generate embedded code for prototype and production targets.
The team partitioned the design into subsystems to evaluate the driver’s hill driving, brake use, choice of gears, and anticipation. These subsystems, together with components that control the display, were modeled using Simulink®. They used Stateflow® to model the control logic that determines when driving conditions are safe to provide the driver with an update.
Scania engineers collected truck sensor data from the CAN bus for various topographies and traffic situations during road tests and then simulated the system in Simulink using the sensor data as input. In addition, they simulated fault conditions and other operating conditions that would have been difficult or impossible to recreate in actual driving tests.
Using MATLAB®, the team developed a prototype user interface that displayed Scania Driver Support output. With MATLAB Compiler™ they created a standalone executable of the interface that was used in the trucks.
The team generated code using Embedded Coder® and deployed it to a prototype ECU, enabling real-time road testing.
Throughout development, they used the Model Advisor tool in Simulink to ensure that the models complied with Scania modeling standards. These standards were based on lessons learned from similar Simulink based projects and on MAAB guidelines. Many were implemented as customized Model Advisor checks using Simulink Check™ to make them easier to follow.
During simulations the team used Simulink Coverage™ to analyze model coverage and identify untested elements of the design.
After thoroughly testing the system through simulations and road tests, they generated production code for the target ECU using Embedded Coder. The ECU is now deployed on Scania R-Series trucks. Early tests show that drivers using the system have reduced fuel use by up to 11%.
Scania R-Series trucks received the International Truck of the Year award. The jury described the Scania Driver Support system as “an innovative learning tool capable of providing a continuous and proactive assessment of a driver out on the road.”