Coverage Report for AHRSControl

Table of Contents

  1. Analysis Information
  2. Tests
  3. Summary
  4. Details

Analysis Information

Model Information

  Model version   1.49
  Author   bpotter
  Last saved   Fri Jul 17 13:48:37 2020

Simulation Optimization Options

  Default parameter behavior   inlined
  Block reduction   off
  Conditional branch optimization   on

Coverage Options

  Analyzed model   AHRSControl
  Logic block short circuiting   off

Tests

Test# Started execution Ended execution Description
Test 1 17-Jul-2020 13:50:50 17-Jul-2020 13:50:55 This model represents a flight control system for a helicopter that controls pitch attitude, roll attitude and yaw rate based on pilot inputs from the cyclic and pedals. The flight control computer also closes the loop on three hydrualic actuators and has sensor inputs from three Attitude/Heading Reference Systems.

Summary

Model Hierarchy/Complexity Test 1  
Decision Execution  
1. AHRSControl 25 96%
   
100%
   
 
2. . . . AHRS_control 24 96%
   
100%
   
 
3. . . . . . . Heli_inner_loop 7 100%
   
100%
   
 
4. . . . . . . . . . Filter 1 100%
   
100%
   
 
5. . . . . . . . . . pitch_feedback 1 100%
   
100%
   
 
6. . . . . . . . . . roll_feedback 1 100%
   
100%
   
 
7. . . . . . . . . . yaw_feedback 1 100%
   
100%
   
 
8. . . . . . . Heli_outer_loop 16 93%
   
100%
   
 
9. . . . . . . . . . Pitch_loop 3 100%
   
100%
   
 
10. . . . . . . . . . Roll_loop 3 100%
   
100%
   
 
11. . . . . . . . . . Yaw_loop 3 100%
   
100%
   
 

Details

1. Model "AHRSControl"

Child Systems: AHRS_control

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 25
Decision NA 96% (44/46) decision outcomes
Execution NA 100% (79/79) objective outcomes

2. SubSystem block "AHRS_control"

Justify or Exclude
Parent: /AHRSControl
Child Systems: Heli_inner_loop,  Heli_outer_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 24
Decision 100% (1/1) decision outcomes 96% (44/46) decision outcomes
Execution NA 100% (79/79) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
FunctionCaller block "Heli_inner_loop_caller" Execution
FunctionCaller block "Heli_outer_loop_caller" Execution
ArgIn block "Pilot_theta_cmd" Execution
ArgIn block "Pilot_phi_cmd" Execution
ArgIn block "Pilot_r_cmd" Execution
ArgIn block "voted_fb" Execution

3. SubSystem block "Heli_inner_loop"

Justify or Exclude
Parent: AHRSControl/AHRS_control
Child Systems: Filter,  pitch_feedback,  roll_feedback,  yaw_feedback

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 7
Decision 100% (1/1) decision outcomes 100% (17/17) decision outcomes
Execution NA 100% (33/33) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
Saturate block "Saturation" Decision, Execution
Gain block "Gain" Execution
FunctionCaller block "pitch_feedback_caller" Execution
FunctionCaller block "roll_feedback_caller" Execution
FunctionCaller block "yaw_feedback_caller" Execution
ArgIn block "theta_cmd" Execution
ArgIn block "phi_cmd" Execution
ArgIn block "r_cmd" Execution
ArgIn block "voted_fb" Execution

4. SubSystem block "Filter"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_inner_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 1
Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
Execution NA 100% (6/6) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 99/99

   Full Coverage

Model Object Metric
Gain block "a_2_1" Execution
Gain block "s_1" Execution
Sum block "SumA21" Execution
Sum block "SumB21" Execution
ArgIn block "Signal" Execution
ArgIn block "prev_FeedbackSum" Execution

5. SubSystem block "pitch_feedback"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_inner_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 1
Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
Execution NA 100% (6/6) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
Gain block "Gain" Execution
Sum block "Sum5" Execution
FunctionCaller block "Filter_caller" Execution
UnitDelay block "Unit Delay" Execution
ArgIn block "theta_cmd" Execution
ArgIn block "voted_fb" Execution

6. SubSystem block "roll_feedback"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_inner_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 1
Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
Execution NA 100% (6/6) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
Gain block "Gain" Execution
Sum block "Sum5" Execution
FunctionCaller block "Filter_caller" Execution
UnitDelay block "Unit Delay" Execution
ArgIn block "phi_cmd" Execution
ArgIn block "voted_fb" Execution

7. SubSystem block "yaw_feedback"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_inner_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 1
Decision 100% (1/1) decision outcomes 100% (1/1) decision outcomes
Execution NA 100% (6/6) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
Gain block "Gain" Execution
Sum block "Sum5" Execution
FunctionCaller block "Filter_caller" Execution
UnitDelay block "Unit Delay" Execution
ArgIn block "r_cmd" Execution
ArgIn block "voted_fb" Execution

8. SubSystem block "Heli_outer_loop"

Justify or Exclude
Parent: AHRSControl/AHRS_control
Child Systems: Pitch_loop,  Roll_loop,  Yaw_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 16
Decision 100% (1/1) decision outcomes 93% (26/28) decision outcomes
Execution NA 100% (40/40) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Saturate block "Saturation1"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_outer_loop

Metric Coverage
Cyclomatic Complexity 2
Decision 50% (2/4) decision outcomes
Execution 100% (1/1) objective outcomes
  Decisions analyzed
  input > lower limit  50%
      false 0/33
      true 33/33
  input >= upper limit  50%
      false 33/33
      true 0/33

   Full Coverage

Model Object Metric
Saturate block "Saturation" Decision, Execution
Saturate block "Saturation2" Decision, Execution
DataTypeConversion block "TypeConversion" Execution
DataTypeConversion block "TypeConversion1" Execution
DataTypeConversion block "TypeConversion2" Execution
Gain block "Scaling" Execution
Gain block "Scaling1" Execution
Gain block "Scaling2" Execution
FunctionCaller block "Pitch_loop_caller" Execution
FunctionCaller block "Roll_loop_caller" Execution
FunctionCaller block "Yaw_loop_caller" Execution
ArgIn block "Pilot_theta_cmd" Execution
ArgIn block "Pilot_phi_cmd" Execution
ArgIn block "Pilot_r_cmd" Execution
ArgIn block "voted_fb" Execution

9. SubSystem block "Pitch_loop"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_outer_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 3
Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
Execution NA 100% (8/8) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
DiscreteIntegrator block "Integrator" Decision, Execution
Gain block "Gain" Execution
Gain block "Gain1" Execution
Gain block "Gain2" Execution
Sum block "Sum" Execution
Sum block "Sum3" Execution
ArgIn block "Pilot_theta_cmd" Execution
ArgIn block "theta" Execution

10. SubSystem block "Roll_loop"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_outer_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 3
Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
Execution NA 100% (8/8) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
DiscreteIntegrator block "Integrator1" Decision, Execution
Gain block "Gain1" Execution
Gain block "Gain2" Execution
Gain block "Gain3" Execution
Sum block "Sum" Execution
Sum block "Sum4" Execution
ArgIn block "Pilot_phi_cmd" Execution
ArgIn block "phi" Execution

11. SubSystem block "Yaw_loop"

Justify or Exclude
Parent: AHRSControl/AHRS_control/Heli_outer_loop

Metric Coverage (this object) Coverage (inc. descendants)
Cyclomatic Complexity 1 3
Decision 100% (1/1) decision outcomes 100% (5/5) decision outcomes
Execution NA 100% (8/8) objective outcomes
  Decisions analyzed
  Function call  100%
      executed 33/33

   Full Coverage

Model Object Metric
DiscreteIntegrator block "Integrator2" Decision, Execution
Gain block "Gain1" Execution
Gain block "Gain4" Execution
Gain block "Gain5" Execution
Sum block "Sum" Execution
Sum block "Sum5" Execution
ArgIn block "Pilot_r_cmd" Execution
ArgIn block "r" Execution