All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Aim: Traffic Jam Assistant Feature Introduction to the 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,…
Pratik Joshi
updated on 08 Aug 2022
Aim:
Traffic Jam Assistant Feature
Introduction to the 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.
Problem Statement:
To develop one specific requirement of Traffic Jam Assistant algorithm which would predominantly feature in the IPC algorithm.Please note that the whole Traffic Jam Assistant is a very huge algorithm & only one small part of the logic is implemented here. Idea is to familiarize with concepts of Model Based Development in MATLAB Environment. The Project must be done keeping in mind the following processes & steps.
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 |
Ans:
Traffic Jam Assistant Feature model:
Requirement1 Subsystem:
Requirement2(DisplayUnit Subsystem):
Simulink data dictionary:
Generated C code:
/*
* File: Traffic_Jam_Assistant_Feature.c
*
* Code generated for Simulink model 'Traffic_Jam_Assistant_Feature'.
*
* Model version : 1.2
* Simulink Coder version : 9.5 (R2021a) 14-Nov-2020
* C/C++ source code generated on : Mon Aug 8 20:23:43 2022
*
* Target selection: ert.tlc
* Embedded hardware selection: Intel->x86-64 (Windows64)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include "Traffic_Jam_Assistant_Feature.h"
#include "Traffic_Jam_Assistant_Feature_private.h"
/* Exported data definition */
/* ConstVolatile memory section */
/* Definition for custom storage class: ConstVolatile */
const volatile boolean_T INTERRUPT_1 = 1;/* Referenced by: '<S1>/Constant4' */
const volatile boolean_T INTERRUPT_2 = 1;/* Referenced by: '<S1>/Constant5' */
const volatile uint8_T OFF_MODE = 2U; /* Referenced by: '<S1>/Constant1' */
const volatile uint8_T ON_MODE = 1U; /* Referenced by: '<S1>/Constant' */
const volatile uint8_T STANDBY_MODE = 3U;/* Referenced by: '<S1>/Constant2' */
const volatile real_T VOLTAGE_MAXIMUM_RANGE = 50.0;/* Referenced by: '<S3>/Constant' */
const volatile uint8_T VOLTAGE_MINIMUM_RANGE = 30U;/* Referenced by: '<S4>/Constant' */
/* External inputs (root inport signals with default storage) */
ExtU_Traffic_Jam_Assistant_Fe_T Traffic_Jam_Assistant_Feature_U;
/* External outputs (root outports fed by signals with default storage) */
ExtY_Traffic_Jam_Assistant_Fe_T Traffic_Jam_Assistant_Feature_Y;
/* Real-time model */
static RT_MODEL_Traffic_Jam_Assistan_T Traffic_Jam_Assistant_Featur_M_;
RT_MODEL_Traffic_Jam_Assistan_T *const Traffic_Jam_Assistant_Featur_M =
&Traffic_Jam_Assistant_Featur_M_;
/* Model step function */
void Traffic_Jam_Assistant_Feature_step(void)
{
real_T tmp;
/* Switch: '<S1>/Switch' incorporates:
* Constant: '<S1>/Constant4'
* Constant: '<S1>/Constant5'
* Constant: '<S3>/Constant'
* Constant: '<S4>/Constant'
* Inport: '<Root>/Input_Switch'
* Inport: '<Root>/Input_Voltage'
* Logic: '<S1>/Logical Operator'
* Logic: '<S1>/Logical Operator1'
* Logic: '<S2>/Logical Operator'
* RelationalOperator: '<S1>/Equal'
* RelationalOperator: '<S3>/Compare'
* RelationalOperator: '<S4>/Compare'
*/
if ((!Traffic_Jam_Assistant_Feature_U.Input_Switch) &&
((Traffic_Jam_Assistant_Feature_U.Input_Voltage >= VOLTAGE_MAXIMUM_RANGE) &&
(Traffic_Jam_Assistant_Feature_U.Input_Voltage <= VOLTAGE_MINIMUM_RANGE))
&& (INTERRUPT_1 == INTERRUPT_2)) {
/* Saturate: '<S1>/Saturation' incorporates:
* Inport: '<Root>/Enable_Display'
*/
if (Traffic_Jam_Assistant_Feature_U.Enable_Display > 7.0) {
tmp = 7.0;
} else if (Traffic_Jam_Assistant_Feature_U.Enable_Display < 0.0) {
tmp = 0.0;
} else {
tmp = Traffic_Jam_Assistant_Feature_U.Enable_Display;
}
/* End of Saturate: '<S1>/Saturation' */
/* MultiPortSwitch: '<S1>/Multiport Switch' */
switch ((int32_T)tmp) {
case 1:
/* Outport: '<Root>/Output_Display' incorporates:
* Constant: '<S1>/Constant'
*/
Traffic_Jam_Assistant_Feature_Y.Output_Display = ON_MODE;
break;
case 2:
/* Outport: '<Root>/Output_Display' incorporates:
* Constant: '<S1>/Constant'
*/
Traffic_Jam_Assistant_Feature_Y.Output_Display = ON_MODE;
break;
case 3:
/* Outport: '<Root>/Output_Display' incorporates:
* Constant: '<S1>/Constant1'
*/
Traffic_Jam_Assistant_Feature_Y.Output_Display = OFF_MODE;
break;
case 4:
/* Outport: '<Root>/Output_Display' incorporates:
* Constant: '<S1>/Constant1'
*/
Traffic_Jam_Assistant_Feature_Y.Output_Display = OFF_MODE;
break;
default:
/* Outport: '<Root>/Output_Display' incorporates:
* Constant: '<S1>/Constant2'
*/
Traffic_Jam_Assistant_Feature_Y.Output_Display = STANDBY_MODE;
break;
}
/* End of MultiPortSwitch: '<S1>/Multiport Switch' */
} else {
/* Outport: '<Root>/Output_Display' incorporates:
* Constant: '<S1>/Constant3'
*/
Traffic_Jam_Assistant_Feature_Y.Output_Display = 0U;
}
/* End of Switch: '<S1>/Switch' */
}
/* Model initialize function */
void Traffic_Jam_Assistant_Feature_initialize(void)
{
/* (no initialization code required) */
}
/* Model terminate function */
void Traffic_Jam_Assistant_Feature_terminate(void)
{
/* (no terminate code required) */
}
/*
* File trailer for generated code.
*
* [EOF]
*/
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Project - Speed Control of a Direct Current (DC) motor
Aim: In this project, a Simulink model for the DC motor will be first developed per the schematic shown in Figure 1. Use the Proportional, Integral, and Derivative (PID) control design knowledge gained in the training to design, develop and test a controller to maintain a desired speed for the motor. Ans: Subsystem Dc…
10 Sep 2022 01:46 PM IST
Project - Data Handling and Interpolation
Q1. Aim: Project : In a laboratory experiment, data of voltage and current has been recorded and the same is attached in an excel file ( Click on this link VI.xlsx ). Read the excel file in the Matlab program and perform the interpolation in the range of -17.3:0.1:0.9. Generate the interactive plot for…
02 Sep 2022 05:07 PM IST
Project 2-Highway Assistant-Lane Changing Assistant
Aim: Highway Assistant – Lane Changing Assistant Introduction to the Feature: The Highway Assistant supports the driver and takes over the longitudinal and lateral guidance of the vehicle in monotonous driving situations on highways. The partially automated function can automatically start, accelerate, brake as well…
09 Aug 2022 08:36 PM IST
Project 1- Traffic Jam Assistant Feature
Aim: Traffic Jam Assistant Feature Introduction to the 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,…
08 Aug 2022 03:36 PM IST
Related Courses
8 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.