Project 1- Traffic Jam Assistant Feature
AIM: To develop a single feature of Traffic Jam Assistant algorithm using MATLAB & SIMULINK.
OBJECTIVE:
1. Model development as per MBD guidelines.
2. Creation of Simulink Data Dictionary (SLDD) file
3. Code Generation using Embedded Coder
4. Generate Model Advisor Report
INTRODUCTION:
Traffic Jam Assistant is one of the most common feature in Advanced Driver Assistance System. Traffic Jam Assistant helps the driver amive more relaxed at their destination, even in dense traffic or in traffic jams. As a partially automated comfort function, the system takes over the longitudinal & lateral guidance of the vehicle. This means that the car can drive off, accelerate & brake automatically, as well as steer the vehicle within certain constraints. The driver has to permanently supervise the system & be ready to take over the complete control of the vehicle at any time.
Traffic Jam Assistant system helps to avoid rear end collisions in dense traffic conditions & traffic jams. In Traffic jams, the vehicle takes over driving off, acceleration, braking and steering within same lane.
Basic Working Principle:
Traffic Jam Assistant is based on the sensors and the functionality of the Adaptive Cruise Control (ACC) with stop & go and Lane Keeping Support (LKS). When ACC 'Stop & Go' is turned ON, the Traffic Jam Assistant continuously analyses the speed of the surrounding vehicles and compares it with the own driving speed. If the system detects dense traffic or a traffic jam at speeds less than 60 kmph, the driver can activate the functionality by press of a button. The vehicle will now automatically follow the vehicle in front, takes over driving off, acceleration, braking and steering within same lane.
Information regarding the Traffic Jam Assistant will be available to be displayed to the driver in the Instrument Panel Cluster (IPC). The Algorithm which the students need to implement here in this project is predominantly based on IPC units.
SOLUTION:
There are certain requirements given in the problem to implement the model Traffic Jam Assistant. The following are the steps followed :
1.Create the Simulink Data Dictionary(SLDD) file from given data, carefully declare the inputs and outputs in SLDD file.

SLDD File attached for refernce
2. As per REQUIREMENT -1:
- Input Signal "Input Voltage is compared against voltage values "VOLTAGE MINIMUM_RANGE & VOLTAGE MAXIMUM RANGE™
- Incoming input signal "input Voltage must be greater than-equal to "VOLTAGE MINIMUM_RANGE and less than-equal to"VOLTAGE_MAXIMUM_RANGE"
- Output signal from here is "Optimum Voltage which will be one of the inputs the subsystem "DisplayUnit".
It is implemented as:

Subsyatem consist of:

3. As per REQUIREMENT No 2 (Display Unit Subsystem).
- Input Signals are "Optimum_Voltage, "Input SwitchEnable Display": Signal "Enable Display must be saturated between the range 7 Output signal from the subsystern is "Output Display.
- Input Signal "Enable Display" is compared against pre-defined set of values in a multiport switch. Total data ports in the multport switch is 5.
- Multiport switch inputs 1 & 2 is connected to calibration signal "ON MODE, Multiport switch inputs 3 & 4 is connected to calibration signal "OFF MODE while Multiport switch input 5 is connected to calibration signal "STANDBY MODE
- The output from Multiport switch is connected to the first input port of the Switch block The third input port of the Switch block is connected to the calibration signal "NO DISPLAY
- Meanwhile NOT value of input signal "Input Switch" is compared in an AND gate against input signal "Optimum Voltage and the output from comparing if calibration signals "INTERRUPT " & "INTERRUPT 2" are equal. The output of the AND gate is the second input of the switch block.
- The output from the switch block is "Output Display"
It is implemented as:

Subsyatem consist of:

The model is simulated and and there are no error:

Traffic Jam Assistant is based on the sensors and the functionality of the Adaptive Cruise Control (ACC) with stop & go and Lane Keeping Support (LKS). When ACC 'Stop & Go' is turned ON, the Traffic Jam Assistant continuously analyses the speed of the surrounding vehicles and compares it with the own driving speed. if the system detects dense traffic or a traffic jam at speeds less than 60 kmph, the driver can activate the functionality by press of a button. The vehicle will now automatically follow the vehicle in front, takes over dreing off acceleration, braking and steering within same lane.
Information regarding the Traffic Jam Assistant will be available to be displayed to the driver in the Instrument Panel Cluster (PC) The Algorithm which the students need to implement here in this project is predominantly based on IPC units.
Now check the Model advisor and the report snap is as follows:

model advisor report attached in below.
For the model the Code generation is completed and it is as snap is given below:


c.code is:
Conclusion:
Thus, a Simulink Data Dictionary file has been created for the given signals and calibration data, an algorithm has been developed for one the features of Traffic Jam Assistance, a Model Advisor report has been generated as per the MAAB guidelines, and a C code has been generated and verified for the required feature using Simulink.