Challenge

Project 1 (Mini Project on Vehicle Direction Detection

Q.1>

Aim:-identify the direction of the vehicle based on the camera input.

For this project there were several steps taken which are as follows:-

  • Developement of the Desired model
  • Configuration Parameter Setting
  • Linking of the Simulink Data Dictionary
  • Requirement Tagging
  • Signal resolving and Signal Propogation
  • Model Advisor Report Generation
  • C-code generation

Step:-1

SLDD File development

Step-2

Change the solver settings

Solver Type is changed from variable step to Fixed step and Solver type is selected as Discrete ( No continuous state) and also sample time is declared as 0.01 sec as per the project requirement.

Also under the Code generation option selecting embedded real time as system target file (ert.tlc) under target selection option.

Step-3

Development of the Required Model:-

As per the objective of the project the model has benn developed :-

Step-4 Requirement-1

Requirement - 1:

  • Steering wheel input as yaw rate (Signal name: SteeringWheel_YawDegreeInput) is the input for this system.
  • This is compared against 3 angular values, one each for left turn, right turn & straight drive (Calibration Values: Right_Turn_AngularLimit, Left_Turn_AngularLimit, Straight_Drive_Steering_Angle) to say which specific direction the steering wheel is turning towards.
  • Use switch blocks to compare & develop this requirement. Keep this requirement in a subsystem & output of this requirement is a local signal (Signal Name: Vehicle_Turn_Status).

Step-5

Requirement – 2:

  • Keep this requirement as a separate subsystem. Inputs to this requirement are local signal from requirement 1 (Signal Name: Vehicle_Turn_Status) & an input signal from camera (Signal Name: CameraInput_RoadSign), which confirms the occurrence of a road sign.
  • Signal Vehicle_Turn_Status is compared against calibration values (Calibration Values: RightTurn_RoadSign, LeftTurn_RoadSign, Straight_RoadSign), if each of them is found equal, then each of the three corresponding output is compared against the camera input signal,
  • Using a logical operator block, only one among them is finally given as output signal (Signal Name: Vehicle_Direction_Indicator).

Step-5 Requirement Tagging

A MS Word file is created which contain all the requirements and necessary information to develop the model appropiately. This Word file is tagged for both the subsystem requirement1 and Requirement2 respectively.

Step-6 Treat each subsystem as atomic subsystem.

Step-7 Model Advisory Report generation

We do the MAB Check

Step-8 Code Generation

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.