Challenge

Project 1- Traffic Jam Assistant Feature

AIM:-

To develop the traffic jam assistance matlab model as per MAAB guidelines ,Code Generation in Embedded Coder with SLDD file and performing advisor report followed with code generation.

ObJECTIVE:-

Traffic Jam Assistant Feature

  • Traffic Jam Assistant is one of the most common feature in Advanced Driver Assistance System. Traffic Jam Assistant helps the driver arrive 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.

MODEL:-

  • First we will take blank model and create an SLDD file where the input signals, constants , output signals and constants are defined in the assignment itself.

  • We will take the below parameters into the SLDD file.

Input Signals:

Name of the Signal

Data Type

Range

Input_Voltage

 uint8

0 - 255

Input_Switch

 boolean

0 – 1

Enable_Display

 uint8

0 - 255

Output Signal:

Name of the Signal

Data Type

Range

Output_Display

 uint8

0 - 255

Calibration Signals:

Name of the Signal

Data Type

Range

Initial Value

VOLTAGE_MINIMUM_RANGE

 uint8

0 – 255

30

VOLTAGE_MAXIMUM_RANGE

 uint8

0 – 255

50

OFF_MODE

 uint8

0 – 255

2

ON_MODE

 uint8

0 – 255

1

STANDBY_MODE

 uint8

0 – 255

3

INTERRUPT_1

boolean

0 – 1

1

INTERRUPT_2

boolean

0 - 1

1

NO_DISPLAY

 uint8

0 – 255

0

Local Signal:

Name of the Signal

Data Type

Range

Optimum_Voltage

boolean

0 - 1

  • After getting those parameters into the SLDD file by opening the model settings we can observe the sldd file parameters as shown below.

  • After making the sldd file we will analyse the requirements given in software requirement analysis, there we have assigned to do two requirements, following are the two requirements and related screenshots.
  • After making the sldd file we will create a solver settings in model settings as per below image to perform thr model and need for code generation.

Requirement No 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 to the subsystem “DisplayUnit”.

Requirement No 2 (DisplayUnit Subsystem):

  • Input Signals are “Optimum_Voltage”, “Input_Switch”,“Enable_Display”. Signal “Enable_Display” must be saturated between the range 0 – 7. Output signal from the subsystem is “Output_Display”.
  • Input Signal “Enable_Display” is compared against pre – defined set of values in a multiport switch. Total data ports in the multiport 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_1” & “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”.

 This is the model of requirement 1 and requirement2.

 The below model s the overall model for the traffic  jam assistant.

 Signal resolving & propogation:-

  • After making the model we will propogateand resolve the signals in the model which is already assigned in the sldd file.
  • Whenever the signal is appearing first time the signal should be resolved. and if signal is appearing more than one time the signal will be propogated.

Requirement Tagging & Tracebeality:-

For requirement tagging , we have to select the phrase in the word file and the word file should be opened and  then go to requirements and selection in word.

 Model Advisor check with MAAB guidelines:-

We need to check and run the model with MAAB guidelines.

  • The below image was the report generated and screenshot is provided..

Embedded C code Generation:-

  • To generate the Embedded C code we perform the below methods.
  • Apps- embedded coder- build.

 The below image was the embedded c code generated and the report was attached to file.

RESULT:-

The model was Performed and built with the SLDD file creation, requirement tagging &traceability, signal propogation and resolving,Model advisor check with MAAB guidelines, and generated the embedded c code.

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.