Simulink Onramp 13.1 Task 5

20 views (last 30 days)
Yasemin
Yasemin on 10 Oct 2023
Answered: Gyan Vaibhav on 16 Oct 2023
I took an error Project - Peregrine Falcon Dive task 5. I need help

Answers (1)

Gyan Vaibhav
Gyan Vaibhav on 16 Oct 2023
Dear Yasemin,
I noticed that the issue you're encountering isn't related to setting up the initial variable. You've correctly configured the integrator to generate height from velocity, with an initial state of 60 meters. This is the integration constant relevant to the problem and its initial conditions.
Moreover, whenever an assessment is unsuccessful, you'll notice a "Requirements" section on the right pane of the Simulink Onramp window. All the tasks that you've completed will be marked with a green checkmark. However, if there's something you didn't do correctly or missed, it will be marked with a red cross. This feature should help you identify any oversights in the task and correct them.
As for your specific issue, you need to branch the "h" signal to the switch block that you added in the first step. Also, ensure that the condition is set correctly so that it can select the appropriate drag values from the constants.
In the image below, I've highlighted the "Requirements" section in a black box. The correct connection to the Switch block is also shown below.
Hope this helps!

Categories

Find more on Simulink Coder in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!