Project 2-Highway Assistant-Lane Changing Assistant
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 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.
Basic Working 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.


Requirement No 1 [Highway_DisplayUnit]:
Inputs to this particular subsystem are “Highway_Input_Signal”, “Enable_Display”, “Input_Switch”. These three input signals, when assigned to a particular value will give output signals of specific value. The output signals are “Highway_Display_Mode_1”, “Highway_Display_Mode_2”, “Highway_Display_Mode_3”, “Highway_Display_Mode_4”. The requirement must be implemented in the form of a Stateflow logic.
|
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 No 2 [Lane_DisplayUnit]:
Inputs to this particular subsystem are “Enable_Display”, “Input_Switch”, “Lane_Input_Signal”. These three input signals, when assigned to a particular value will give output signals of specific value. The output signals are “Lane_Display_Mode_1”, “Lane_Display_Mode_2”, “Lane_Display_Mode_3”, “Lane_Display_Mode_4”. The requirement must be implemented in the form of Stateflow logic.
|
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 |



c





File: Highway_Assitant.c
File: Highway_Assitant.h
File: Highway_Assitant_private.h
File: Highway_Assitant_types.h
File: rtwtypes.h
File: Highway_Assitant_component.arxml
File: Highway_Assitant_datatype.arxml
File: Highway_Assitant_implementation.arxml
File: Compiler.h
File: Platform_Types.h
File: Rte_Highway_Assitant.h
| 1 | /* This file contains stub implementations of the AUTOSAR RTE functions. |
| 2 | The stub implementations can be used for testing the generated code in |
| 3 | Simulink, for example, in SIL/PIL simulations of the component under |
| 4 | test. Note that this file should be replaced with an appropriate RTE |
| 5 | file when deploying the generated code outside of Simulink. |
| 6 | |
| 7 | This file is generated for: |
| 8 | Atomic software component: "Highway_Assitant" |
| 9 | ARXML schema: "4.3" |
| 10 | File generated on: "15-Jan-2022 21:22:16" */ |
| 11 | |
| 12 | #ifndef Rte_Highway_Assitant_h |
| 13 | #define Rte_Highway_Assitant_h |
| 14 | #include "Rte_Type.h" |
| 15 | #include "Compiler.h" |
| 16 | |
| 17 | /* Data access functions */ |
| 18 | #define Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display |
| 19 | |
| 20 | UInt8 Rte_IRead_Highway_Assitant_Step_Rp_Enable_Display_DE_Enable_Display(void); |
| 21 | |
| 22 | #define Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal |
| 23 | |
| 24 | UInt8 |
| 25 | Rte_IRead_Highway_Assitant_Step_Rp_Highway_Input_Signal_DE_Highway_Input_Signal |
| 26 | (void); |
| 27 | |
| 28 | #define Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch |
| 29 | |
| 30 | Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch |
| 31 | UInt8 Rte_IRead_Highway_Assitant_Step_Rp_Input_Switch_DE_Input_Switch |
| 32 | (void); |
| 33 | |
| 34 | #define Rte_IRead_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal Rte_IRead_Highway_Assitant_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal |
| 35 | |
| 36 | UInt8 Rte_IRead_Highway_Assitant_Step_Rp_Lane_Input_Signal_DE_Lane_Input_Signal |
| 37 | (void); |
| 38 | |
| 39 | #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 |
| 40 | |
| 41 | void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1(Double |
| 42 | u); |
| 43 | |
| 44 | #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 |
| 45 | |
| 46 | Double* Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_1_DE_Display_Mode_1 |
| 47 | (void); |
| 48 | |
| 49 | #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 |
| 50 | |
| 51 | void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2(Double |
| 52 | u); |
| 53 | |
| 54 | #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 |
| 55 | |
| 56 | Double* Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_2_DE_Display_Mode_2 |
| 57 | (void); |
| 58 | |
| 59 | #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 |
| 60 | |
| 61 | void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3(Double |
| 62 | u); |
| 63 | |
| 64 | #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 |
| 65 | |
| 66 | Double* Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_3_DE_Display_Mode_3 |
| 67 | (void); |
| 68 | |
| 69 | #define Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4 |
| 70 | |
| 71 | Rte_IWrite_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4 |
| 72 | void Rte_IWrite_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4 |
| 73 | (Double u); |
| 74 | |
| 75 | #define Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4 |
| 76 | |
| 77 | Rte_IWriteRef_Highway_Assitant_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4 |
| 78 | Double* |
| 79 | Rte_IWriteRef_Highway_Assitant_Step_Pp_Display_Mode_4_DE_Display_Mode_4 |
| 80 | (void); |
| 81 | |
| 82 | /* Entry point functions */ |
| 83 | extern FUNC(void, Highway_Assitant_CODE) Highway_Assitant_Init(void); |
| 84 | extern FUNC(void, Highway_Assitant_CODE) Highway_Assitant_Step(void); |
| 85 | |
| 86 | #endif |
| 87 |