Challenge

Project 2 Adaptive Cruise Control

  1. Developing Adaptive Cruise Control feature as per the Requirement Document using MATLAB Simulink.
  2. Follow all the MBD related processes: Requirement Tagging & Traceability, SLDD creation, Configuration Parameter changes, Model Advisor check & Code Generation.
  3. In Configuration Parameters: enable “Support Floating Numbers” under Code Generation settings.
  4. Use Embedded Coder to generate the code.
  5. 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.
  6. Choose sample time for all signals as 0.01s

Answer:-

As per the requirements we had created a simulink model for adaptive cruise control feature.

Here consist of three requirement subsystems,

Requirement 1:Lead vehicle subsystem.

Requirement 2:Drive vehicle subsystem.

Requirement 3:Adaptive Cruise Control subsystem.

All these modes of operations are modelled as per the given as mentioned in requirements section.

SLDD file creation:

For all the input and output signals resolved and propagated in this model are declared in the SLDD file created as shown below

The signal parameters are declares as per the SLDD datatype requirements mention earlier.Under modelling, Link to data dictionary enables us to create a new SLDD for our model. The SLDD is designed based on the data given:Signal / Calibration Name Signal Type Data

Model setting:

MBD settings includes solver type to be changed to Fixed-step discrete(no continuous states) and fixed step size to 0.01s. Under the code generation the target file is changed to Embedded Codder.

Signal resolving and propogation:

All the signals are resolved like the figue shown below

Model Advisory check:

For the model advisor check of MAB guidelines we are getting the report as shown below

Code Generation for the model:

# CONCLUSION

The simulink model for adaptive cruise control was developed following the requirements given and model advisory checks were done for MAB standards. The advisory report and the code generated are attached with this project report.

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.