Project 2-Highway Assistant-Lane Changing Assistant
Aim:
Model must be developed in MATLAB Simulink per MBD guidelines & Code Generation Profile must be Autosar Coder & Simulink Data Dictionary must be created for the model & must be linked to the model & Requirement Tagging.All the input & output signals must be mapped into the Autosar Editor.Model Advisor Report is mandatory & this will be followed by Code Generation.
BASIC PRINCIPLE:
Highway Assistant is a partially automated driving function for a speed range of up to 180 km/h (112 mph) on highways. It combines the radar-based longitudinal guidance of Adaptive Cruise Control (ACC) with the video-based lateral guidance of lane keeping support in one system. Highway Assistant can be supplemented by an automatic lane change initiated and monitored by the driver in a speed range of 60 – 130 km/h (35 – 80 mph).
The lane Change Assistant works by using two mid-range radar sensors that are concealed in the rear bumper – one on the left, one on the right. These two sensors monitor the area alongside and behind the car. Powerful control software collates the sensor information to create a complete picture of all traffic in the area behind the vehicle.Whenever another vehicle approaches at speed from behind or is already present in the blind spot, a signal such as a warning light in the side mirror alerts the driver to the hazard. Should the driver still activate the turn signal with the intention of changing lanes, the system issues an additional acoustic and/or haptic warning.
FEATURES:
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 as steer the vehicle to a certain extent. The driver has to permanently supervise the system and be ready to take over the complete control of the vehicle at any time.Drivers are taught to assess surrounding traffic before changing lanes by checking their rearview and side mirrors and looking over each shoulder. However, even for those who follow this sequence of checks, the vehicle's blind spot – the area alongside and just behind the vehicle – is a constant source of danger and often the cause of serious accidents. Even vehicles approaching quickly from behind can pose a risk. To make changing lanes safer, this feature has been developed.
Model is created based on the given instructions

REQUIREMENT 1:
|
Condition |
Action |
|
Highway_Input_Signal = 1 Enable_Display = off Input_Switch = on |
Highway_Display_Mode_1 = 232 Highway_Display_Mode_2 = 183 Highway_Display_Mode_3 = 41 Highway_Display_Mode_4 = 94 |
|
Highway_Input_Signal = 1 Enable_Display = on Input_Switch = on |
Highway_Display_Mode_1 = 213 Highway_Display_Mode_2 = 183 Highway_Display_Mode_3 = 9 Highway_Display_Mode_4 = 94 |


REQUIREMENT 2:
|
Condition |
Action |
|
Lane_Input_Signal= 6 Enable_Display = off Input_Switch = on |
Lane_Display_Mode_1 = 132 Lane_Display_Mode_2 = 185 Lane_Display_Mode_3 = 54 Lane_Display_Mode_4 = 67 |
|
Lane_Input_Signal= 6 Enable_Display = on Input_Switch = on |
Lane_Display_Mode_1 = 127 Lane_Display_Mode_2 = 248 Lane_Display_Mode_3 = 186 Lane_Display_Mode_4 = 84 |


REQUIREMENT 3:

Creation of sldd:
Go to modelling & modelling properties and external data and save the model & then go to mocel explorer & select the model and design data & then add the input & output signals

AUTOSAR PORT MAPPING:
- change the model configuration settings as shown below

After changing the model configuration we will get the model shown below

Now open the utosar data dictionary and set the XML options as shown below


Now add the S_R Interfaces as shown below

Now the data elements should be fixed as shown below

Add the receiver ports

Add sender ports

After adding all the ports go to simulink model and click on Autosar varification code mapping

After this step a window will pop up showing validation is successful

Now we are supposed to do model advisor check for that go to modelling & model advisor and select the checks & run the selected checks

Model advisor report for modeling standard of MAB

Model advisor report for modeling standard for ISO26262

Autosar code generation:
