Project 1 (Mini Project on Vehicle Direction Detection
AIM: To develop a MATLAB SIMULINK logic for the vehicle Direction Detection.
Objective:
- Development of MATLAB Simulink model as per requirement.
- Tag the requirements to the simulink model; tagging requirement 1 & requirement 2 to their corresponding subsystems is fine.
- MBD compliant changes, Data Dictionary creation & code generation is added advantage, and that is not scope of this project.
- If choosing code generation, Storage class for Input signals: ImportedExtern; Storage class for Output signal: Export to File; Storage class for local signals: localizable; Storage class for calibration signals: Const.
- Choose sample time for all signals as 0.01s
GENEAL OVERVIEW:
Identifying the direction of the vehicle is one of the important & diverse features in Autonomous driving & Advanced Driver Assistance Features. This particular sub-feature of identifying the direction of vehicle is basically identifying the direction the vehicle is taking based on the camera input.
Camera reads the road signs & stores into its memory with unique values for left turn, right turn & straight drive. Depending on the direction it is taking, final indication is given to the driver – as an indication if he is driving in the recommended direction or not.
Vehicle Direction Determination can also be coupled along - side features like GPS systems to identify whether the vehicle is reaching its destination in an optimized manner. This sub feature can also be used along with Lane Detection, Highway Warning, Ramp Entry / Exit in Wrong Way Detection etc.
Model Development Procedure:
- Create a folder by the name as Mini Project & add to the MATLAB path after that, create a new simulink file named project.
- Creting SLDD file from the given Data and adding to the mode, the signal which are needed to create the SLDD were given in Quesion itself.
- Link the cretae SLDD to the create .slx file named project.

- Now open the MS word and create the same requirement's which are given in question. I attached the requirement document below.
- After creating the Requirement document save it in the same folder named Mini Project, with the name "Requirement for Vehicle_Direction_Detection"
- Later open the MATLAB 2023a, create the model in the Simulink file (.slx) named project, Create the sub system by naming it "Vehicle_direction".

- Create two more sub systems inside the vehicle_direction block named them as Requirement_1 & Requirement_2.

- In side that Requirement_1 & 2 block's we create/implement our algorithm which is made as per the respective requirements.
- Now name all the inports and outports as per the create/implement logic. Later,
- The signal (valve) assigned to Inport block through SLDD should be resolved as the origin.. that is explain in below picture.

- In this signal Properties option we need to do the signal propagation rest all places except at its origin, as we know at origin we need to do signal resolution.
- After doing all the necessaries for that model, go to the model settings and check the " Enforce consistent data definitions across referenced system ".

Conculsion :
we developed a MATLAB SIMULINK logic for the vehicle Direction Detection as per the given requirement.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Note:
I am unable to perform the MBD compliant changes, because I have no tool box in my license version of MATLAB 2023a so i am unable to perform that so kindly excuse me for that..,
So, I kindly request you to the grading my assignment by taking into the consideration of the above mentioned Note, If the policy of your not allowing you to consider my request kindly go according to your then..,
Thanks for giving your time for reading my Note & Request.