Model { Name "Discrete_Closed_Loop_Model_74" Version 7.4 MdlSubVersion 0 SavedCharacterEncoding "ISO-8859-1" GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.172" NumModelReferences 0 NumTestPointedSignals 0 } SaveDefaultBlockParams on ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" MaxMDLFileLineLength 120 Created "Wed Jul 04 11:18:47 2012" Creator "David" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "dsaussie" ModifiedDateFormat "%" LastModifiedDate "Tue Jan 28 11:01:57 2014" RTWModifiedTimeStamp 312737747 ModelVersionFormat "1.%" ConfigurationManager "none" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "all" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off ExecutionContextIcon off ShowLinearizationAnnotations on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off BrowserLookUnderMasks off SimulationMode "normal" LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on covSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off ExtModeBatchMode off ExtModeEnableFloating on ExtModeTrigType "manual" ExtModeTrigMode "normal" ExtModeTrigPort "1" ExtModeTrigElement "any" ExtModeTrigDuration 1000 ExtModeTrigDurationFloating "auto" ExtModeTrigHoldOff 0 ExtModeTrigDelay 0 ExtModeTrigDirection "rising" ExtModeTrigLevel 0 ExtModeArchiveMode "off" ExtModeAutoIncOneShot off ExtModeIncDirWhenArm off ExtModeAddSuffixToVar off ExtModeWriteAllDataToWs off ExtModeArmWhenConnect on ExtModeSkipDownloadWhenConnect off ExtModeLogAll on ExtModeAutoUpdateStatusClock on BufferReuse on ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 9 Version "1.6.0" Array { Type "Handle" Dimension 8 Simulink.SolverCC { $ObjectID 10 Version "1.6.0" StartTime "0.0" StopTime "T_final" AbsTol "auto" FixedStep "dt" InitialStep "auto" MaxNumMinSteps "-1" MaxOrder 5 ZcThreshold "auto" ConsecutiveZCsStepRelTol "10*128*eps" MaxConsecutiveZCs "1000" ExtrapolationOrder 4 NumberNewtonIterations 1 MaxStep "auto" MinStep "auto" MaxConsecutiveMinStep "1" RelTol "1e-3" SolverMode "Auto" Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" SolverJacobianMethodControl "auto" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 11 Version "1.6.0" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SaveOutput on SaveState off SignalLogging on InspectSignalLogs off SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" } Simulink.OptimizationCC { $ObjectID 12 Version "1.6.0" Array { Type "Cell" Dimension 8 Cell "BooleansAsBitfields" Cell "PassReuseOutputArgsAs" Cell "PassReuseOutputArgsThreshold" Cell "ZeroExternalMemoryAtStartup" Cell "ZeroInternalMemoryAtStartup" Cell "OptimizeModelRefInitCode" Cell "NoFixptDivByZeroProtection" Cell "UseSpecifiedMinMax" PropName "DisabledProps" } BlockReduction on BooleanDataType on ConditionallyExecuteInputs on InlineParams off UseIntDivNetSlope off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off StrengthReduction off ExpressionFolding on BooleansAsBitfields off EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" ExpressionDepthLimit 2147483647 FoldNonRolledExpr on LocalBlockOutputs on RollThreshold 5 SystemCodeInlineAuto off StateBitsets off DataBitsets off UseTempVars off ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode off LifeSpan "inf" BufferReusableBoundary on SimCompilerOptimization "Off" AccelVerboseBuild off EnforceIntegerDowncast on } Simulink.DebuggingCC { $ObjectID 13 Version "1.6.0" RTPrefix "error" ConsistencyChecking "none" ArrayBoundsChecking "none" SignalInfNanChecking "none" SignalRangeChecking "none" ReadBeforeWriteMsg "UseLocalSettings" WriteAfterWriteMsg "UseLocalSettings" WriteAfterReadMsg "UseLocalSettings" AlgebraicLoopMsg "warning" ArtificialAlgebraicLoopMsg "warning" SaveWithDisabledLinksMsg "warning" SaveWithParameterizedLinksMsg "none" CheckSSInitialOutputMsg on UnderspecifiedInitializationDetection "Classic" MergeDetectMultiDrivingBlocksExec "none" CheckExecutionContextPreStartOutputMsg off CheckExecutionContextRuntimeOutputMsg off SignalResolutionControl "UseLocalSettings" BlockPriorityViolationMsg "warning" MinStepSizeMsg "warning" TimeAdjustmentMsg "none" MaxConsecutiveZCsMsg "error" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "warning" DiscreteInheritContinuousMsg "warning" MultiTaskDSMMsg "warning" MultiTaskCondExecSysMsg "none" MultiTaskRateTransMsg "error" SingleTaskRateTransMsg "none" TasksWithSamePriorityMsg "warning" SigSpecEnsureSampleTimeMsg "warning" CheckMatrixSingularityMsg "none" IntegerOverflowMsg "warning" Int32ToFloatConvMsg "warning" ParameterDowncastMsg "error" ParameterOverflowMsg "error" ParameterUnderflowMsg "none" ParameterPrecisionLossMsg "warning" ParameterTunabilityLossMsg "warning" FixptConstUnderflowMsg "none" FixptConstOverflowMsg "none" FixptConstPrecisionLossMsg "none" UnderSpecifiedDataTypeMsg "none" UnnecessaryDatatypeConvMsg "none" VectorMatrixConversionMsg "none" InvalidFcnCallConnMsg "error" FcnCallInpInsideContextMsg "Enable All" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" EnableOverflowDetection off ModelReferenceIOMsg "none" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" ModelReferenceCSMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" StrictBusMsg "ErrorLevel1" LoggingUnavailableSignals "error" BlockIODiagnostic "none" } Simulink.HardwareCC { $ObjectID 14 Version "1.6.0" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetShiftRightIntArith on TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetTypeEmulationWarnSuppressLevel 0 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "32-bit Generic" TargetUnknown off ProdEqTarget on } Simulink.ModelReferenceCC { $ObjectID 15 Version "1.6.0" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" CheckModelReferenceTargetMessage "error" ModelReferenceNumInstancesAllowed "Multi" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off } Simulink.SFSimCC { $ObjectID 16 Version "1.6.0" SFSimEnableDebug on SFSimOverflowDetection on SFSimEcho on SimBlas on SimCtrlC on SimExtrinsic on SimIntegrity on SimUseLocalCustomCode off SimBuildMode "sf_incremental_build" } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 17 Version "1.6.0" Array { Type "Cell" Dimension 7 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" Cell "GenerateSLWebview" PropName "DisabledProps" } SystemTargetFile "grt.tlc" TLCOptions "" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on TemplateMakefile "grt_default_tmf" PostCodeGenCommand "" Description "" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off ProcessScriptMode "Default" ConfigurationMode "Optimized" ProcessScript "" ConfigurationScript "" ConfigAtBuild off RTWUseLocalCustomCode off RTWUseSimCustomCode off CustomSourceCode "" CustomHeaderCode "" CustomInclude "" CustomSource "" CustomLibrary "" CustomInitializer "" CustomTerminator "" IncludeHyperlinkInReport off LaunchReport off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off IncludeERTFirstTime on GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateCodeInfo off RTWCompilerOptimization "Off" RTWCustomCompilerOptimizations "" CheckMdlBeforeBuild "Off" Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 18 Version "1.6.0" Array { Type "Cell" Dimension 21 Cell "IgnoreCustomStorageClasses" Cell "IgnoreTestpoints" Cell "InsertBlockDesc" Cell "InsertPolySpaceComments" Cell "SFDataObjDesc" Cell "MATLABFcnDesc" Cell "SimulinkDataObjDesc" Cell "DefineNamingRule" Cell "SignalNamingRule" Cell "ParamNamingRule" Cell "InlinedPrmAccess" Cell "CustomSymbolStr" Cell "CustomSymbolStrGlobalVar" Cell "CustomSymbolStrType" Cell "CustomSymbolStrField" Cell "CustomSymbolStrFcn" Cell "CustomSymbolStrFcnArg" Cell "CustomSymbolStrBlkIO" Cell "CustomSymbolStrTmpVar" Cell "CustomSymbolStrMacro" Cell "ReqsInCode" PropName "DisabledProps" } ForceParamTrailComments off GenerateComments on IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off IncDataTypeInIds off MangleLength 1 CustomSymbolStrGlobalVar "$R$N$M" CustomSymbolStrType "$N$R$M_T" CustomSymbolStrField "$N$M" CustomSymbolStrFcn "$R$N$M$F" CustomSymbolStrFcnArg "rt$I$N$M" CustomSymbolStrBlkIO "rtb_$N$M" CustomSymbolStrTmpVar "$N$M" CustomSymbolStrMacro "$R$N$M" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off SimulinkBlockComments on EnableCustomComments off InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 19 Version "1.6.0" Array { Type "Cell" Dimension 17 Cell "GeneratePreprocessorConditionals" Cell "IncludeMdlTerminateFcn" Cell "CombineOutputUpdateFcns" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "MultiInstanceERTCode" Cell "PurelyIntegerCode" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" Cell "PortableWordSizes" Cell "SupportNonFinite" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" TargetPreCompLibLocation "" TargetFunctionLibrary "ANSI_C" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on GenerateSampleERTMain off GenerateTestInterfaces off IsPILTarget off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off EnableShiftOperators on ParenthesesLevel "Nominal" ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant off AutosarCompliant off UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off GenerateASAP2 off } PropName "Components" } } PropName "Components" } Name "Configuration" CurrentDlgPage "Diagnostics/Connectivity" ConfigPrmDlgPosition [ 392, 84, 1288, 848 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 9 } BlockDefaults { ForegroundColor "black" BackgroundColor "white" DropShadow off NamePlacement "normal" FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" ShowName on BlockRotation 0 BlockMirror off } AnnotationDefaults { HorizontalAlignment "center" VerticalAlignment "middle" ForegroundColor "black" BackgroundColor "white" DropShadow off FontName "Helvetica" FontSize 10 FontWeight "normal" FontAngle "normal" UseDisplayTextAsClickCallback off } LineDefaults { FontName "Helvetica" FontSize 9 FontWeight "normal" FontAngle "normal" } BlockParameterDefaults { Block { BlockType ActionPort InitializeStates "held" PropagateVarSize "Only when execution is resumed" ActionType "unset" } Block { BlockType Constant Value "1" VectorParams1D on SamplingMode "Sample based" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit from 'Constant value'" LockScale off SampleTime "inf" FramePeriod "inf" OutDataTypeMode "Inherit from 'Constant value'" OutDataType "fixdt(1,16,0)" ConRadixGroup "Use specified scaling" OutScaling "[]" } Block { BlockType DiscreteIntegrator IntegratorMethod "Integration: Forward Euler" gainval "1.0" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" InitialConditionMode "State and output" SampleTime "1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow off LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" ShowSaturationPort off ShowStatePort off IgnoreLimit off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType DiscreteStateSpace A "1" B "1" C "1" D "1" X0 "0" SampleTime "1" StateMustResolveToSignalObject off RTWStateStorageClass "Auto" Realization "auto" } Block { BlockType Fcn Expr "sin(u[1])" SampleTime "-1" } Block { BlockType FromWorkspace VariableName "simulink_input" SampleTime "-1" Interpolate on ZeroCross off OutputAfterFinalValue "Extrapolation" } Block { BlockType Gain Gain "1" Multiplication "Element-wise(K.*u)" ParamMin "[]" ParamMax "[]" ParamDataTypeStr "Inherit: Same as input" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" ParameterDataTypeMode "Same as input" ParameterDataType "fixdt(1,16,0)" ParameterScalingMode "Best Precision: Matrix-wise" ParameterScaling "[]" OutDataTypeMode "Same as input" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType If NumInputs "1" IfExpression "u1 > 0" ShowElse on ZeroCross on SampleTime "-1" } Block { BlockType Inport Port "1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchByCopyingInsideSignal off Interpolate on UseBusObject off BusObject "BusObject" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Math Operator "exp" OutputSignalType "auto" SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on IntermediateResultsDataTypeStr "Inherit: Inherit via internal rule" AlgorithmType "Newton-Raphson" Iterations "3" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Memory X0 "0" InheritSampleTime off LinearizeMemory off LinearizeAsDelay off StateMustResolveToSignalObject off RTWStateStorageClass "Auto" } Block { BlockType Merge Inputs "2" InitialOutput "[]" AllowUnequalInputPortWidths off InputPortOffsets "[]" } Block { BlockType MultiPortSwitch Inputs "3" zeroidx off InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" AllowDiffInputSizes off OutDataTypeMode "Inherit via internal rule" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Mux Inputs "4" DisplayOption "none" UseBusObject off BusObject "BusObject" NonVirtualBus off } Block { BlockType Outport Port "1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" UseBusObject off BusObject "BusObject" DataType "auto" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType Product Inputs "2" Multiplication "Element-wise(.*)" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Zero" SaturateOnIntegerOverflow on SampleTime "-1" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType RateTransition Integrity on Deterministic on X0 "0" OutPortSampleTimeOpt "Specify" OutPortSampleTimeMultiple "1" OutPortSampleTime "-1" } Block { BlockType Scope ModelBased off TickLabels "OneTimeTick" ZoomMode "on" Grid "on" TimeRange "auto" YMin "-5" YMax "5" SaveToWorkspace off SaveName "ScopeData" DataFormat "Array" LimitDataPoints on MaxDataPoints "5000" Decimation "1" SampleInput off SampleTime "-1" } Block { BlockType Selector NumberOfDimensions "1" IndexMode "One-based" InputPortWidth "-1" SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" MinMaxOverflowLogging "UseLocalSettings" } Block { BlockType Sum IconShape "rectangular" Inputs "++" CollapseMode "All dimensions" CollapseDim "1" InputSameDT on AccumDataTypeStr "Inherit: Inherit via internal rule" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as first input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" OutDataTypeMode "Same as first input" OutDataType "fixdt(1,16,0)" OutScaling "[]" } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SampleTime "0" SaveFormat "Array" FixptAsFi off } Block { BlockType Trigonometry Operator "sin" OutputSignalType "auto" SampleTime "-1" } } System { Name "Discrete_Closed_Loop_Model_74" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "77" ReportName "simulink-default.rpt" SIDHighWatermark 606 Block { BlockType RateTransition Name " Sampler " SID 505 Position [1305, 494, 1345, 536] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_f_Vz" } Block { BlockType Scope Name "Altitude" SID 118 Ports [1] Position [1710, 349, 1740, 381] Floating off Location [80, 145, 1673, 1001] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } TimeRange "200" YMin "9950" YMax "10800" SaveToWorkspace on SaveName "h" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Altitude Hold " SID 1 Ports [2, 1] Position [665, 352, 795, 468] BlockMirror on ForegroundColor "red" BackgroundColor "orange" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Altitude Hold " Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "130" Block { BlockType Inport Name "h c" SID 2 Position [25, 238, 55, 252] IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID 3 Position [25, 338, 55, 352] Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID 573 Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Altitude Capture/Hold" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "140" Block { BlockType Inport Name "h_meas" SID 574 Position [35, 273, 65, 287] IconDisplay "Port number" } Block { BlockType Inport Name "h_c" SID 594 Position [35, 328, 65, 342] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID 600 Position [35, 393, 65, 407] Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID 575 Position [450, 20, 509, 48] InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID 598 Position [365, 372, 585, 408] Expr "u(2) - u(1)*Kp_h" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator1" SID 597 Ports [2, 1] Position [660, 272, 695, 308] ShowName off InitialConditionSource "external" InitialCondition "CI_AltHold" SampleTime "Ts_h" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 5 Position [485, 264, 560, 296] ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID 596 Position [485, 184, 560, 216] ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID 601 Ports [2, 1] Position [320, 371, 325, 409] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID 10 Ports [2, 1] Position [740, 190, 760, 210] ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID 593 Ports [2, 1] Position [210, 270, 230, 290] ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID 576 Position [1070, 193, 1100, 207] IconDisplay "Port number" } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time Integrator1" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { SrcBlock "CI_AltHold" SrcPort 1 Points [20, 0; 0, -90] DstBlock "Discrete-Time Integrator1" DstPort 2 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { Points [165, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Discrete-Time Integrator1" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID 566 Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Climb command" Location [-1803, 45, -239, 954] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID 568 Position [170, 15, 229, 43] PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID 572 Position [155, 70, 210, 100] ShowName off Value "Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID 569 Position [325, 78, 355, 92] IconDisplay "Port number" } Line { SrcBlock "h_switch2" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType SubSystem Name "Descent command" SID 578 Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] TreatAsAtomicUnit on MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Descent command" Location [-1803, 45, -239, 954] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID 580 Position [170, 15, 229, 43] InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID 577 Position [80, 70, 135, 100] ShowName off Value "-Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID 581 Position [325, 78, 355, 92] IconDisplay "Port number" } Line { SrcBlock "h_switch4" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType If Name "Logic\nVert. Speed Command\n/ Altitude Hold" SID 570 Ports [1, 3] Position [210, 210, 335, 280] IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID 602 Position [630, 455, 660, 485] BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID 589 Ports [3, 1] Position [725, 255, 765, 295] Inputs "3" } Block { BlockType Sum Name "Sum3" SID 561 Ports [2, 1] Position [110, 235, 130, 255] ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID 15 Position [910, 268, 940, 282] IconDisplay "Port number" } Line { SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { Points [0, 110] DstBlock "Altitude Capture/Hold" DstPort 2 } Branch { DstBlock "Sum3" DstPort 1 } } Line { SrcBlock "h meas" SrcPort 1 Points [60, 0] Branch { DstBlock "Sum3" DstPort 2 } Branch { DstBlock "Altitude Capture/Hold" DstPort 1 } } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Logic\nVert. Speed Command\n/ Altitude Hold" DstPort 1 } Line { SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 1 Points [24, 0; 0, -53] DstBlock "Climb command" DstPort ifaction } Line { SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 3 Points [0, 52] DstBlock "Altitude Capture/Hold" DstPort ifaction } Line { SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 2 Points [225, 0] DstBlock "Descent command" DstPort ifaction } Line { SrcBlock "Descent command" SrcPort 1 DstBlock "Merge" DstPort 2 } Line { SrcBlock "Climb command" SrcPort 1 Points [12, 0; 0, 60] DstBlock "Merge" DstPort 1 } Line { SrcBlock "Altitude Capture/Hold" SrcPort 1 Points [12, 0; 0, -65] DstBlock "Merge" DstPort 3 } Line { SrcBlock "Merge" SrcPort 1 Points [83, 0] Branch { Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { DstBlock "Vz_c" DstPort 1 } } Line { SrcBlock "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } } } Block { BlockType SubSystem Name "Elevator " SID 403 Ports [1, 1] Position [450, 236, 585, 284] BackgroundColor "green" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Elevator " Location [-1768, 22, -88, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "delta_e_c" SID 404 Position [140, 218, 170, 232] IconDisplay "Port number" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID 547 Ports [1, 1] Position [580, 207, 615, 243] InitialCondition "CI_de" SampleTime "dt_dx" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 406 Position [555, 90, 620, 120] ShowName off Gain "D_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Gain Name "Gain1" SID 407 Position [360, 210, 425, 240] ShowName off Gain "B_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Gain Name "Gain2" SID 408 Position [560, 370, 625, 400] BlockMirror on ShowName off Gain "A_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Gain Name "Gain3" SID 409 Position [785, 210, 850, 240] ShowName off Gain "C_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum" SID 410 Ports [2, 1] Position [450, 215, 470, 235] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" SID 411 Ports [2, 1] Position [905, 215, 925, 235] ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "delta_e" SID 412 Position [1030, 218, 1060, 232] IconDisplay "Port number" } Line { SrcBlock "delta_e_c" SrcPort 1 Points [150, 0] Branch { Points [0, -120] DstBlock "Gain" DstPort 1 } Branch { DstBlock "Gain1" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "delta_e" DstPort 1 } Line { SrcBlock "Discrete-Time Integrator" SrcPort 1 Points [112, 0] Branch { Points [0, 160] DstBlock "Gain2" DstPort 1 } Branch { DstBlock "Gain3" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [290, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [-95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Annotation { Name "Commanded elevator\ndeflection" Position [203, 277] VerticalAlignment "top" } Annotation { Name "Elevator deflection" Position [1087, 272] VerticalAlignment "top" } } } Block { BlockType SubSystem Name "Engine" SID 391 Ports [1, 1] Position [455, 104, 585, 156] BackgroundColor "[0.000000, 0.819608, 0.000000]" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Engine" Location [-6, 22, 1680, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "delta_x_c" SID 392 Position [100, 208, 130, 222] IconDisplay "Port number" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID 546 Ports [1, 1] Position [470, 197, 505, 233] InitialCondition "CI_dx" SampleTime "dt_dx" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 394 Position [450, 80, 515, 110] ShowName off Gain "D_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Gain Name "Gain1" SID 395 Position [255, 200, 320, 230] ShowName off Gain "B_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Gain Name "Gain2" SID 396 Position [455, 360, 520, 390] BlockMirror on ShowName off Gain "A_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Gain Name "Gain3" SID 397 Position [680, 200, 745, 230] ShowName off Gain "C_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum" SID 398 Ports [2, 1] Position [345, 205, 365, 225] ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Sum Name "Sum1" SID 399 Ports [2, 1] Position [800, 205, 820, 225] ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Outport Name "T" SID 400 Position [925, 208, 955, 222] IconDisplay "Port number" } Line { SrcBlock "delta_x_c" SrcPort 1 Points [85, 0] Branch { Points [0, -120] DstBlock "Gain" DstPort 1 } Branch { DstBlock "Gain1" DstPort 1 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "T" DstPort 1 } Line { SrcBlock "Discrete-Time Integrator" SrcPort 1 Points [117, 0] Branch { Points [0, 160] DstBlock "Gain2" DstPort 1 } Branch { DstBlock "Gain3" DstPort 1 } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 Points [290, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 Points [-95, 0] DstBlock "Sum" DstPort 2 } Line { SrcBlock "Gain3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Annotation { Name "Throttle" Position [116, 261] HorizontalAlignment "left" VerticalAlignment "top" } Annotation { Name "Thrust" Position [943, 259] HorizontalAlignment "left" VerticalAlignment "top" } } } Block { BlockType SubSystem Name "Flight Dynamics " SID 415 Ports [2, 5] Position [800, 166, 930, 224] BackgroundColor "[0.000000, 0.819608, 0.000000]" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Flight Dynamics " Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "172" Block { BlockType Inport Name "T" SID 416 Position [40, 63, 70, 77] ShowName off IconDisplay "Signal name" } Block { BlockType Inport Name "delta_e" SID 417 Position [40, 243, 70, 257] Port "2" IconDisplay "Port number" } Block { BlockType Fcn Name "Airspeed Va " SID 418 Position [730, 85, 790, 115] Expr "sqrt(u(1)^2+u(2)^2)" } Block { BlockType Fcn Name "Altitude h" SID 419 Position [730, 305, 790, 335] Expr "u(5)" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID 548 Ports [1, 1] Position [495, 262, 530, 298] InitialCondition "CI_FD" SampleTime "dt_dx" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType SubSystem Name "Flight Dynamics Model" SID 421 Ports [1, 2] Position [285, 192, 440, 308] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Flight Dynamics Model" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "128" Block { BlockType Inport Name "x" SID 422 Position [35, 208, 65, 222] IconDisplay "Port number" } Block { BlockType SubSystem Name "Aerodynamic Coefficients" SID 423 Ports [4, 3] Position [370, 246, 485, 309] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Aerodynamic Coefficients" Location [19, 22, 1699, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "de" SID 424 Position [55, 108, 85, 122] IconDisplay "Port number" } Block { BlockType Inport Name "alpha" SID 425 Position [55, 193, 85, 207] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q" SID 426 Position [55, 613, 85, 627] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "V" SID 427 Position [55, 713, 85, 727] Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "CD0" SID 428 Position [315, 15, 345, 45] ShowName off Value "CD_0" } Block { BlockType Constant Name "Cm0" SID 429 Position [320, 450, 350, 480] ShowName off Value "Cm_0" } Block { BlockType Gain Name "Gain" SID 430 Position [315, 92, 410, 138] ShowName off Gain "CD_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID 431 Position [315, 173, 385, 227] ShowName off Gain "CD_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID 432 Position [315, 287, 385, 333] ShowName off Gain "CL_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" SID 433 Position [315, 368, 385, 422] ShowName off Gain "CL_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID 434 Position [320, 512, 395, 558] ShowName off Gain "Cm_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID 435 Position [320, 573, 390, 627] ShowName off Gain "Cm_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" SID 436 Position [320, 648, 390, 702] ShowName off Gain "Cm_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID 437 Position [225, 648, 295, 702] ShowName off Gain "cbar/2" SaturateOnIntegerOverflow off } Block { BlockType Math Name "Math\nFunction" SID 438 Ports [1, 1] Position [215, 185, 245, 215] Operator "magnitude^2" } Block { BlockType Product Name "Product" SID 439 Ports [2, 1] Position [175, 657, 205, 688] Inputs "*/" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID 440 Ports [3, 1] Position [495, 105, 515, 125] ShowName off IconShape "round" Inputs "+++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID 441 Ports [2, 1] Position [125, 190, 145, 210] ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" SID 442 Ports [2, 1] Position [495, 300, 515, 320] ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" SID 443 Ports [4, 1] Position [500, 555, 520, 575] ShowName off IconShape "round" Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Constant Name "alpha0" SID 444 Position [40, 255, 85, 285] Value "alpha_0" } Block { BlockType Outport Name "CD\nDrag coefficient" SID 445 Position [580, 108, 610, 122] IconDisplay "Port number" } Block { BlockType Outport Name "CL\nLift coefficient" SID 446 Position [580, 303, 610, 317] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Cm\nPitching coefficient" SID 447 Position [580, 558, 610, 572] Port "3" IconDisplay "Port number" } Line { SrcBlock "de" SrcPort 1 Points [90, 0] Branch { DstBlock "Gain" DstPort 1 } Branch { Points [0, 195] Branch { DstBlock "Gain2" DstPort 1 } Branch { Points [0, 225] DstBlock "Gain4" DstPort 1 } } } Line { SrcBlock "CD0" SrcPort 1 Points [155, 0] DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Gain1" SrcPort 1 Points [115, 0] DstBlock "Sum" DstPort 3 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "CD\nDrag coefficient" DstPort 1 } Line { SrcBlock "alpha" SrcPort 1 Points [10, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { Points [0, 400] DstBlock "Gain5" DstPort 1 } } Line { SrcBlock "alpha0" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum1" SrcPort 1 Points [15, 0] Branch { DstBlock "Math\nFunction" DstPort 1 } Branch { Points [0, 195] DstBlock "Gain3" DstPort 1 } } Line { SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain3" SrcPort 1 Points [115, 0] DstBlock "Sum2" DstPort 2 } Line { SrcBlock "Sum2" SrcPort 1 DstBlock "CL\nLift coefficient" DstPort 1 } Line { SrcBlock "Gain2" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { SrcBlock "Cm0" SrcPort 1 Points [155, 0] DstBlock "Sum3" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 Points [89, 0] DstBlock "Sum3" DstPort 2 } Line { SrcBlock "Gain5" SrcPort 1 Points [94, 0] DstBlock "Sum3" DstPort 3 } Line { SrcBlock "Sum3" SrcPort 1 DstBlock "Cm\nPitching coefficient" DstPort 1 } Line { SrcBlock "Gain6" SrcPort 1 Points [115, 0] DstBlock "Sum3" DstPort 4 } Line { SrcBlock "q" SrcPort 1 Points [35, 0; 0, 45] DstBlock "Product" DstPort 1 } Line { SrcBlock "V" SrcPort 1 Points [35, 0; 0, -40] DstBlock "Product" DstPort 2 } Line { SrcBlock "Product" SrcPort 1 DstBlock "Gain7" DstPort 1 } Line { SrcBlock "Gain7" SrcPort 1 DstBlock "Gain6" DstPort 1 } } } Block { BlockType SubSystem Name "Aerodynamic Forces\nand Moment" SID 448 Ports [5, 3] Position [550, 168, 700, 232] MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Aerodynamic Forces\nand Moment" Location [-1803, 45, -239, 954] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "alpha" SID 449 Position [55, 128, 85, 142] IconDisplay "Port number" } Block { BlockType Inport Name "CD" SID 450 Position [55, 28, 85, 42] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "CL" SID 451 Position [55, 253, 85, 267] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Cm" SID 452 Position [55, 373, 85, 387] Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "qbar" SID 453 Position [55, 478, 85, 492] Port "5" IconDisplay "Port number" } Block { BlockType Gain Name "Gain1" SID 454 Position [235, 458, 305, 512] ShowName off Gain "S" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID 455 Position [235, 353, 305, 407] ShowName off Gain "cbar" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" SID 456 Ports [2, 1] Position [255, 27, 285, 58] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" SID 457 Ports [2, 1] Position [255, 92, 285, 123] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" SID 458 Ports [2, 1] Position [255, 172, 285, 203] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" SID 459 Ports [2, 1] Position [255, 237, 285, 268] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product5" SID 460 Ports [2, 1] Position [615, 127, 645, 158] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product6" SID 461 Ports [2, 1] Position [615, 287, 645, 318] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product7" SID 462 Ports [2, 1] Position [615, 462, 645, 493] ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID 463 Ports [2, 1] Position [390, 205, 410, 225] ShowName off IconShape "round" Inputs "-+" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" SID 464 Ports [2, 1] Position [340, 65, 360, 85] ShowName off IconShape "round" Inputs "--" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Trigonometry Name "Trigonometric\nFunction" SID 465 Ports [1, 1] Position [140, 100, 170, 130] ShowName off } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" SID 466 Ports [1, 1] Position [140, 140, 170, 170] ShowName off Operator "cos" } Block { BlockType Outport Name "Xa\nXb-force\n" SID 467 Position [730, 138, 760, 152] IconDisplay "Port number" } Block { BlockType Outport Name "Za\nZb-force" SID 468 Position [730, 298, 760, 312] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Ma\nPitching moment" SID 469 Position [730, 473, 760, 487] Port "3" IconDisplay "Port number" } Line { SrcBlock "Product5" SrcPort 1 DstBlock "Xa\nXb-force\n" DstPort 1 } Line { SrcBlock "Product6" SrcPort 1 DstBlock "Za\nZb-force" DstPort 1 } Line { SrcBlock "Product7" SrcPort 1 DstBlock "Ma\nPitching moment" DstPort 1 } Line { SrcBlock "alpha" SrcPort 1 Points [15, 0] Branch { Points [0, -20] DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { Points [0, 20] DstBlock "Trigonometric\nFunction1" DstPort 1 } } Line { SrcBlock "CD" SrcPort 1 Points [130, 0] Branch { DstBlock "Product1" DstPort 1 } Branch { Points [0, 65] DstBlock "Product2" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [30, 0] Branch { Points [0, -65] DstBlock "Product1" DstPort 2 } Branch { Points [0, 130] DstBlock "Product4" DstPort 1 } } Line { SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [45, 0] Branch { Points [0, -40] DstBlock "Product2" DstPort 2 } Branch { Points [0, 25] DstBlock "Product3" DstPort 1 } } Line { SrcBlock "CL" SrcPort 1 Points [130, 0] Branch { DstBlock "Product4" DstPort 2 } Branch { Points [0, -65] DstBlock "Product3" DstPort 2 } } Line { SrcBlock "Product4" SrcPort 1 Points [110, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Product2" SrcPort 1 Points [110, 0] DstBlock "Sum1" DstPort 1 } Line { SrcBlock "Product1" SrcPort 1 Points [60, 0] DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Product3" SrcPort 1 Points [60, 0] DstBlock "Sum4" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 Points [155, 0; 0, 220] DstBlock "Product6" DstPort 1 } Line { SrcBlock "Cm" SrcPort 1 DstBlock "Gain7" DstPort 1 } Line { SrcBlock "Gain7" SrcPort 1 Points [290, 0] DstBlock "Product7" DstPort 1 } Line { SrcBlock "Sum1" SrcPort 1 Points [55, 0; 0, -80] DstBlock "Product5" DstPort 1 } Line { SrcBlock "qbar" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 Points [250, 0] Branch { Points [20, 0] Branch { DstBlock "Product7" DstPort 2 } Branch { Points [0, -175] DstBlock "Product6" DstPort 2 } } Branch { Points [0, -335] DstBlock "Product5" DstPort 2 } } } } Block { BlockType Gain Name "Gain" SID 542 Position [1045, 20, 1100, 50] Gain "180/pi" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off ParameterDataTypeMode "Inherit via internal rule" OutDataTypeMode "Inherit via internal rule" } Block { BlockType Mux Name "Mux" SID 470 Ports [5, 1] Position [1140, 386, 1145, 464] ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" SID 471 Ports [2, 1] Position [335, 36, 340, 154] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" SID 472 Ports [3, 1] Position [730, 169, 735, 231] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" SID 473 Ports [2, 1] Position [785, 394, 790, 456] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope" SID 538 Ports [1] Position [1170, 19, 1200, 51] Floating off Location [188, 390, 512, 629] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.001" YMax "0.011" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Scope1" SID 543 Ports [1] Position [370, 4, 400, 36] Floating off Location [1, 71, 1681, 1016] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-0.001" YMax "0.011" SaveName "ScopeData3" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Sum Name "Sum" SID 539 Ports [2, 1] Position [1000, 25, 1020, 45] ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off OutDataTypeMode "Inherit via internal rule" } Block { BlockType Fcn Name "V\nAirspeed" SID 474 Position [185, 110, 245, 140] Expr "sqrt(u(3)^2+u(4)^2)" } Block { BlockType Fcn Name "alpha\nAngle of attack" SID 475 Position [185, 165, 245, 195] Expr "atan(u(4)/u(3))" } Block { BlockType Selector Name "de\nElevator deflection" SID 476 Ports [1, 1] Position [195, 236, 235, 274] InputPortWidth "7" IndexOptions "Index vector (dialog)" Indices "[2]" OutputSizes "1" } Block { BlockType Fcn Name "hdot" SID 477 Position [850, 510, 1030, 540] Expr "u(3)*sin(u(6))-u(4)*cos(u(6))" } Block { BlockType Selector Name "q\nPitch rate" SID 478 Ports [1, 1] Position [195, 306, 235, 344] InputPortWidth "7" IndexOptions "Index vector (dialog)" Indices "[5]" OutputSizes "1" } Block { BlockType Fcn Name "qbar\nDynamic pressure" SID 479 Position [395, 80, 455, 110] Expr "0.5*u(1)*u(2)^2" } Block { BlockType Fcn Name "qdot" SID 480 Position [850, 410, 1030, 440] Expr "1/I_y*u(10)" } Block { BlockType Fcn Name "rho\nAir density" SID 481 Position [185, 50, 245, 80] Expr "rho0*(1+T0_h/T0_0*u(7))^(-g0/(Rs*T0_h)-1)" } Block { BlockType Fcn Name "theta" SID 541 Position [915, 22, 965, 48] Expr "u(6)" } Block { BlockType Fcn Name "thetadot" SID 482 Position [850, 460, 1030, 490] Expr "u(5)" } Block { BlockType Fcn Name "udot" SID 483 Position [850, 310, 1030, 340] Expr "-g0*sin(u(6))-u(5)*u(4)+1/mass*(u(1)+u(8))" } Block { BlockType Fcn Name "wdot" SID 484 Position [850, 361, 1030, 389] Expr "g0*cos(u(6))+u(5)*u(3)+1/mass*u(9)" } Block { BlockType Outport Name "Za" SID 485 Position [1170, 93, 1200, 107] IconDisplay "Port number" } Block { BlockType Outport Name "xdot" SID 486 Position [1170, 418, 1200, 432] Port "2" IconDisplay "Port number" } Line { SrcBlock "udot" SrcPort 1 Points [70, 0; 0, 70] DstBlock "Mux" DstPort 1 } Line { SrcBlock "wdot" SrcPort 1 Points [50, 0; 0, 35] DstBlock "Mux" DstPort 2 } Line { SrcBlock "qdot" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { SrcBlock "thetadot" SrcPort 1 Points [50, 0; 0, -35] DstBlock "Mux" DstPort 4 } Line { SrcBlock "hdot" SrcPort 1 Points [65, 0; 0, -70] DstBlock "Mux" DstPort 5 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "xdot" DstPort 1 } Line { SrcBlock "x" SrcPort 1 Points [35, 0] Branch { Points [0, 40] Branch { DstBlock "de\nElevator deflection" DstPort 1 } Branch { Points [0, 70] Branch { DstBlock "q\nPitch rate" DstPort 1 } Branch { Points [0, 85] DstBlock "Mux3" DstPort 1 } } } Branch { Points [0, -35] Branch { Points [0, -55] Branch { Points [0, -60] DstBlock "rho\nAir density" DstPort 1 } Branch { DstBlock "V\nAirspeed" DstPort 1 } } Branch { DstBlock "alpha\nAngle of attack" DstPort 1 } } } Line { SrcBlock "rho\nAir density" SrcPort 1 Points [53, 0] Branch { Points [0, -45] DstBlock "Scope1" DstPort 1 } Branch { DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "V\nAirspeed" SrcPort 1 Points [55, 0] Branch { DstBlock "Mux1" DstPort 2 } Branch { Points [0, 175] DstBlock "Aerodynamic Coefficients" DstPort 4 } } Line { SrcBlock "Mux1" SrcPort 1 DstBlock "qbar\nDynamic pressure" DstPort 1 } Line { SrcBlock "de\nElevator deflection" SrcPort 1 DstBlock "Aerodynamic Coefficients" DstPort 1 } Line { SrcBlock "alpha\nAngle of attack" SrcPort 1 Points [100, 0] Branch { Points [143, 0] Branch { DstBlock "Aerodynamic Forces\nand Moment" DstPort 1 } Branch { Points [0, 65; 517, 0] DstBlock "Sum" DstPort 2 } } Branch { Points [0, 90] DstBlock "Aerodynamic Coefficients" DstPort 2 } } Line { SrcBlock "q\nPitch rate" SrcPort 1 Points [75, 0; 0, -40] DstBlock "Aerodynamic Coefficients" DstPort 3 } Line { SrcBlock "qbar\nDynamic pressure" SrcPort 1 Points [70, 0; 0, 125] DstBlock "Aerodynamic Forces\nand Moment" DstPort 5 } Line { SrcBlock "Aerodynamic Coefficients" SrcPort 1 Points [10, 0; 0, -70] DstBlock "Aerodynamic Forces\nand Moment" DstPort 2 } Line { SrcBlock "Aerodynamic Coefficients" SrcPort 2 Points [20, 0; 0, -80] DstBlock "Aerodynamic Forces\nand Moment" DstPort 3 } Line { SrcBlock "Aerodynamic Coefficients" SrcPort 3 Points [30, 0; 0, -90] DstBlock "Aerodynamic Forces\nand Moment" DstPort 4 } Line { SrcBlock "Aerodynamic Forces\nand Moment" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { SrcBlock "Aerodynamic Forces\nand Moment" SrcPort 2 Points [5, 0] Branch { Points [0, -100] DstBlock "Za" DstPort 1 } Branch { DstBlock "Mux2" DstPort 2 } } Line { SrcBlock "Aerodynamic Forces\nand Moment" SrcPort 3 DstBlock "Mux2" DstPort 3 } Line { SrcBlock "Mux2" SrcPort 1 Points [15, 0; 0, 240] DstBlock "Mux3" DstPort 2 } Line { SrcBlock "Mux3" SrcPort 1 Points [35, 0] Branch { Points [0, -50] Branch { Points [0, -50] Branch { Points [0, -290] DstBlock "theta" DstPort 1 } Branch { DstBlock "udot" DstPort 1 } } Branch { DstBlock "wdot" DstPort 1 } } Branch { DstBlock "qdot" DstPort 1 } Branch { Points [0, 50] Branch { DstBlock "thetadot" DstPort 1 } Branch { Points [0, 50] DstBlock "hdot" DstPort 1 } } } Line { SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "theta" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Scope" DstPort 1 } } } Block { BlockType Mux Name "Mux" SID 487 Ports [3, 1] Position [140, 231, 145, 269] ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" SID 488 Ports [2, 1] Position [605, 191, 610, 229] ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "Norm. Acc. az " SID 490 Position [730, 140, 790, 170] Expr "g0*cos(u(4))+1/mass*u(6)" } Block { BlockType Fcn Name "Pitch Rate q " SID 489 Position [730, 195, 790, 225] Expr "u(3)" } Block { BlockType Fcn Name "Vert. Speed Vz" SID 491 Position [730, 250, 790, 280] Expr "u(2)*cos(u(4))-u(1)*sin(u(4))" } Block { BlockType Outport Name "Va" SID 492 Position [895, 93, 925, 107] IconDisplay "Port number" } Block { BlockType Outport Name "az" SID 493 Position [895, 148, 925, 162] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "q" SID 494 Position [895, 203, 925, 217] Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Vz" SID 495 Position [895, 258, 925, 272] Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "h" SID 496 Position [895, 313, 925, 327] Port "5" IconDisplay "Port number" } Line { SrcBlock "delta_e" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { SrcBlock "Discrete-Time Integrator" SrcPort 1 Points [45, 0] Branch { Points [0, 135; -455, 0] DstBlock "Mux" DstPort 3 } Branch { Points [0, -80] DstBlock "Mux1" DstPort 1 } } Line { SrcBlock "T" SrcPort 1 Points [50, 0] DstBlock "Mux" DstPort 1 } Line { SrcBlock "Mux" SrcPort 1 DstBlock "Flight Dynamics Model" DstPort 1 } Line { SrcBlock "Flight Dynamics Model" SrcPort 2 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { SrcBlock "Altitude h" SrcPort 1 DstBlock "h" DstPort 1 } Line { SrcBlock "Vert. Speed Vz" SrcPort 1 DstBlock "Vz" DstPort 1 } Line { SrcBlock "Pitch Rate q " SrcPort 1 DstBlock "q" DstPort 1 } Line { SrcBlock "Norm. Acc. az " SrcPort 1 DstBlock "az" DstPort 1 } Line { SrcBlock "Airspeed Va " SrcPort 1 DstBlock "Va" DstPort 1 } Line { SrcBlock "Flight Dynamics Model" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { SrcBlock "Mux1" SrcPort 1 Points [50, 0] Branch { DstBlock "Pitch Rate q " DstPort 1 } Branch { Points [0, -55] Branch { DstBlock "Norm. Acc. az " DstPort 1 } Branch { Points [0, -55] DstBlock "Airspeed Va " DstPort 1 } } Branch { Points [0, 55] Branch { DstBlock "Vert. Speed Vz" DstPort 1 } Branch { Points [0, 55] DstBlock "Altitude h" DstPort 1 } } } Annotation { Name "T" Position [52, 83] HorizontalAlignment "left" VerticalAlignment "top" } } } Block { BlockType Constant Name "Flight Mode" SID 553 Position [450, 330, 525, 360] BlockMirror on ForegroundColor "red" BackgroundColor "yellow" Value "Flight_Mode" SampleTime "Ts_K2" } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID 560 Ports [3, 1] Position [345, 430, 395, 490] BlockMirror on ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition10" SID 311 Position [270, 604, 310, 646] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition11" SID 312 Position [270, 764, 310, 806] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition12" SID 313 Position [270, 709, 310, 751] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition13" SID 314 Position [245, 109, 285, 151] ForegroundColor "red" ShowName off X0 "delta_x_eq" OutPortSampleTimeMultiple "Ts_s" OutPortSampleTime "dt_dx" } Block { BlockType RateTransition Name "Rate Transition14" SID 315 Position [245, 239, 285, 281] ForegroundColor "red" ShowName off X0 "delta_e_eq" OutPortSampleTime "dt_de" } Block { BlockType RateTransition Name "Rate Transition15" SID 366 Position [270, 549, 310, 591] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition16" SID 367 Position [270, 819, 310, 861] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition17" SID 369 Position [270, 494, 310, 536] BlockMirror on ForegroundColor "red" NamePlacement "alternate" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition5" SID 319 Position [830, 419, 870, 461] BlockMirror on ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition6" SID 307 Position [505, 389, 545, 431] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTimeMultiple "5" OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition7" SID 308 Position [830, 359, 870, 401] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition9" SID 368 Position [270, 874, 310, 916] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Sampler" SID 515 Position [1305, 419, 1345, 461] BlockMirror on ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_f_h" } Block { BlockType RateTransition Name "Sampler1" SID 525 Position [1305, 559, 1345, 601] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_f_q" } Block { BlockType RateTransition Name "Sampler2" SID 510 Position [1305, 629, 1345, 671] BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_f_az" } Block { BlockType RateTransition Name "Sampler3" SID 500 Position [1305, 704, 1345, 746] BlockMirror on ForegroundColor "red" ShowName off X0 "Va_eq" OutPortSampleTime "Ts_f_Va" } Block { BlockType Scope Name "T" SID 255 Ports [1] Position [730, 114, 760, 146] Floating off Location [54, 130, 1666, 986] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "10094" YMax "10100.5" SaveToWorkspace on SaveName "ScopeData1" LimitDataPoints off SampleTime "0" } Block { BlockType Scope Name "Throttle" SID 554 Ports [1] Position [475, 44, 505, 76] Floating off Location [54, 130, 1666, 986] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "10094" YMax "10100.5" SaveToWorkspace on SaveName "ScopeData4" LimitDataPoints off SampleTime "0" } Block { BlockType ToWorkspace Name "To Workspace1" SID 344 Ports [1] Position [325, 45, 410, 75] ShowName off VariableName "data_delta_x_c" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace2" SID 345 Ports [1] Position [325, 200, 410, 230] ShowName off VariableName "data_delta_e_c" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace3" SID 348 Ports [1] Position [1685, 20, 1770, 50] ShowName off VariableName "data_h" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace4" SID 349 Ports [1] Position [1685, 55, 1770, 85] ShowName off VariableName "data_Vz" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace5" SID 350 Ports [1] Position [1685, 90, 1770, 120] ShowName off VariableName "data_q" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace6" SID 351 Ports [1] Position [1685, 125, 1770, 155] ShowName off VariableName "data_az" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace7" SID 352 Ports [1] Position [1685, 160, 1770, 190] ShowName off VariableName "data_Va" MaxDataPoints "inf" SampleTime "-1" } Block { BlockType Scope Name "Va" SID 119 Ports [1] Position [1710, 239, 1740, 271] Floating off Location [267, 71, 1555, 887] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } SaveName "ScopeData2" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Va filter" SID 497 Ports [1, 1] Position [1135, 699, 1265, 751] BlockMirror on ForegroundColor "red" BackgroundColor "[0.380392, 0.741176, 0.988235]" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Va filter" Location [-1853, 22, -263, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Va" SID 498 Position [85, 38, 115, 52] IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID 499 Position [280, 26, 390, 64] A "Az_Va" B "Bz_Va" C "Cz_Va" D "Dz_Va" X0 "CIz_Va" SampleTime "Ts_f_Va" } Block { BlockType Outport Name "Va meas" SID 501 Position [545, 38, 575, 52] IconDisplay "Port number" } Line { SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "Va meas" DstPort 1 } Line { SrcBlock "Va" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "Va speed control" SID 131 Ports [4, 1] Position [75, 698, 210, 927] BlockMirror on ForegroundColor "red" BackgroundColor "orange" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Va speed control" Location [56, 22, 1920, 1080] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "161" Block { BlockType Inport Name "Va c" SID 132 Position [140, 68, 170, 82] IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID 133 Position [140, 183, 170, 197] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID 135 Position [140, 288, 170, 302] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID 136 Position [140, 393, 170, 407] Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID 269 Position [355, 120, 410, 150] Value "delta_x_eq" SampleTime "Ts_K1" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID 282 Ports [2, 1] Position [500, 67, 535, 103] InitialConditionSource "external" SampleTime "Ts_K1" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 138 Position [355, 174, 430, 206] ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID 139 Position [355, 59, 430, 91] ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID 142 Position [355, 279, 430, 311] ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID 143 Position [355, 384, 430, 416] ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID 144 Ports [4, 1] Position [620, 34, 655, 451] ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum1" SID 145 Ports [2, 1] Position [290, 180, 310, 200] ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum4" SID 147 Ports [2, 1] Position [225, 65, 245, 85] ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Scope Name "Throttle" SID 558 Ports [1] Position [795, 159, 825, 191] Floating off Location [54, 130, 1666, 986] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "10094" YMax "10100.5" SaveToWorkspace on SaveName "ScopeData5" LimitDataPoints off SampleTime "0" } Block { BlockType Constant Name "Va eq" SID 271 Position [125, 225, 180, 255] Value "Va_eq" SampleTime "Ts_K1" } Block { BlockType Outport Name "delta_x_c" SID 149 Position [875, 238, 905, 252] IconDisplay "Port number" } Line { SrcBlock "Va meas" SrcPort 1 Points [60, 0] Branch { DstBlock "Sum1" DstPort 1 } Branch { DstBlock "Sum4" DstPort 2 } } Line { SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Va c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { SrcBlock "Sum" SrcPort 1 Points [98, 0] Branch { Points [0, -70] DstBlock "Throttle" DstPort 1 } Branch { DstBlock "delta_x_c" DstPort 1 } } Line { SrcBlock "Constant" SrcPort 1 Points [33, 0; 0, -40] DstBlock "Discrete-Time Integrator" DstPort 2 } Line { SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType Scope Name "Vz" SID 388 Ports [1] Position [1710, 294, 1740, 326] Floating off Location [385, 81, 1490, 937] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "-7" YMax "0.5" SaveToWorkspace on SaveName "h2" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "Vz filter " SID 502 Ports [1, 1] Position [1135, 489, 1265, 541] BlockMirror on ForegroundColor "red" BackgroundColor "[0.380392, 0.741176, 0.988235]" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Vz filter " Location [-6, 22, 1680, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Vz" SID 503 Position [85, 38, 115, 52] IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID 504 Position [250, 26, 360, 64] A "Az_Vz" B "Bz_Vz" C "Cz_Vz" D "Dz_Vz" X0 "CIz_Vz" SampleTime "Ts_f_Vz" } Block { BlockType Outport Name "Vz meas" SID 506 Position [545, 38, 575, 52] IconDisplay "Port number" } Line { SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "Vz meas" DstPort 1 } Line { SrcBlock "Vz" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID 154 Ports [4, 1] Position [75, 428, 210, 657] BlockMirror on ForegroundColor "red" BackgroundColor "orange" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "Vz speed control" Location [-6, 22, 1680, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "131" Block { BlockType Inport Name "Vz c" SID 155 Position [175, 118, 205, 132] IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID 156 Position [175, 243, 205, 257] Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID 158 Position [175, 358, 205, 372] Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID 159 Position [175, 473, 205, 487] Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID 390 Position [470, 175, 525, 205] Value "delta_e_eq" SampleTime "Ts_K2" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID 281 Ports [2, 1] Position [635, 117, 670, 153] InitialConditionSource "external" SampleTime "Ts_K2" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID 161 Position [470, 234, 545, 266] ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID 162 Position [470, 109, 545, 141] ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID 165 Position [470, 349, 545, 381] ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID 166 Position [470, 464, 545, 496] ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID 169 Ports [4, 1] Position [940, 77, 970, 538] ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K2" } Block { BlockType Sum Name "Sum4" SID 172 Ports [2, 1] Position [380, 115, 400, 135] ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID 174 Position [1065, 303, 1095, 317] IconDisplay "Port number" } Line { SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { DstBlock "Sum4" DstPort 2 } Branch { DstBlock "Gain" DstPort 1 } } Line { SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { SrcBlock "Constant1" SrcPort 1 Points [43, 0; 0, -45] DstBlock "Discrete-Time Integrator" DstPort 2 } } } Block { BlockType Scope Name "Vz_c" SID 389 Ports [1] Position [615, 339, 645, 371] Floating off Location [256, 74, 1361, 930] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "10094" YMax "10100.5" SaveToWorkspace on SaveName "data_Vzc" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "az filter" SID 507 Ports [1, 1] Position [1135, 624, 1265, 676] BlockMirror on ForegroundColor "red" BackgroundColor "[0.380392, 0.741176, 0.988235]" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "az filter" Location [-1853, 22, -263, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "284" Block { BlockType Inport Name "az" SID 508 Position [25, 38, 55, 52] IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID 509 Position [220, 26, 330, 64] A "Az_az" B "Bz_az" C "Cz_az" D "Dz_az" X0 "CIz_az" SampleTime "Ts_f_az" } Block { BlockType Outport Name "az meas" SID 511 Position [395, 38, 425, 52] IconDisplay "Port number" } Line { SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "az meas" DstPort 1 } Line { SrcBlock "az" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType Scope Name "delta_e" SID 256 Ports [1] Position [730, 244, 760, 276] Floating off Location [6, 123, 1618, 979] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "10094" YMax "10100.5" SaveToWorkspace on SaveName "delta_e" LimitDataPoints off SampleTime "0" } Block { BlockType SubSystem Name "h filter " SID 512 Ports [1, 1] Position [1135, 414, 1265, 466] BlockMirror on ForegroundColor "red" BackgroundColor "[0.380392, 0.741176, 0.988235]" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "h filter " Location [-1853, 22, -263, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "h" SID 513 Position [415, 363, 445, 377] IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID 514 Position [590, 351, 700, 389] A "Az_h" B "Bz_h" C "Cz_h" D "Dz_h" X0 "CIz_h" SampleTime "Ts_f_h" } Block { BlockType Outport Name "h meas" SID 516 Position [745, 363, 775, 377] IconDisplay "Port number" } Line { SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "h meas" DstPort 1 } Line { SrcBlock "h" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "q filter" SID 522 Ports [1, 1] Position [1135, 553, 1265, 607] BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "q filter" Location [-1853, 22, -263, 1017] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "416" Block { BlockType Inport Name "q" SID 523 Position [50, 118, 80, 132] IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID 524 Position [190, 106, 300, 144] A "Az_q" B "Bz_q" C "Cz_q" D "Dz_q" X0 "CIz_q" SampleTime "Ts_f_q" } Block { BlockType Outport Name "q meas" SID 526 Position [385, 118, 415, 132] IconDisplay "Port number" } Line { SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "q meas" DstPort 1 } Line { SrcBlock "q" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "reference" SID 216 Ports [0, 3] Position [1135, 769, 1260, 931] BlockMirror on ForegroundColor "red" BackgroundColor "yellow" MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off RTWSystemCode "Auto" FunctionWithSeparateData off Opaque off RequestExecContextInheritance off MaskHideContents off System { Name "reference" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "200" Block { BlockType Constant Name "Airspeed command" SID 217 Position [90, 185, 145, 215] Value "Va_c" SampleTime "Ts_K1" } Block { BlockType FromWorkspace Name "Altitude command" SID 605 Position [85, 98, 150, 122] VariableName "Flight_Level" SampleTime "Ts_h" Interpolate off ZeroCross on OutputAfterFinalValue "Holding final value" } Block { BlockType Scope Name "Scope" SID 606 Ports [1] Position [425, 39, 455, 71] Floating off Location [-874, 337, -550, 576] Open off NumInputPorts "1" List { ListType AxesTitles axes1 "%" } YMin "9250" YMax "11500" SaveName "ScopeData6" DataFormat "StructureWithTime" LimitDataPoints off SampleTime "0" } Block { BlockType Constant Name "Vert. speed command" SID 549 Position [90, 270, 145, 300] Value "Vz_c" SampleTime "Ts_K2" } Block { BlockType Outport Name "h c" SID 228 Position [495, 103, 525, 117] IconDisplay "Port number" } Block { BlockType Outport Name "Va c" SID 229 Position [495, 193, 525, 207] Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Vz c" SID 550 Position [495, 278, 525, 292] Port "3" IconDisplay "Port number" } Line { SrcBlock "Altitude command" SrcPort 1 Points [239, 0] Branch { Points [0, -55] DstBlock "Scope" DstPort 1 } Branch { DstBlock "h c" DstPort 1 } } Line { SrcBlock "Airspeed command" SrcPort 1 DstBlock "Va c" DstPort 1 } Line { SrcBlock "Vert. speed command" SrcPort 1 DstBlock "Vz c" DstPort 1 } } } Line { SrcBlock "reference" SrcPort 2 Points [-130, 0; 0, -120] DstBlock "Rate Transition12" DstPort 1 } Line { SrcBlock "Flight Dynamics " SrcPort 1 Points [489, 0] Branch { Points [0, 80] Branch { Points [0, 470] DstBlock "Sampler3" DstPort 1 } Branch { DstBlock "Va" DstPort 1 } } Branch { DstBlock "To Workspace7" DstPort 1 } } Line { SrcBlock "Flight Dynamics " SrcPort 2 Points [476, 0] Branch { Points [0, 465] DstBlock "Sampler2" DstPort 1 } Branch { Points [0, -45] DstBlock "To Workspace6" DstPort 1 } } Line { SrcBlock "Flight Dynamics " SrcPort 3 Points [463, 0] Branch { Points [0, 385] DstBlock "Sampler1" DstPort 1 } Branch { Points [0, -90] DstBlock "To Workspace5" DstPort 1 } } Line { SrcBlock "Flight Dynamics " SrcPort 4 Points [449, 0] Branch { Points [0, 105] Branch { Points [0, 205] DstBlock " Sampler " DstPort 1 } Branch { DstBlock "Vz" DstPort 1 } } Branch { Points [0, -135] DstBlock "To Workspace4" DstPort 1 } } Line { SrcBlock "Engine" SrcPort 1 Points [70, 0] Branch { Points [0, 50] DstBlock "Flight Dynamics " DstPort 1 } Branch { DstBlock "T" DstPort 1 } } Line { SrcBlock "Elevator " SrcPort 1 Points [70, 0] Branch { Points [0, -50] DstBlock "Flight Dynamics " DstPort 2 } Branch { DstBlock "delta_e" DstPort 1 } } Line { SrcBlock "Va filter" SrcPort 1 Points [-118, 0; 0, 60] DstBlock "Rate Transition11" DstPort 1 } Line { SrcBlock "Altitude Hold " SrcPort 1 Points [-77, 0] Branch { Points [0, -55] DstBlock "Vz_c" DstPort 1 } Branch { DstBlock "Rate Transition6" DstPort 1 } } Line { SrcBlock "reference" SrcPort 1 Points [-106, 0; 0, -415] DstBlock "Rate Transition7" DstPort 1 } Line { SrcBlock "Flight Dynamics " SrcPort 5 Points [436, 0] Branch { Points [0, 150] Branch { Points [0, 75] DstBlock "Sampler" DstPort 1 } Branch { DstBlock "Altitude" DstPort 1 } } Branch { Points [0, -180] DstBlock "To Workspace3" DstPort 1 } } Line { SrcBlock "az filter" SrcPort 1 Points [-728, 0; 0, -25] DstBlock "Rate Transition10" DstPort 1 } Line { SrcBlock "Multiport\nSwitch" SrcPort 1 DstBlock "Vz speed control" DstPort 1 } Line { SrcBlock "Rate Transition7" SrcPort 1 DstBlock "Altitude Hold " DstPort 1 } Line { SrcBlock "q filter" SrcPort 1 Points [-180, 0] Branch { Points [0, -10] DstBlock "Rate Transition15" DstPort 1 } Branch { Points [0, 260] DstBlock "Rate Transition16" DstPort 1 } } Line { SrcBlock "Rate Transition10" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { SrcBlock "Rate Transition11" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { SrcBlock "Rate Transition12" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { SrcBlock "Vz speed control" SrcPort 1 Points [-16, 0; 0, -285] DstBlock "Rate Transition14" DstPort 1 } Line { SrcBlock "Va speed control" SrcPort 1 Points [-42, 0; 0, -685] DstBlock "Rate Transition13" DstPort 1 } Line { SrcBlock "Rate Transition13" SrcPort 1 Points [19, 0] Branch { Points [120, 0] Branch { Points [0, -70] DstBlock "Throttle" DstPort 1 } Branch { DstBlock "Engine" DstPort 1 } } Branch { Points [0, -70] DstBlock "To Workspace1" DstPort 1 } } Line { SrcBlock "Rate Transition14" SrcPort 1 Points [23, 0] Branch { DstBlock "Elevator " DstPort 1 } Branch { Points [0, -45] DstBlock "To Workspace2" DstPort 1 } } Line { SrcBlock "h filter " SrcPort 1 DstBlock "Rate Transition5" DstPort 1 } Line { SrcBlock "Rate Transition15" SrcPort 1 DstBlock "Vz speed control" DstPort 3 } Line { SrcBlock "Rate Transition16" SrcPort 1 DstBlock "Va speed control" DstPort 3 } Line { SrcBlock "Vz filter " SrcPort 1 Points [-744, 0] Branch { DstBlock "Rate Transition17" DstPort 1 } Branch { Points [0, 380] DstBlock "Rate Transition9" DstPort 1 } } Line { SrcBlock "Rate Transition9" SrcPort 1 DstBlock "Va speed control" DstPort 4 } Line { SrcBlock "Sampler" SrcPort 1 DstBlock "h filter " DstPort 1 } Line { SrcBlock " Sampler " SrcPort 1 DstBlock "Vz filter " DstPort 1 } Line { SrcBlock "Sampler1" SrcPort 1 DstBlock "q filter" DstPort 1 } Line { SrcBlock "Sampler2" SrcPort 1 DstBlock "az filter" DstPort 1 } Line { SrcBlock "Sampler3" SrcPort 1 DstBlock "Va filter" DstPort 1 } Line { SrcBlock "Rate Transition5" SrcPort 1 DstBlock "Altitude Hold " DstPort 2 } Line { SrcBlock "Rate Transition17" SrcPort 1 DstBlock "Vz speed control" DstPort 2 } Line { SrcBlock "reference" SrcPort 3 Points [-578, 0; 0, -425] DstBlock "Multiport\nSwitch" DstPort 3 } Line { SrcBlock "Rate Transition6" SrcPort 1 Points [-28, 0; 0, 50] DstBlock "Multiport\nSwitch" DstPort 2 } Line { SrcBlock "Flight Mode" SrcPort 1 Points [-22, 0; 0, 95] DstBlock "Multiport\nSwitch" DstPort 1 } } } # Finite State Machines # # Stateflow Version 7.6 (R2013a) dated Aug 9 2013, 12:59:08 # # Stateflow { machine { id 1 name "Discrete_Closed_Loop_Model_74" created "05-Jul-2012 16:46:48" isLibrary 0 firstTarget 2 sfVersion 71014000.000011 } target { id 2 name "sfun" codeFlags "" machine 1 linkNode [1 0 0] } }