Model { Name "Discrete_Closed_Loop_Model_74" Version 8.7 MdlSubVersion 1 SavedCharacterEncoding "ISO-8859-1" GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.226" NumModelReferences 0 NumTestPointedSignals 0 NumProvidedFunctions 0 NumRequiredFunctions 0 } ScopeRefreshTime 0.035000 OverrideScopeRefreshTime on DisableAllScopes off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" MinMaxOverflowArchiveMode "Overwrite" FPTRunName "Run 1" MaxMDLFileLineLength 120 LastSavedArchitecture "glnxa64" Object { $PropName "BdWindowsInfo" $ObjectID 1 $ClassName "Simulink.BDWindowsInfo" Object { $PropName "WindowsInfo" $ObjectID 2 $ClassName "Simulink.WindowInfo" IsActive [1] Location [-8.0, 0.0, 1616.0, 916.0] Object { $PropName "ModelBrowserInfo" $ObjectID 3 $ClassName "Simulink.ModelBrowserInfo" Visible [0] DockPosition "Left" Width [50] Height [50] Filter [9] } Object { $PropName "ExplorerBarInfo" $ObjectID 4 $ClassName "Simulink.ExplorerBarInfo" Visible [1] } Object { $PropName "EditorsInfo" $ObjectID 5 $ClassName "Simulink.EditorInfo" IsActive [1] ViewObjType "SimulinkTopLevel" LoadSaveID "0" Extents [1582.0, 771.0] ZoomFactor [0.79999999999999993] Offset [-75.942809867558367, 314.75] } } } Created "Wed Jul 04 11:18:47 2012" Creator "David" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "h.deschamps" ModifiedDateFormat "%" LastModifiedDate "Tue Nov 29 11:27:31 2016" RTWModifiedTimeStamp 402319568 ModelVersionFormat "1.%" ConfigurationManager "none" SampleTimeColors off SampleTimeAnnotations off LibraryLinkDisplay "all" WideLines off ShowLineDimensions off ShowPortDataTypes off ShowEditTimeErrors on ShowEditTimeWarnings off ShowEditTimeAdvisorChecks off ShowPortUnits off ShowDesignRanges off ShowLoopsOnError on IgnoreBidirectionalLines off ShowStorageClass off ShowTestPointIcons on ShowSignalResolutionIcons on ShowViewerIcons on SortedOrder off VariantCondition off ExecutionContextIcon off ShowLinearizationAnnotations on ShowVisualizeInsertedRTB on ShowMarkup on BlockNameDataTip off BlockParametersDataTip off BlockDescriptionStringDataTip off ToolBar on StatusBar on BrowserShowLibraryLinks off FunctionConnectors off BrowserLookUnderMasks off SimulationMode "normal" PauseTimes "5" NumberOfSteps 1 SnapshotBufferSize 10 SnapshotInterval 10 NumberOfLastSnapshots 0 LinearizationMsg "none" Profile off ParamWorkspaceSource "MATLABWorkspace" AccelSystemTargetFile "accel.tlc" AccelTemplateMakefile "accel_default_tmf" AccelMakeCommand "make_rtw" TryForcingSFcnDF off Object { $PropName "DataLoggingOverride" $ObjectID 6 $ClassName "Simulink.SimulationData.ModelLoggingInfo" model_ "Discrete_Closed_Loop_Model_74" Array { Type "Cell" Dimension 1 Cell "Discrete_Closed_Loop_Model_74" PropName "logAsSpecifiedByModels_" } Array { Type "Cell" Dimension 1 Cell "" PropName "logAsSpecifiedByModelsSSIDs_" } } 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 ShowModelReferenceBlockVersion off ShowModelReferenceBlockIO off Array { Type "Handle" Dimension 1 Simulink.ConfigSet { $ObjectID 7 Version "1.16.2" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 8 Version "1.16.2" 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" EnableConcurrentExecution off ConcurrentTasks off Solver "FixedStepDiscrete" SolverName "FixedStepDiscrete" SolverJacobianMethodControl "auto" ShapePreserveControl "DisableAll" ZeroCrossControl "UseLocalSettings" ZeroCrossAlgorithm "Nonadaptive" AlgebraicLoopSolver "TrustRegion" SolverInfoToggleStatus off IsAutoAppliedInSIP off SolverResetMethod "Fast" PositivePriorityOrder off AutoInsertRateTranBlk off SampleTimeConstraint "Unconstrained" InsertRTBMode "Whenever possible" } Simulink.DataIOCC { $ObjectID 9 Version "1.16.2" Decimation "1" ExternalInput "[t, u]" FinalStateName "xFinal" InitialState "xInitial" LimitDataPoints off MaxDataPoints "1000" LoadExternalInput off LoadInitialState off SaveFinalState off SaveCompleteFinalSimState off SaveFormat "Array" SignalLoggingSaveFormat "ModelDataLogs" SaveOutput on SaveState off SignalLogging on DSMLogging on InspectSignalLogs off VisualizeSimOutput on StreamToWorkspace off StreamVariableName "streamout" SaveTime on ReturnWorkspaceOutputs off StateSaveName "xout" TimeSaveName "tout" OutputSaveName "yout" SignalLoggingName "logsout" DSMLoggingName "dsmout" OutputOption "RefineOutputTimes" OutputTimes "[]" ReturnWorkspaceOutputsName "out" Refine "1" LoggingToFile off LoggingFileName "out.mat" LoggingIntervals "[-inf, inf]" } Simulink.OptimizationCC { $ObjectID 10 Version "1.16.2" 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 DefaultParameterBehavior "Tunable" UseDivisionForNetSlopeComputation "off" UseFloatMulNetSlope off DefaultUnderspecifiedDataType "double" UseSpecifiedMinMax off InlineInvariantSignals off OptimizeBlockIOStorage on BufferReuse on EnhancedBackFolding off CachingGlobalReferences off GlobalBufferReuse on StrengthReduction off ExpressionFolding on BooleansAsBitfields off BitfieldContainerType "uint_T" EnableMemcpy on MemcpyThreshold 64 PassReuseOutputArgsAs "Structure reference" PassReuseOutputArgsThreshold 12 ExpressionDepthLimit 2147483647 LocalBlockOutputs on RollThreshold 5 StateBitsets off DataBitsets off ActiveStateOutputEnumStorageType "Native Integer" ZeroExternalMemoryAtStartup on ZeroInternalMemoryAtStartup on InitFltsAndDblsToZero off NoFixptDivByZeroProtection off EfficientFloat2IntCast off EfficientMapNaN2IntZero on OptimizeModelRefInitCode off LifeSpan "inf" MaxStackSize "Inherit from target" BufferReusableBoundary on SimCompilerOptimization "off" AccelVerboseBuild off } Simulink.DebuggingCC { $ObjectID 11 Version "1.16.2" 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" MaskedZcDiagnostic "warning" IgnoredZcDiagnostic "warning" SolverPrmCheckMsg "warning" InheritedTsInSrcMsg "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 "EnableAllAsWarning" SignalLabelMismatchMsg "none" UnconnectedInputMsg "warning" UnconnectedOutputMsg "warning" UnconnectedLineMsg "warning" SFcnCompatibilityMsg "none" FrameProcessingCompatibilityMsg "error" UniqueDataStoreMsg "none" BusObjectLabelMismatch "warning" RootOutportRequireBusObject "warning" AssertControl "UseLocalSettings" AllowSymbolicDim on ModelReferenceIOMsg "none" ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error" ModelReferenceVersionMismatchMessage "none" ModelReferenceIOMismatchMessage "none" UnknownTsInhSupMsg "warning" ModelReferenceDataLoggingMessage "warning" ModelReferenceSymbolNameMessage "warning" ModelReferenceExtraNoncontSigs "error" StateNameClashWarn "warning" SimStateInterfaceChecksumMismatchMsg "warning" SimStateOlderReleaseMsg "error" InitInArrayFormatMsg "warning" StrictBusMsg "ErrorLevel1" BusNameAdapt "WarnAndRepair" NonBusSignalsTreatedAsBus "none" SymbolicDimMinMaxWarning "warning" LossOfSymbolicDimsSimulationWarning "warning" LossOfSymbolicDimsCodeGenerationWarning "error" BlockIODiagnostic "none" SFUnusedDataAndEventsDiag "warning" SFUnexpectedBacktrackingDiag "warning" SFInvalidInputDataAccessInChartInitDiag "warning" SFNoUnconditionalDefaultTransitionDiag "warning" SFTransitionOutsideNaturalParentDiag "warning" SFUnconditionalTransitionShadowingDiag "warning" SFUndirectedBroadcastEventsDiag "warning" SFTransitionActionBeforeConditionDiag "warning" SFOutputUsedAsStateInMooreChartDiag "error" IntegerSaturationMsg "warning" AllowedUnitSystems "all" UnitsInconsistencyMsg "warning" AllowAutomaticUnitConversions on } Simulink.HardwareCC { $ObjectID 12 Version "1.16.2" ProdBitPerChar 8 ProdBitPerShort 16 ProdBitPerInt 32 ProdBitPerLong 32 ProdBitPerLongLong 64 ProdBitPerFloat 32 ProdBitPerDouble 64 ProdBitPerPointer 32 ProdLargestAtomicInteger "Char" ProdLargestAtomicFloat "None" ProdIntDivRoundTo "Undefined" ProdEndianess "Unspecified" ProdWordSize 32 ProdShiftRightIntArith on ProdLongLongMode off ProdHWDeviceType "32-bit Generic" TargetBitPerChar 8 TargetBitPerShort 16 TargetBitPerInt 32 TargetBitPerLong 32 TargetBitPerLongLong 64 TargetBitPerFloat 32 TargetBitPerDouble 64 TargetBitPerPointer 32 TargetLargestAtomicInteger "Char" TargetLargestAtomicFloat "None" TargetShiftRightIntArith on TargetLongLongMode off TargetIntDivRoundTo "Undefined" TargetEndianess "Unspecified" TargetWordSize 32 TargetPreprocMaxBitsSint 32 TargetPreprocMaxBitsUint 32 TargetHWDeviceType "32-bit Generic" TargetUnknown off ProdEqTarget on UseEmbeddedCoderFeatures on UseSimulinkCoderFeatures on } Simulink.ModelReferenceCC { $ObjectID 13 Version "1.16.2" UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" EnableRefExpFcnMdlSchedulingChecks on CheckModelReferenceTargetMessage "error" EnableParallelModelReferenceBuilds off ParallelModelReferenceErrorOnInvalidPool on ParallelModelReferenceMATLABWorkerInit "None" ModelReferenceNumInstancesAllowed "Multi" PropagateVarSize "Infer from blocks in model" ModelReferencePassRootInputsByReference on ModelReferenceMinAlgLoopOccurrences off PropagateSignalLabelsOutOfModel off SupportModelReferenceSimTargetCustomCode off } Simulink.SFSimCC { $ObjectID 14 Version "1.16.2" SFSimEcho on SimCtrlC on SimIntegrity on SimUseLocalCustomCode off SimParseCustomCode on SimBuildMode "sf_incremental_build" SimGenImportedTypeDefs off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 15 Version "1.16.2" Array { Type "Cell" Dimension 7 Cell "IncludeHyperlinkInReport" Cell "GenerateTraceInfo" Cell "GenerateTraceReport" Cell "GenerateTraceReportSl" Cell "GenerateTraceReportSf" Cell "GenerateTraceReportEml" Cell "GenerateSLWebview" PropName "DisabledProps" } SystemTargetFile "grt.tlc" HardwareBoard "None" TLCOptions "" GenCodeOnly off MakeCommand "make_rtw" GenerateMakefile on PackageGeneratedCodeAndArtifacts off TemplateMakefile "grt_default_tmf" PostCodeGenCommand "" Description "" GenerateReport off SaveLog off RTWVerbose on RetainRTWFile off ProfileTLC off TLCDebug off TLCCoverage off TLCAssert off RTWUseLocalCustomCode off RTWUseSimCustomCode off Toolchain "Automatically locate an installed toolchain" BuildConfiguration "Faster Builds" IncludeHyperlinkInReport off LaunchReport off PortableWordSizes off CreateSILPILBlock "None" CodeExecutionProfiling off CodeExecutionProfileVariable "executionProfile" CodeProfilingSaveOptions "SummaryOnly" CodeProfilingInstrumentation off SILDebugging off TargetLang "C" IncludeBusHierarchyInRTWFileBlockHierarchyMap off GenerateTraceInfo off GenerateTraceReport off GenerateTraceReportSl off GenerateTraceReportSf off GenerateTraceReportEml off GenerateWebview off GenerateCodeMetricsReport off GenerateCodeReplacementReport off GenerateMissedCodeReplacementReport off RTWCompilerOptimization "off" RTWCustomCompilerOptimizations "" CheckMdlBeforeBuild "Off" SharedConstantsCachingThreshold 1024 Array { Type "Handle" Dimension 2 Simulink.CodeAppCC { $ObjectID 16 Version "1.16.2" 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 CommentStyle "Auto" IgnoreCustomStorageClasses on IgnoreTestpoints off IncHierarchyInIds off MaxIdLength 31 PreserveName off PreserveNameWithParent off ShowEliminatedStatement off OperatorAnnotations off IncAutoGenComments off SimulinkDataObjDesc off SFDataObjDesc off MATLABFcnDesc 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" CustomSymbolStrUtil "$N$C" DefineNamingRule "None" ParamNamingRule "None" SignalNamingRule "None" InsertBlockDesc off InsertPolySpaceComments off SimulinkBlockComments on MATLABSourceComments off EnableCustomComments off InternalIdentifier "Shortened" InlinedPrmAccess "Literals" ReqsInCode off UseSimReservedNames off } Simulink.GRTTargetCC { $BackupClass "Simulink.TargetCC" $ObjectID 17 Version "1.16.2" Array { Type "Cell" Dimension 15 Cell "GeneratePreprocessorConditionals" Cell "IncludeMdlTerminateFcn" Cell "GenerateAllocFcn" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "PortableWordSizes" Cell "PurelyIntegerCode" Cell "SupportComplex" Cell "SupportAbsoluteTime" Cell "SupportContinuousTime" Cell "SupportNonInlinedSFcns" PropName "DisabledProps" } TargetFcnLib "ansi_tfl_tmw.mat" TargetLibSuffix "" GenFloatMathFcnCalls "NOT IN USE" TargetLangStandard "C89/C90 (ANSI)" CodeReplacementLibrary "None" UtilityFuncGeneration "Auto" ERTMultiwordTypeDef "System defined" ERTMultiwordLength 256 MultiwordLength 2048 GenerateFullHeader on InferredTypesCompatibility off GenerateSampleERTMain off GenerateTestInterfaces off ModelReferenceCompliant on ParMdlRefBuildCompliant on CompOptLevelCompliant on ConcurrentExecutionCompliant on IncludeMdlTerminateFcn on GeneratePreprocessorConditionals "Disable all" CombineOutputUpdateFcns off CombineSignalStateStructs off SuppressErrorStatus off ERTFirstTimeCompliant off IncludeFileDelimiter "Auto" ERTCustomFileBanners off SupportAbsoluteTime on LogVarNameModifier "rt_" MatFileLogging on MultiInstanceERTCode off CodeInterfacePackaging "Nonreusable function" SupportNonFinite on SupportComplex on PurelyIntegerCode off SupportContinuousTime on SupportNonInlinedSFcns on SupportVariableSizeSignals off ParenthesesLevel "Nominal" CastingMode "Nominal" MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.GRTCustomization" ModelStepFunctionPrototypeControlCompliant off CPPClassGenCompliant on AutosarCompliant off GRTInterface on GenerateAllocFcn off UseToolchainInfoCompliant on GenerateSharedConstants on UseMalloc off ExtMode off ExtModeStaticAlloc off ExtModeTesting off ExtModeStaticAllocSize 1000000 ExtModeTransport 0 ExtModeMexFile "ext_comm" ExtModeIntrfLevel "Level1" RTWCAPISignals off RTWCAPIParams off RTWCAPIStates off RTWCAPIRootIO off GenerateASAP2 off MultiInstanceErrorCode "Error" } PropName "Components" } } SlCovCC.ConfigComp { $ObjectID 18 Version "1.16.2" Description "Simulink Coverage Configuration Component" Name "Simulink Coverage" CovEnable off CovScope "EntireSystem" CovIncludeTopModel on RecordCoverage off CovPath "/" CovSaveName "covdata" CovMetricSettings "dw" CovNameIncrementing off CovHtmlReporting on CovForceBlockReductionOff on CovEnableCumulative on CovSaveCumulativeToWorkspaceVar on CovSaveSingleToWorkspaceVar on CovCumulativeVarName "covCumulativeData" CovCumulativeReport off CovSaveOutputData on CovOutputDir "slcov_output/$ModelName$" CovDataFileName "$ModelName$_cvdata" CovReportOnPause on CovModelRefEnable "Off" CovExternalEMLEnable off CovSFcnEnable off CovBoundaryAbsTol 1e-05 CovBoundaryRelTol 0.01 CovUseTimeInterval off CovStartTime 0 CovStopTime 0 } PropName "Components" } Name "Configuration" CurrentDlgPage "Diagnostics/Connectivity" ConfigPrmDlgPosition [ 392, 84, 1288, 848 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 7 } Object { $PropName "DataTransfer" $ObjectID 19 $ClassName "Simulink.GlobalDataTransfer" DefaultTransitionBetweenSyncTasks "Ensure deterministic transfer (maximum delay)" DefaultTransitionBetweenAsyncTasks "Ensure data integrity only" DefaultTransitionBetweenContTasks "Ensure deterministic transfer (minimum delay)" DefaultExtrapolationMethodBetweenContTasks "None" AutoInsertRateTranBlk [0] } ExplicitPartitioning off 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" } MaskDefaults { SelfModifiable "off" IconFrame "on" IconOpaque "opaque" RunInitForIconRedraw "off" IconRotate "none" PortRotate "default" IconUnits "autoscale" } MaskParameterDefaults { Evaluate "on" Tunable "on" NeverSave "off" Internal "off" ReadOnly "off" Enabled "on" Visible "on" ToolTip "on" } BlockParameterDefaults { Block { BlockType Abs ZeroCross on SampleTime "-1" OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Same as input" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on } Block { BlockType ActionPort InitializeStates "held" PropagateVarSize "Only when execution is resumed" DisallowConstTsAndPrmTs off 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" PreserveConstantTs off } Block { BlockType DiscreteIntegrator IntegratorMethod "Integration: Forward Euler" gainval "1.0" ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" InitialConditionSetting "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" } 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" OutDataTypeStr "Inherit: auto" 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" } Block { BlockType If NumInputs "1" IfExpression "u1 > 0" ShowElse on ZeroCross on SampleTime "-1" } Block { BlockType Inport Port "1" OutputFunctionCall off OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: auto" LockScale off BusOutputAsStruct off Unit "inherit" PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" LatchByDelayingOutsideSignal off LatchInputForFeedbackSignals off Interpolate on } Block { BlockType Logic Operator "AND" Inputs "2" IconShape "rectangular" AllPortsSameDT on OutDataTypeStr "Inherit: Logical (see Configuration Parameters: Optimization)" SampleTime "-1" } 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" } 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 DataPortOrder "One-based contiguous" Inputs "3" DataPortIndices "{1,2,3}" DataPortForDefault "Last data port" DiagnosticForDefault "Error" zeroidx off InputSameDT on OutMin "[]" OutMax "[]" OutDataTypeStr "Inherit: Inherit via internal rule" LockScale off RndMeth "Floor" SaturateOnIntegerOverflow on SampleTime "-1" AllowDiffInputSizes off } 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 Unit "inherit" PortDimensions "-1" VarSizeSig "Inherit" SampleTime "-1" SignalType "auto" SamplingMode "auto" SourceOfInitialOutputValue "Dialog" OutputWhenDisabled "held" InitialOutput "[]" } 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" } Block { BlockType RateTransition Integrity on Deterministic on X0 "0" OutPortSampleTimeOpt "Specify" OutPortSampleTimeMultiple "1" OutPortSampleTime "-1" } Block { BlockType Scope DefaultConfigurationName "Simulink.scopes.TimeScopeBlockCfg" NumInputPorts "1" Floating off } Block { BlockType Selector NumberOfDimensions "1" IndexMode "One-based" InputPortWidth "-1" SampleTime "-1" } Block { BlockType SubSystem ShowPortLabels "FromPortIcon" Permissions "ReadWrite" PermitHierarchicalResolution "All" TreatAsAtomicUnit off MinAlgLoopOccurrences off PropExecContextOutsideSubsystem off CheckFcnCallInpInsideContextMsg off SystemSampleTime "-1" RTWSystemCode "Auto" RTWFcnNameOpts "Auto" RTWFileNameOpts "Auto" FunctionInterfaceSpec "void_void" FunctionWithSeparateData off RTWMemSecFuncInitTerm "Inherit from model" RTWMemSecFuncExecute "Inherit from model" RTWMemSecDataConstants "Inherit from model" RTWMemSecDataInternal "Inherit from model" RTWMemSecDataParameters "Inherit from model" SimViewingDevice off DataTypeOverride "UseLocalSettings" DataTypeOverrideAppliesTo "AllNumericTypes" MinMaxOverflowLogging "UseLocalSettings" Opaque off MaskHideContents off SFBlockType "NONE" GeneratePreprocessorConditionals off TreatAsGroupedWhenPropagatingVariantConditions on ContentPreviewEnabled off IsWebBlock off } 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" } Block { BlockType ToWorkspace VariableName "simulink_output" MaxDataPoints "1000" Decimation "1" SaveFormat "Array" Save2DSignal "Inherit from input (this choice will be removed - see release notes)" FixptAsFi off NumInputs "1" SampleTime "0" } Block { BlockType Trigonometry Operator "sin" ApproximationMethod "None" NumberOfIterations "11" OutputSignalType "auto" SampleTime "-1" } } System { Name "Discrete_Closed_Loop_Model_74" Location [-8, 0, 1608, 916] Open on 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 "80" ReportName "simulink-default.rpt" SIDHighWatermark "2052" Block { BlockType RateTransition Name " Sampler " SID "505" Position [1315, 499, 1355, 541] ZOrder -1 BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_f_Vz" } Block { BlockType Scope Name "Altitude" SID "118" Ports [1] Position [1710, 349, 1740, 381] ZOrder -2 ScopeSpecificationString "C++SS(StrPVP('Location','[80, 145, 1673, 1001]'),StrPVP('Open','off'),MxPVP('AxesTitle" "s',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('TimeRange','200'),StrPVP('YMin" "','9950'),StrPVP('YMax','10800'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','h'),StrPVP('LimitDataPoints'," "'off'),StrPVP('BlockParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decima" "tion','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType SubSystem Name "Elevator " SID "403" Ports [1, 1] Position [450, 236, 585, 284] ZOrder -4 BackgroundColor "green" RequestExecContextInheritance off Variant off System { Name "Elevator " Location [16, 52, 1752, 1231] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "547" Ports [1, 1] Position [580, 207, 615, 243] ZOrder -2 InitialCondition "CI_de" SampleTime "dt_dx" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "406" Position [555, 90, 620, 120] ZOrder -3 ShowName off Gain "D_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "407" Position [360, 210, 425, 240] ZOrder -4 ShowName off Gain "B_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "408" Position [560, 370, 625, 400] ZOrder -5 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 } Block { BlockType Gain Name "Gain3" SID "409" Position [785, 210, 850, 240] ZOrder -6 ShowName off Gain "C_de" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "410" Ports [2, 1] Position [450, 215, 470, 235] ZOrder -7 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "411" Ports [2, 1] Position [905, 215, 925, 235] ZOrder -8 ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e" SID "412" Position [1030, 218, 1060, 232] ZOrder -9 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_e_c" SrcPort 1 Points [150, 0] Branch { ZOrder 2 Points [0, -120] DstBlock "Gain" DstPort 1 } Branch { ZOrder 3 DstBlock "Gain1" DstPort 1 } } Line { ZOrder 4 SrcBlock "Sum1" SrcPort 1 DstBlock "delta_e" DstPort 1 } Line { ZOrder 5 SrcBlock "Discrete-Time Integrator" SrcPort 1 Points [112, 0] Branch { ZOrder 6 Points [0, 160] DstBlock "Gain2" DstPort 1 } Branch { ZOrder 7 DstBlock "Gain3" DstPort 1 } } Line { ZOrder 8 SrcBlock "Sum" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 9 SrcBlock "Gain" SrcPort 1 Points [290, 0] DstBlock "Sum1" DstPort 1 } Line { ZOrder 10 SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 11 SrcBlock "Gain2" SrcPort 1 Points [-95, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 12 SrcBlock "Gain3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Annotation { SID "607" Name "Commanded elevator\ndeflection" Position [151, 277, 249, 303] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off VerticalAlignment "top" ZOrder -1 } Annotation { SID "608" Name "Elevator deflection" Position [1042, 272, 1126, 286] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off VerticalAlignment "top" ZOrder -2 } } } Block { BlockType SubSystem Name "Engine" SID "391" Ports [1, 1] Position [455, 104, 585, 156] ZOrder -5 BackgroundColor "green" RequestExecContextInheritance off Variant off System { Name "Engine" Location [16, 52, 1758, 1231] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "546" Ports [1, 1] Position [470, 197, 505, 233] ZOrder -2 InitialCondition "CI_dx" SampleTime "dt_dx" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "394" Position [450, 80, 515, 110] ZOrder -3 ShowName off Gain "D_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "395" Position [255, 200, 320, 230] ZOrder -4 ShowName off Gain "B_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "396" Position [455, 360, 520, 390] ZOrder -5 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 } Block { BlockType Gain Name "Gain3" SID "397" Position [680, 200, 745, 230] ZOrder -6 ShowName off Gain "C_dx" Multiplication "Matrix(K*u)" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "398" Ports [2, 1] Position [345, 205, 365, 225] ZOrder -7 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "399" Ports [2, 1] Position [800, 205, 820, 225] ZOrder -8 ShowName off IconShape "round" Inputs "++|" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "T" SID "400" Position [925, 208, 955, 222] ZOrder -9 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_x_c" SrcPort 1 Points [85, 0] Branch { ZOrder 2 Points [0, -120] DstBlock "Gain" DstPort 1 } Branch { ZOrder 3 DstBlock "Gain1" DstPort 1 } } Line { ZOrder 4 SrcBlock "Sum1" SrcPort 1 DstBlock "T" DstPort 1 } Line { ZOrder 5 SrcBlock "Discrete-Time Integrator" SrcPort 1 Points [117, 0] Branch { ZOrder 6 Points [0, 160] DstBlock "Gain2" DstPort 1 } Branch { ZOrder 7 DstBlock "Gain3" DstPort 1 } } Line { ZOrder 8 SrcBlock "Sum" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 9 SrcBlock "Gain" SrcPort 1 Points [290, 0] DstBlock "Sum1" DstPort 1 } Line { ZOrder 10 SrcBlock "Gain1" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 11 SrcBlock "Gain2" SrcPort 1 Points [-95, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 12 SrcBlock "Gain3" SrcPort 1 DstBlock "Sum1" DstPort 2 } Annotation { SID "609" Name "Throttle" Position [116, 261, 151, 275] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off HorizontalAlignment "left" VerticalAlignment "top" ZOrder -1 } Annotation { SID "610" Name "Thrust" Position [943, 259, 973, 273] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off HorizontalAlignment "left" VerticalAlignment "top" ZOrder -2 } } } Block { BlockType SubSystem Name "FCC1 error injection" SID "2016" Ports [2, 2] Position [360, 340, 485, 395] ZOrder 129 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC1 error injection" Location [1592, 0, 2974, 784] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "delta_e_c" SID "2017" Position [20, 23, 50, 37] ZOrder 127 IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c" SID "2018" Position [25, 143, 55, 157] ZOrder 133 Port "2" IconDisplay "Port number" } Block { BlockType FromWorkspace Name "Error delta e_c" SID "2019" Position [25, 78, 125, 102] ZOrder 135 VariableName "fcc1_err_delta_e_c" Interpolate off ZeroCross on OutputAfterFinalValue "Holding final value" } Block { BlockType FromWorkspace Name "Error delta x_c" SID "2020" Position [25, 198, 125, 222] ZOrder 136 VariableName "fcc1_err_delta_x_c" Interpolate off ZeroCross on OutputAfterFinalValue "Holding final value" } Block { BlockType Sum Name "Sum" SID "2021" Ports [2, 1] Position [170, 20, 190, 40] ZOrder 125 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "2022" Ports [2, 1] Position [170, 140, 190, 160] ZOrder 131 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c_err" SID "2023" Position [300, 23, 330, 37] ZOrder 130 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c_err" SID "2024" Position [300, 143, 330, 157] ZOrder 134 Port "2" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_e_c" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 2 SrcBlock "Error delta e_c" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 3 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c_err" DstPort 1 } Line { ZOrder 4 SrcBlock "delta_x_c" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 5 SrcBlock "Error delta x_c" SrcPort 1 Points [50, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 6 SrcBlock "Sum1" SrcPort 1 DstBlock "delta_x_c_err" DstPort 1 } } } Block { BlockType SubSystem Name "FCC1A" SID "1583" Ports [12, 6] Position [645, 334, 815, 501] ZOrder 33 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC1A" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "flight mode" SID "1584" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "1585" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1586" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "1587" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1588" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "1589" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1590" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1591" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1592" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "1593" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "1594" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "1595" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "1596" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "1597" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold" SID "1598" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 48 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold" Location [-8, 0, 1370, 780] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "h c" SID "1599" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1600" Position [25, 338, 55, 352] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "1601" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder -3 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [16, 52, 1875, 1183] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "140" Block { BlockType Inport Name "h_meas" SID "1602" Position [35, 273, 65, 287] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h_c" SID "1603" Position [35, 328, 65, 342] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "1604" Position [35, 393, 65, 407] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "1605" Position [450, 20, 509, 48] ZOrder -4 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "1606" Position [365, 372, 585, 408] ZOrder -5 Expr "u(2) - u(1)*Kp_h" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator1" SID "1607" Ports [2, 1] Position [660, 272, 695, 308] ZOrder -6 ShowName off InitialConditionSource "external" InitialCondition "CI_AltHold" SampleTime "Ts_h" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1608" Position [485, 264, 560, 296] ZOrder -7 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "1609" Position [485, 184, 560, 216] ZOrder -8 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID "1610" Ports [2, 1] Position [320, 371, 325, 409] ZOrder -9 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "1611" Ports [2, 1] Position [740, 190, 760, 210] ZOrder -10 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "1612" Ports [2, 1] Position [210, 270, 230, 290] ZOrder -11 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "1613" Position [1070, 193, 1100, 207] ZOrder -12 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time Integrator1" DstPort 1 } Line { ZOrder 2 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 3 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 4 SrcBlock "CI_AltHold" SrcPort 1 Points [20, 0; 0, -90] DstBlock "Discrete-Time Integrator1" DstPort 2 } Line { ZOrder 5 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 6 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 7 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 8 Points [165, 0] Branch { ZOrder 9 DstBlock "Gain" DstPort 1 } Branch { ZOrder 10 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 11 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 12 SrcBlock "Discrete-Time Integrator1" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 13 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 14 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "1614" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder -4 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1615" Position [170, 15, 229, 43] ZOrder -1 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "1616" Position [155, 70, 210, 100] ZOrder -2 ShowName off Value "Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1617" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch2" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType SubSystem Name "Descent command" SID "1618" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder -5 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1619" Position [170, 15, 229, 43] ZOrder -1 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "1620" Position [80, 70, 135, 100] ZOrder -2 ShowName off Value "-Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1621" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch4" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType If Name "Logic\nVert. Speed Command\n/ Altitude Hold" SID "1622" Ports [1, 3] Position [210, 210, 335, 280] ZOrder -6 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "1623" Position [630, 455, 660, 485] ZOrder -7 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "1624" Ports [3, 1] Position [725, 255, 765, 295] ZOrder -8 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "1625" Ports [2, 1] Position [110, 235, 130, 255] ZOrder -9 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1626" Position [910, 268, 940, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 110] DstBlock "Altitude Capture/Hold" DstPort 2 } Branch { ZOrder 3 DstBlock "Sum3" DstPort 1 } } Line { ZOrder 4 SrcBlock "h meas" SrcPort 1 Points [60, 0] Branch { ZOrder 5 DstBlock "Sum3" DstPort 2 } Branch { ZOrder 6 DstBlock "Altitude Capture/Hold" DstPort 1 } } Line { ZOrder 7 SrcBlock "Sum3" SrcPort 1 DstBlock "Logic\nVert. Speed Command\n/ Altitude Hold" DstPort 1 } Line { ZOrder 8 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 1 Points [24, 0; 0, -53] DstBlock "Climb command" DstPort ifaction } Line { ZOrder 9 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 3 Points [0, 52] DstBlock "Altitude Capture/Hold" DstPort ifaction } Line { ZOrder 10 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 2 Points [225, 0] DstBlock "Descent command" DstPort ifaction } Line { ZOrder 11 SrcBlock "Descent command" SrcPort 1 DstBlock "Merge" DstPort 2 } Line { ZOrder 12 SrcBlock "Climb command" SrcPort 1 Points [12, 0; 0, 60] DstBlock "Merge" DstPort 1 } Line { ZOrder 13 SrcBlock "Altitude Capture/Hold" SrcPort 1 Points [12, 0; 0, -65] DstBlock "Merge" DstPort 3 } Line { ZOrder 14 SrcBlock "Merge" SrcPort 1 Points [83, 0] Branch { ZOrder 15 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 16 DstBlock "Vz_c" DstPort 1 } } Line { ZOrder 17 SrcBlock "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } } } Block { BlockType Logic Name "Logical\nOperator" SID "1627" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "1628" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "1630" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "1632" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "1633" Position [1595, 445, 1625, 475] ZOrder 120 InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "1634" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition1" SID "1635" Position [575, 474, 615, 516] ZOrder 46 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition18" SID "1636" Position [575, 364, 615, 406] ZOrder 41 ForegroundColor "red" NamePlacement "alternate" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition19" SID "1637" Position [185, 229, 225, 271] ZOrder 40 ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition2" SID "1638" Position [575, 634, 615, 676] ZOrder 45 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition20" SID "1639" Position [450, 199, 490, 241] ZOrder 39 ForegroundColor "red" ShowName off OutPortSampleTimeMultiple "5" OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition21" SID "1640" Position [185, 169, 225, 211] ZOrder 38 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition22" SID "1641" Position [575, 744, 615, 786] ZOrder 37 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition3" SID "1642" Position [575, 579, 615, 621] ZOrder 44 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition4" SID "1643" Position [575, 419, 615, 461] ZOrder 43 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition8" SID "1644" Position [575, 689, 615, 731] ZOrder 42 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType SubSystem Name "Va speed control" SID "1645" Ports [4, 1] Position [720, 568, 855, 797] ZOrder 36 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "Va c" SID "1646" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1647" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1648" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1649" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "1650" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "Ts_K1" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1651" Ports [2, 1] Position [500, 67, 535, 103] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K1" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1652" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1653" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1654" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1655" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1656" Ports [4, 1] Position [620, 34, 655, 451] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum1" SID "1657" Ports [2, 1] Position [290, 180, 310, 200] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum4" SID "1658" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "1659" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "Ts_K1" } Block { BlockType Outport Name "delta_x_c" SID "1660" Position [875, 238, 905, 252] ZOrder -16 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Va meas" SrcPort 1 Points [60, 0] Branch { ZOrder 2 DstBlock "Sum1" DstPort 1 } Branch { ZOrder 3 DstBlock "Sum4" DstPort 2 } } Line { ZOrder 4 SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 6 SrcBlock "Va c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 7 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 9 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 10 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 11 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 12 SrcBlock "Sum" SrcPort 1 DstBlock "delta_x_c" DstPort 1 } Line { ZOrder 13 SrcBlock "Constant" SrcPort 1 Points [33, 0; 0, -40] DstBlock "Discrete-Time Integrator" DstPort 2 } Line { ZOrder 14 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 15 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 16 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "1661" Ports [4, 1] Position [720, 298, 855, 527] ZOrder 35 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "Vz c" SID "1662" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1663" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1664" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1665" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "1666" Position [470, 175, 525, 205] ZOrder -5 Value "delta_e_eq" SampleTime "Ts_K2" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1667" Ports [2, 1] Position [635, 117, 670, 153] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K2" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1668" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1669" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1670" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1671" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1672" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K2" } Block { BlockType Sum Name "Sum4" SID "1673" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1674" Position [1065, 303, 1095, 317] ZOrder -13 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 2 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 3 DstBlock "Gain" DstPort 1 } } Line { ZOrder 4 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 5 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 6 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 7 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 8 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 9 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 10 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 12 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 13 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant1" SrcPort 1 Points [43, 0; 0, -45] DstBlock "Discrete-Time Integrator" DstPort 2 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1675" Ports [2, 1] Position [960, 342, 990, 373] ZOrder 106 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "delta_x_c_com -\ndelta_x_c_mon" SID "1676" Ports [2, 1] Position [960, 587, 990, 618] ZOrder 107 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "greater than\nepsilon_delta_e_c" SID "1677" Ports [1, 1] Position [1155, 347, 1295, 373] ZOrder 105 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_e_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Reference Name "greater than\nepsilon_delta_x_c" SID "1678" Ports [1, 1] Position [1155, 592, 1295, 618] ZOrder 108 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_x_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Outport Name "delta_e_c" SID "1679" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1680" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1681" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1682" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1683" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1684" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Rate Transition4" SrcPort 1 DstBlock "Vz speed control" DstPort 3 } Line { ZOrder 2 SrcBlock "Rate Transition19" SrcPort 1 DstBlock "Altitude Hold" DstPort 2 } Line { ZOrder 3 SrcBlock "Rate Transition21" SrcPort 1 DstBlock "Altitude Hold" DstPort 1 } Line { ZOrder 4 SrcBlock "h c" SrcPort 1 DstBlock "Rate Transition21" DstPort 1 } Line { ZOrder 5 SrcBlock "Rate Transition20" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 2 } Line { ZOrder 6 SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 7 SrcBlock "Rate Transition8" SrcPort 1 DstBlock "Va speed control" DstPort 3 } Line { ZOrder 8 SrcBlock "Rate Transition2" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 9 SrcBlock "Rate Transition3" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 10 SrcBlock "Rate Transition22" SrcPort 1 DstBlock "Va speed control" DstPort 4 } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } Line { ZOrder 12 SrcBlock "Rate Transition18" SrcPort 1 DstBlock "Vz speed control" DstPort 2 } Line { ZOrder 13 SrcBlock "Vz c" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 3 } Line { ZOrder 14 SrcBlock "flight mode" SrcPort 1 Points [15, 0; 0, 55] DstBlock "Multiport\nSwitch" DstPort 1 } Line { ZOrder 15 SrcBlock "Va speed control" SrcPort 1 Points [20, 0] Branch { ZOrder 16 Points [0, -75] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 2 } Branch { ZOrder 17 DstBlock "delta_x_c" DstPort 1 } } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 19 DstBlock "Rate Transition4" DstPort 1 } Branch { ZOrder 20 Points [0, 270] DstBlock "Rate Transition8" DstPort 1 } } Line { ZOrder 21 SrcBlock "az meas" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { ZOrder 22 SrcBlock "Vz speed control" SrcPort 1 Points [19, 0] Branch { ZOrder 23 Points [0, -50] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 2 } Branch { ZOrder 24 DstBlock "delta_e_c" DstPort 1 } } Line { ZOrder 25 SrcBlock "Va meas" SrcPort 1 DstBlock "Rate Transition2" DstPort 1 } Line { ZOrder 26 SrcBlock "Va c" SrcPort 1 DstBlock "Rate Transition3" DstPort 1 } Line { ZOrder 27 SrcBlock "h meas" SrcPort 1 DstBlock "Rate Transition19" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 29 Points [0, 380] DstBlock "Rate Transition22" DstPort 1 } Branch { ZOrder 30 DstBlock "Rate Transition18" DstPort 1 } } Line { ZOrder 31 SrcBlock "Altitude Hold" SrcPort 1 Points [16, 0] Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } Branch { ZOrder 33 DstBlock "Rate Transition20" DstPort 1 } } Line { ZOrder 40 SrcBlock "delta_e_c_com" SrcPort 1 Points [25, 0] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 1 } Line { ZOrder 41 SrcBlock "delta_x_c_com\n" SrcPort 1 Points [24, 0; 0, 30] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 1 } Line { ZOrder 42 SrcBlock "delta_e_c_com -\ndelta_e_c_mon" SrcPort 1 DstBlock "Abs diff delta_e_c" DstPort 1 } Line { ZOrder 43 SrcBlock "delta_x_c_com -\ndelta_x_c_mon" SrcPort 1 DstBlock "Abs diff delta_x_c1" DstPort 1 } Line { ZOrder 44 SrcBlock "Abs diff delta_e_c" SrcPort 1 DstBlock "greater than\nepsilon_delta_e_c" DstPort 1 } Line { ZOrder 45 SrcBlock "Abs diff delta_x_c1" SrcPort 1 DstBlock "greater than\nepsilon_delta_x_c" DstPort 1 } Line { ZOrder 46 SrcBlock "Logical\nOperator1" SrcPort 1 DstBlock "Logical\nOperator5" DstPort 2 } Line { ZOrder 47 SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Logical\nOperator1" DstPort 1 } Line { ZOrder 48 SrcBlock "other master in law" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 1 } Line { ZOrder 49 SrcBlock "Logical\nOperator3" SrcPort 1 Points [43, 0; 0, 55] DstBlock "Logical\nOperator5" DstPort 1 } Line { ZOrder 56 SrcBlock "Logical\nOperator5" SrcPort 1 DstBlock "Memory" DstPort 1 } Line { ZOrder 57 SrcBlock "Memory" SrcPort 1 DstBlock "master in law" DstPort 1 } Line { ZOrder 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 67 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } Branch { ZOrder 66 DstBlock "relay_delta_e_c" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 62 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 60 DstBlock "relay_delta_x_c" DstPort 1 } } } } Block { BlockType SubSystem Name "FCC1B" SID "1279" Ports [12, 6] Position [370, 524, 540, 691] ZOrder 30 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC1B" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "flight mode" SID "1280" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "1281" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1282" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "1283" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1284" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "1285" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1286" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1287" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1288" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "1289" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "1290" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "1291" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "1292" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "1293" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold" SID "1294" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 48 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold" Location [-8, 0, 1370, 780] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "h c" SID "1295" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1296" Position [25, 338, 55, 352] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "1297" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder -3 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [16, 52, 1875, 1183] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "140" Block { BlockType Inport Name "h_meas" SID "1298" Position [35, 273, 65, 287] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h_c" SID "1299" Position [35, 328, 65, 342] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "1300" Position [35, 393, 65, 407] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "1301" Position [450, 20, 509, 48] ZOrder -4 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "1302" Position [365, 372, 585, 408] ZOrder -5 Expr "u(2) - u(1)*Kp_h" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator1" SID "1303" Ports [2, 1] Position [660, 272, 695, 308] ZOrder -6 ShowName off InitialConditionSource "external" InitialCondition "CI_AltHold" SampleTime "Ts_h" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1304" Position [485, 264, 560, 296] ZOrder -7 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "1305" Position [485, 184, 560, 216] ZOrder -8 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID "1306" Ports [2, 1] Position [320, 371, 325, 409] ZOrder -9 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "1307" Ports [2, 1] Position [740, 190, 760, 210] ZOrder -10 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "1308" Ports [2, 1] Position [210, 270, 230, 290] ZOrder -11 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "1309" Position [1070, 193, 1100, 207] ZOrder -12 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time Integrator1" DstPort 1 } Line { ZOrder 2 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 3 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 4 SrcBlock "CI_AltHold" SrcPort 1 Points [20, 0; 0, -90] DstBlock "Discrete-Time Integrator1" DstPort 2 } Line { ZOrder 5 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 6 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 7 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 8 Points [165, 0] Branch { ZOrder 9 DstBlock "Gain" DstPort 1 } Branch { ZOrder 10 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 11 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 12 SrcBlock "Discrete-Time Integrator1" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 13 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 14 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "1310" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder -4 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1311" Position [170, 15, 229, 43] ZOrder -1 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "1312" Position [155, 70, 210, 100] ZOrder -2 ShowName off Value "Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1313" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch2" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType SubSystem Name "Descent command" SID "1314" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder -5 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1315" Position [170, 15, 229, 43] ZOrder -1 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "1316" Position [80, 70, 135, 100] ZOrder -2 ShowName off Value "-Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1317" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch4" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType If Name "Logic\nVert. Speed Command\n/ Altitude Hold" SID "1318" Ports [1, 3] Position [210, 210, 335, 280] ZOrder -6 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "1319" Position [630, 455, 660, 485] ZOrder -7 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "1320" Ports [3, 1] Position [725, 255, 765, 295] ZOrder -8 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "1321" Ports [2, 1] Position [110, 235, 130, 255] ZOrder -9 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1322" Position [910, 268, 940, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 110] DstBlock "Altitude Capture/Hold" DstPort 2 } Branch { ZOrder 3 DstBlock "Sum3" DstPort 1 } } Line { ZOrder 4 SrcBlock "h meas" SrcPort 1 Points [60, 0] Branch { ZOrder 5 DstBlock "Sum3" DstPort 2 } Branch { ZOrder 6 DstBlock "Altitude Capture/Hold" DstPort 1 } } Line { ZOrder 7 SrcBlock "Sum3" SrcPort 1 DstBlock "Logic\nVert. Speed Command\n/ Altitude Hold" DstPort 1 } Line { ZOrder 8 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 1 Points [24, 0; 0, -53] DstBlock "Climb command" DstPort ifaction } Line { ZOrder 9 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 3 Points [0, 52] DstBlock "Altitude Capture/Hold" DstPort ifaction } Line { ZOrder 10 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 2 Points [225, 0] DstBlock "Descent command" DstPort ifaction } Line { ZOrder 11 SrcBlock "Descent command" SrcPort 1 DstBlock "Merge" DstPort 2 } Line { ZOrder 12 SrcBlock "Climb command" SrcPort 1 Points [12, 0; 0, 60] DstBlock "Merge" DstPort 1 } Line { ZOrder 13 SrcBlock "Altitude Capture/Hold" SrcPort 1 Points [12, 0; 0, -65] DstBlock "Merge" DstPort 3 } Line { ZOrder 14 SrcBlock "Merge" SrcPort 1 Points [83, 0] Branch { ZOrder 15 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 16 DstBlock "Vz_c" DstPort 1 } } Line { ZOrder 17 SrcBlock "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } } } Block { BlockType Logic Name "Logical\nOperator" SID "1323" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "1324" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "1326" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "1328" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "1582" Position [1595, 445, 1625, 475] ZOrder 120 X0 "init_fcc1_master_in_law" InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "1329" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition1" SID "1330" Position [575, 474, 615, 516] ZOrder 46 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition18" SID "1331" Position [575, 364, 615, 406] ZOrder 41 ForegroundColor "red" NamePlacement "alternate" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition19" SID "1332" Position [185, 229, 225, 271] ZOrder 40 ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition2" SID "1333" Position [575, 634, 615, 676] ZOrder 45 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition20" SID "1334" Position [450, 199, 490, 241] ZOrder 39 ForegroundColor "red" ShowName off OutPortSampleTimeMultiple "5" OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition21" SID "1335" Position [185, 169, 225, 211] ZOrder 38 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition22" SID "1336" Position [575, 744, 615, 786] ZOrder 37 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition3" SID "1337" Position [575, 579, 615, 621] ZOrder 44 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition4" SID "1338" Position [575, 419, 615, 461] ZOrder 43 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition8" SID "1339" Position [575, 689, 615, 731] ZOrder 42 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType SubSystem Name "Va speed control" SID "1340" Ports [4, 1] Position [720, 568, 855, 797] ZOrder 36 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, -8, 1374, 776] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "Va c" SID "1341" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1342" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1343" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1344" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "1345" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "Ts_K1" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1346" Ports [2, 1] Position [500, 67, 535, 103] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K1" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1347" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1348" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1349" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1350" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1351" Ports [4, 1] Position [620, 34, 655, 451] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum1" SID "1352" Ports [2, 1] Position [290, 180, 310, 200] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum4" SID "1353" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "1354" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "Ts_K1" } Block { BlockType Outport Name "delta_x_c" SID "1355" Position [875, 238, 905, 252] ZOrder -16 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Va meas" SrcPort 1 Points [60, 0] Branch { ZOrder 2 DstBlock "Sum1" DstPort 1 } Branch { ZOrder 3 DstBlock "Sum4" DstPort 2 } } Line { ZOrder 4 SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 6 SrcBlock "Va c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 7 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 9 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 10 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 11 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 12 SrcBlock "Sum" SrcPort 1 DstBlock "delta_x_c" DstPort 1 } Line { ZOrder 13 SrcBlock "Constant" SrcPort 1 Points [33, 0; 0, -40] DstBlock "Discrete-Time Integrator" DstPort 2 } Line { ZOrder 14 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 15 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 16 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "1356" Ports [4, 1] Position [720, 298, 855, 527] ZOrder 35 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1374, 776] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "Vz c" SID "1357" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1358" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1359" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1360" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "1361" Position [470, 175, 525, 205] ZOrder -5 Value "delta_e_eq" SampleTime "Ts_K2" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1362" Ports [2, 1] Position [635, 117, 670, 153] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K2" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1363" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1364" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1365" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1366" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1367" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K2" } Block { BlockType Sum Name "Sum4" SID "1368" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1369" Position [1065, 303, 1095, 317] ZOrder -13 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 2 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 3 DstBlock "Gain" DstPort 1 } } Line { ZOrder 4 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 5 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 6 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 7 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 8 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 9 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 10 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 12 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 13 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant1" SrcPort 1 Points [43, 0; 0, -45] DstBlock "Discrete-Time Integrator" DstPort 2 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1370" Ports [2, 1] Position [960, 342, 990, 373] ZOrder 106 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "delta_x_c_com -\ndelta_x_c_mon" SID "1371" Ports [2, 1] Position [960, 587, 990, 618] ZOrder 107 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "greater than\nepsilon_delta_e_c" SID "1372" Ports [1, 1] Position [1155, 347, 1295, 373] ZOrder 105 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_e_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Reference Name "greater than\nepsilon_delta_x_c" SID "1373" Ports [1, 1] Position [1155, 592, 1295, 618] ZOrder 108 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_x_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Outport Name "delta_e_c" SID "1374" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1375" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1376" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1377" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1378" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1379" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Rate Transition4" SrcPort 1 DstBlock "Vz speed control" DstPort 3 } Line { ZOrder 2 SrcBlock "Rate Transition19" SrcPort 1 DstBlock "Altitude Hold" DstPort 2 } Line { ZOrder 3 SrcBlock "Rate Transition21" SrcPort 1 DstBlock "Altitude Hold" DstPort 1 } Line { ZOrder 4 SrcBlock "h c" SrcPort 1 DstBlock "Rate Transition21" DstPort 1 } Line { ZOrder 5 SrcBlock "Rate Transition20" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 2 } Line { ZOrder 6 SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 7 SrcBlock "Rate Transition8" SrcPort 1 DstBlock "Va speed control" DstPort 3 } Line { ZOrder 8 SrcBlock "Rate Transition2" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 9 SrcBlock "Rate Transition3" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 10 SrcBlock "Rate Transition22" SrcPort 1 DstBlock "Va speed control" DstPort 4 } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } Line { ZOrder 12 SrcBlock "Rate Transition18" SrcPort 1 DstBlock "Vz speed control" DstPort 2 } Line { ZOrder 13 SrcBlock "Vz c" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 3 } Line { ZOrder 14 SrcBlock "flight mode" SrcPort 1 Points [15, 0; 0, 55] DstBlock "Multiport\nSwitch" DstPort 1 } Line { ZOrder 15 SrcBlock "Va speed control" SrcPort 1 Points [20, 0] Branch { ZOrder 16 Points [0, -75] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 2 } Branch { ZOrder 17 DstBlock "delta_x_c" DstPort 1 } } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 19 DstBlock "Rate Transition4" DstPort 1 } Branch { ZOrder 20 Points [0, 270] DstBlock "Rate Transition8" DstPort 1 } } Line { ZOrder 21 SrcBlock "az meas" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { ZOrder 22 SrcBlock "Vz speed control" SrcPort 1 Points [19, 0] Branch { ZOrder 23 Points [0, -50] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 2 } Branch { ZOrder 24 DstBlock "delta_e_c" DstPort 1 } } Line { ZOrder 25 SrcBlock "Va meas" SrcPort 1 DstBlock "Rate Transition2" DstPort 1 } Line { ZOrder 26 SrcBlock "Va c" SrcPort 1 DstBlock "Rate Transition3" DstPort 1 } Line { ZOrder 27 SrcBlock "h meas" SrcPort 1 DstBlock "Rate Transition19" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 29 Points [0, 380] DstBlock "Rate Transition22" DstPort 1 } Branch { ZOrder 30 DstBlock "Rate Transition18" DstPort 1 } } Line { ZOrder 31 SrcBlock "Altitude Hold" SrcPort 1 Points [16, 0] Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } Branch { ZOrder 33 DstBlock "Rate Transition20" DstPort 1 } } Line { ZOrder 40 SrcBlock "delta_e_c_com" SrcPort 1 Points [25, 0] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 1 } Line { ZOrder 41 SrcBlock "delta_x_c_com\n" SrcPort 1 Points [24, 0; 0, 30] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 1 } Line { ZOrder 42 SrcBlock "delta_e_c_com -\ndelta_e_c_mon" SrcPort 1 DstBlock "Abs diff delta_e_c" DstPort 1 } Line { ZOrder 43 SrcBlock "delta_x_c_com -\ndelta_x_c_mon" SrcPort 1 DstBlock "Abs diff delta_x_c1" DstPort 1 } Line { ZOrder 44 SrcBlock "Abs diff delta_e_c" SrcPort 1 DstBlock "greater than\nepsilon_delta_e_c" DstPort 1 } Line { ZOrder 45 SrcBlock "Abs diff delta_x_c1" SrcPort 1 DstBlock "greater than\nepsilon_delta_x_c" DstPort 1 } Line { ZOrder 46 SrcBlock "Logical\nOperator1" SrcPort 1 DstBlock "Logical\nOperator5" DstPort 2 } Line { ZOrder 47 SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Logical\nOperator1" DstPort 1 } Line { ZOrder 48 SrcBlock "other master in law" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 1 } Line { ZOrder 49 SrcBlock "Logical\nOperator3" SrcPort 1 Points [43, 0; 0, 55] DstBlock "Logical\nOperator5" DstPort 1 } Line { ZOrder 59 SrcBlock "Logical\nOperator5" SrcPort 1 DstBlock "Memory" DstPort 1 } Line { ZOrder 60 SrcBlock "Memory" SrcPort 1 DstBlock "master in law" DstPort 1 } Line { ZOrder 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 63 DstBlock "relay_delta_e_c" DstPort 1 } Branch { ZOrder 39 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 66 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 64 DstBlock "relay_delta_x_c" DstPort 1 } } } } Block { BlockType SubSystem Name "FCC2 error injection" SID "2025" Ports [2, 2] Position [440, 747, 565, 798] ZOrder 130 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC2 error injection" Location [1592, 0, 2974, 784] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "delta_e_c" SID "2026" Position [20, 23, 50, 37] ZOrder 127 IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c" SID "2027" Position [25, 143, 55, 157] ZOrder 133 Port "2" IconDisplay "Port number" } Block { BlockType FromWorkspace Name "Error delta e_c" SID "2028" Position [25, 78, 125, 102] ZOrder 135 VariableName "fcc2_err_delta_e_c" Interpolate off ZeroCross on OutputAfterFinalValue "Holding final value" } Block { BlockType FromWorkspace Name "Error delta x_c" SID "2029" Position [25, 198, 125, 222] ZOrder 136 VariableName "fcc2_err_delta_x_c" Interpolate off ZeroCross on OutputAfterFinalValue "Holding final value" } Block { BlockType Sum Name "Sum" SID "2030" Ports [2, 1] Position [170, 20, 190, 40] ZOrder 125 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "2031" Ports [2, 1] Position [170, 140, 190, 160] ZOrder 131 ShowName off IconShape "round" Inputs "|++" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c_err" SID "2032" Position [300, 23, 330, 37] ZOrder 130 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c_err" SID "2033" Position [300, 143, 330, 157] ZOrder 134 Port "2" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_e_c" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 2 SrcBlock "Error delta e_c" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 3 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c_err" DstPort 1 } Line { ZOrder 4 SrcBlock "delta_x_c" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 5 SrcBlock "Error delta x_c" SrcPort 1 Points [50, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 6 SrcBlock "Sum1" SrcPort 1 DstBlock "delta_x_c_err" DstPort 1 } } } Block { BlockType SubSystem Name "FCC2A" SID "1685" Ports [12, 6] Position [645, 739, 815, 906] ZOrder 34 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC2A" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "flight mode" SID "1686" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "1687" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1688" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "1689" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1690" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "1691" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1692" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1693" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1694" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "1695" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "1696" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "1697" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "1698" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "1699" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold" SID "1700" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 48 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold" Location [-8, 0, 1370, 780] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "h c" SID "1701" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1702" Position [25, 338, 55, 352] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "1703" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder -3 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [16, 52, 1875, 1183] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "140" Block { BlockType Inport Name "h_meas" SID "1704" Position [35, 273, 65, 287] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h_c" SID "1705" Position [35, 328, 65, 342] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "1706" Position [35, 393, 65, 407] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "1707" Position [450, 20, 509, 48] ZOrder -4 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "1708" Position [365, 372, 585, 408] ZOrder -5 Expr "u(2) - u(1)*Kp_h" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator1" SID "1709" Ports [2, 1] Position [660, 272, 695, 308] ZOrder -6 ShowName off InitialConditionSource "external" InitialCondition "CI_AltHold" SampleTime "Ts_h" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1710" Position [485, 264, 560, 296] ZOrder -7 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "1711" Position [485, 184, 560, 216] ZOrder -8 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID "1712" Ports [2, 1] Position [320, 371, 325, 409] ZOrder -9 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "1713" Ports [2, 1] Position [740, 190, 760, 210] ZOrder -10 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "1714" Ports [2, 1] Position [210, 270, 230, 290] ZOrder -11 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "1715" Position [1070, 193, 1100, 207] ZOrder -12 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time Integrator1" DstPort 1 } Line { ZOrder 2 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 3 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 4 SrcBlock "CI_AltHold" SrcPort 1 Points [20, 0; 0, -90] DstBlock "Discrete-Time Integrator1" DstPort 2 } Line { ZOrder 5 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 6 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 7 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 8 Points [165, 0] Branch { ZOrder 9 DstBlock "Gain" DstPort 1 } Branch { ZOrder 10 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 11 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 12 SrcBlock "Discrete-Time Integrator1" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 13 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 14 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "1716" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder -4 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1717" Position [170, 15, 229, 43] ZOrder -1 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "1718" Position [155, 70, 210, 100] ZOrder -2 ShowName off Value "Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1719" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch2" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType SubSystem Name "Descent command" SID "1720" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder -5 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1721" Position [170, 15, 229, 43] ZOrder -1 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "1722" Position [80, 70, 135, 100] ZOrder -2 ShowName off Value "-Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1723" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch4" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType If Name "Logic\nVert. Speed Command\n/ Altitude Hold" SID "1724" Ports [1, 3] Position [210, 210, 335, 280] ZOrder -6 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "1725" Position [630, 455, 660, 485] ZOrder -7 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "1726" Ports [3, 1] Position [725, 255, 765, 295] ZOrder -8 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "1727" Ports [2, 1] Position [110, 235, 130, 255] ZOrder -9 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1728" Position [910, 268, 940, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 110] DstBlock "Altitude Capture/Hold" DstPort 2 } Branch { ZOrder 3 DstBlock "Sum3" DstPort 1 } } Line { ZOrder 4 SrcBlock "h meas" SrcPort 1 Points [60, 0] Branch { ZOrder 5 DstBlock "Sum3" DstPort 2 } Branch { ZOrder 6 DstBlock "Altitude Capture/Hold" DstPort 1 } } Line { ZOrder 7 SrcBlock "Sum3" SrcPort 1 DstBlock "Logic\nVert. Speed Command\n/ Altitude Hold" DstPort 1 } Line { ZOrder 8 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 1 Points [24, 0; 0, -53] DstBlock "Climb command" DstPort ifaction } Line { ZOrder 9 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 3 Points [0, 52] DstBlock "Altitude Capture/Hold" DstPort ifaction } Line { ZOrder 10 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 2 Points [225, 0] DstBlock "Descent command" DstPort ifaction } Line { ZOrder 11 SrcBlock "Descent command" SrcPort 1 DstBlock "Merge" DstPort 2 } Line { ZOrder 12 SrcBlock "Climb command" SrcPort 1 Points [12, 0; 0, 60] DstBlock "Merge" DstPort 1 } Line { ZOrder 13 SrcBlock "Altitude Capture/Hold" SrcPort 1 Points [12, 0; 0, -65] DstBlock "Merge" DstPort 3 } Line { ZOrder 14 SrcBlock "Merge" SrcPort 1 Points [83, 0] Branch { ZOrder 15 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 16 DstBlock "Vz_c" DstPort 1 } } Line { ZOrder 17 SrcBlock "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } } } Block { BlockType Logic Name "Logical\nOperator" SID "1729" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "1730" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "1732" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "1734" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "1735" Position [1595, 445, 1625, 475] ZOrder 120 InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "1736" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition1" SID "1737" Position [575, 474, 615, 516] ZOrder 46 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition18" SID "1738" Position [575, 364, 615, 406] ZOrder 41 ForegroundColor "red" NamePlacement "alternate" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition19" SID "1739" Position [185, 229, 225, 271] ZOrder 40 ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition2" SID "1740" Position [575, 634, 615, 676] ZOrder 45 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition20" SID "1741" Position [450, 199, 490, 241] ZOrder 39 ForegroundColor "red" ShowName off OutPortSampleTimeMultiple "5" OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition21" SID "1742" Position [185, 169, 225, 211] ZOrder 38 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition22" SID "1743" Position [575, 744, 615, 786] ZOrder 37 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition3" SID "1744" Position [575, 579, 615, 621] ZOrder 44 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition4" SID "1745" Position [575, 419, 615, 461] ZOrder 43 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition8" SID "1746" Position [575, 689, 615, 731] ZOrder 42 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType SubSystem Name "Va speed control" SID "1747" Ports [4, 1] Position [720, 568, 855, 797] ZOrder 36 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, -8, 1374, 776] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "Va c" SID "1748" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1749" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1750" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1751" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "1752" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "Ts_K1" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1753" Ports [2, 1] Position [500, 67, 535, 103] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K1" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1754" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1755" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1756" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1757" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1758" Ports [4, 1] Position [620, 34, 655, 451] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum1" SID "1759" Ports [2, 1] Position [290, 180, 310, 200] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum4" SID "1760" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "1761" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "Ts_K1" } Block { BlockType Outport Name "delta_x_c" SID "1762" Position [875, 238, 905, 252] ZOrder -16 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Va meas" SrcPort 1 Points [60, 0] Branch { ZOrder 2 DstBlock "Sum1" DstPort 1 } Branch { ZOrder 3 DstBlock "Sum4" DstPort 2 } } Line { ZOrder 4 SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 6 SrcBlock "Va c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 7 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 9 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 10 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 11 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 12 SrcBlock "Sum" SrcPort 1 DstBlock "delta_x_c" DstPort 1 } Line { ZOrder 13 SrcBlock "Constant" SrcPort 1 Points [33, 0; 0, -40] DstBlock "Discrete-Time Integrator" DstPort 2 } Line { ZOrder 14 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 15 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 16 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "1763" Ports [4, 1] Position [720, 298, 855, 527] ZOrder 35 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1374, 776] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "Vz c" SID "1764" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1765" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1766" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1767" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "1768" Position [470, 175, 525, 205] ZOrder -5 Value "delta_e_eq" SampleTime "Ts_K2" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1769" Ports [2, 1] Position [635, 117, 670, 153] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K2" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1770" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1771" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1772" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1773" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1774" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K2" } Block { BlockType Sum Name "Sum4" SID "1775" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1776" Position [1065, 303, 1095, 317] ZOrder -13 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 2 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 3 DstBlock "Gain" DstPort 1 } } Line { ZOrder 4 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 5 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 6 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 7 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 8 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 9 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 10 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 12 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 13 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant1" SrcPort 1 Points [43, 0; 0, -45] DstBlock "Discrete-Time Integrator" DstPort 2 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1777" Ports [2, 1] Position [960, 342, 990, 373] ZOrder 106 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "delta_x_c_com -\ndelta_x_c_mon" SID "1778" Ports [2, 1] Position [960, 587, 990, 618] ZOrder 107 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "greater than\nepsilon_delta_e_c" SID "1779" Ports [1, 1] Position [1155, 347, 1295, 373] ZOrder 105 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_e_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Reference Name "greater than\nepsilon_delta_x_c" SID "1780" Ports [1, 1] Position [1155, 592, 1295, 618] ZOrder 108 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_x_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Outport Name "delta_e_c" SID "1781" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1782" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1783" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1784" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1785" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1786" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Rate Transition4" SrcPort 1 DstBlock "Vz speed control" DstPort 3 } Line { ZOrder 2 SrcBlock "Rate Transition19" SrcPort 1 DstBlock "Altitude Hold" DstPort 2 } Line { ZOrder 3 SrcBlock "Rate Transition21" SrcPort 1 DstBlock "Altitude Hold" DstPort 1 } Line { ZOrder 4 SrcBlock "h c" SrcPort 1 DstBlock "Rate Transition21" DstPort 1 } Line { ZOrder 5 SrcBlock "Rate Transition20" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 2 } Line { ZOrder 6 SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 7 SrcBlock "Rate Transition8" SrcPort 1 DstBlock "Va speed control" DstPort 3 } Line { ZOrder 8 SrcBlock "Rate Transition2" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 9 SrcBlock "Rate Transition3" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 10 SrcBlock "Rate Transition22" SrcPort 1 DstBlock "Va speed control" DstPort 4 } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } Line { ZOrder 12 SrcBlock "Rate Transition18" SrcPort 1 DstBlock "Vz speed control" DstPort 2 } Line { ZOrder 13 SrcBlock "Vz c" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 3 } Line { ZOrder 14 SrcBlock "flight mode" SrcPort 1 Points [15, 0; 0, 55] DstBlock "Multiport\nSwitch" DstPort 1 } Line { ZOrder 15 SrcBlock "Va speed control" SrcPort 1 Points [20, 0] Branch { ZOrder 16 Points [0, -75] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 2 } Branch { ZOrder 17 DstBlock "delta_x_c" DstPort 1 } } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 19 DstBlock "Rate Transition4" DstPort 1 } Branch { ZOrder 20 Points [0, 270] DstBlock "Rate Transition8" DstPort 1 } } Line { ZOrder 21 SrcBlock "az meas" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { ZOrder 22 SrcBlock "Vz speed control" SrcPort 1 Points [19, 0] Branch { ZOrder 23 Points [0, -50] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 2 } Branch { ZOrder 24 DstBlock "delta_e_c" DstPort 1 } } Line { ZOrder 25 SrcBlock "Va meas" SrcPort 1 DstBlock "Rate Transition2" DstPort 1 } Line { ZOrder 26 SrcBlock "Va c" SrcPort 1 DstBlock "Rate Transition3" DstPort 1 } Line { ZOrder 27 SrcBlock "h meas" SrcPort 1 DstBlock "Rate Transition19" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 29 Points [0, 380] DstBlock "Rate Transition22" DstPort 1 } Branch { ZOrder 30 DstBlock "Rate Transition18" DstPort 1 } } Line { ZOrder 31 SrcBlock "Altitude Hold" SrcPort 1 Points [16, 0] Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } Branch { ZOrder 33 DstBlock "Rate Transition20" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 65 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 64 DstBlock "relay_delta_x_c" DstPort 1 } } Line { ZOrder 40 SrcBlock "delta_e_c_com" SrcPort 1 Points [25, 0] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 1 } Line { ZOrder 41 SrcBlock "delta_x_c_com\n" SrcPort 1 Points [24, 0; 0, 30] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 1 } Line { ZOrder 42 SrcBlock "delta_e_c_com -\ndelta_e_c_mon" SrcPort 1 DstBlock "Abs diff delta_e_c" DstPort 1 } Line { ZOrder 43 SrcBlock "delta_x_c_com -\ndelta_x_c_mon" SrcPort 1 DstBlock "Abs diff delta_x_c1" DstPort 1 } Line { ZOrder 44 SrcBlock "Abs diff delta_e_c" SrcPort 1 DstBlock "greater than\nepsilon_delta_e_c" DstPort 1 } Line { ZOrder 45 SrcBlock "Abs diff delta_x_c1" SrcPort 1 DstBlock "greater than\nepsilon_delta_x_c" DstPort 1 } Line { ZOrder 46 SrcBlock "Logical\nOperator1" SrcPort 1 DstBlock "Logical\nOperator5" DstPort 2 } Line { ZOrder 47 SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Logical\nOperator1" DstPort 1 } Line { ZOrder 48 SrcBlock "other master in law" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 1 } Line { ZOrder 49 SrcBlock "Logical\nOperator3" SrcPort 1 Points [43, 0; 0, 55] DstBlock "Logical\nOperator5" DstPort 1 } Line { ZOrder 56 SrcBlock "Logical\nOperator5" SrcPort 1 DstBlock "Memory" DstPort 1 } Line { ZOrder 57 SrcBlock "Memory" SrcPort 1 DstBlock "master in law" DstPort 1 } Line { ZOrder 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 62 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } Branch { ZOrder 61 DstBlock "relay_delta_e_c" DstPort 1 } } } } Block { BlockType SubSystem Name "FCC2B" SID "1787" Ports [12, 6] Position [370, 944, 540, 1111] ZOrder 35 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC2B" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "flight mode" SID "1788" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "1789" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1790" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "1791" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1792" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "1793" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1794" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1795" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1796" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "1797" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "1798" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "1799" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "1800" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "1801" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold" SID "1802" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 48 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold" Location [-8, 0, 1370, 780] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "h c" SID "1803" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1804" Position [25, 338, 55, 352] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "1805" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder -3 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [16, 52, 1875, 1183] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "140" Block { BlockType Inport Name "h_meas" SID "1806" Position [35, 273, 65, 287] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h_c" SID "1807" Position [35, 328, 65, 342] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "1808" Position [35, 393, 65, 407] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "1809" Position [450, 20, 509, 48] ZOrder -4 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "1810" Position [365, 372, 585, 408] ZOrder -5 Expr "u(2) - u(1)*Kp_h" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator1" SID "1811" Ports [2, 1] Position [660, 272, 695, 308] ZOrder -6 ShowName off InitialConditionSource "external" InitialCondition "CI_AltHold" SampleTime "Ts_h" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1812" Position [485, 264, 560, 296] ZOrder -7 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "1813" Position [485, 184, 560, 216] ZOrder -8 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID "1814" Ports [2, 1] Position [320, 371, 325, 409] ZOrder -9 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "1815" Ports [2, 1] Position [740, 190, 760, 210] ZOrder -10 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "1816" Ports [2, 1] Position [210, 270, 230, 290] ZOrder -11 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "1817" Position [1070, 193, 1100, 207] ZOrder -12 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Discrete-Time Integrator1" DstPort 1 } Line { ZOrder 2 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 3 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 4 SrcBlock "CI_AltHold" SrcPort 1 Points [20, 0; 0, -90] DstBlock "Discrete-Time Integrator1" DstPort 2 } Line { ZOrder 5 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 6 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 7 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 8 Points [165, 0] Branch { ZOrder 9 DstBlock "Gain" DstPort 1 } Branch { ZOrder 10 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 11 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 12 SrcBlock "Discrete-Time Integrator1" SrcPort 1 Points [50, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 13 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 14 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "1818" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder -4 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1819" Position [170, 15, 229, 43] ZOrder -1 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "1820" Position [155, 70, 210, 100] ZOrder -2 ShowName off Value "Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1821" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch2" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType SubSystem Name "Descent command" SID "1822" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder -5 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [16, 52, 1636, 1145] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType ActionPort Name "Action Port" SID "1823" Position [170, 15, 229, 43] ZOrder -1 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "1824" Position [80, 70, 135, 100] ZOrder -2 ShowName off Value "-Vz_c" SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1825" Position [325, 78, 355, 92] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_switch4" SrcPort 1 DstBlock "Vz_c" DstPort 1 } } } Block { BlockType If Name "Logic\nVert. Speed Command\n/ Altitude Hold" SID "1826" Ports [1, 3] Position [210, 210, 335, 280] ZOrder -6 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "1827" Position [630, 455, 660, 485] ZOrder -7 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "1828" Ports [3, 1] Position [725, 255, 765, 295] ZOrder -8 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "1829" Ports [2, 1] Position [110, 235, 130, 255] ZOrder -9 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_h" } Block { BlockType Outport Name "Vz_c" SID "1830" Position [910, 268, 940, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 110] DstBlock "Altitude Capture/Hold" DstPort 2 } Branch { ZOrder 3 DstBlock "Sum3" DstPort 1 } } Line { ZOrder 4 SrcBlock "h meas" SrcPort 1 Points [60, 0] Branch { ZOrder 5 DstBlock "Sum3" DstPort 2 } Branch { ZOrder 6 DstBlock "Altitude Capture/Hold" DstPort 1 } } Line { ZOrder 7 SrcBlock "Sum3" SrcPort 1 DstBlock "Logic\nVert. Speed Command\n/ Altitude Hold" DstPort 1 } Line { ZOrder 8 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 1 Points [24, 0; 0, -53] DstBlock "Climb command" DstPort ifaction } Line { ZOrder 9 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 3 Points [0, 52] DstBlock "Altitude Capture/Hold" DstPort ifaction } Line { ZOrder 10 SrcBlock "Logic\nVert. Speed Command\n/ Altitude Hold" SrcPort 2 Points [225, 0] DstBlock "Descent command" DstPort ifaction } Line { ZOrder 11 SrcBlock "Descent command" SrcPort 1 DstBlock "Merge" DstPort 2 } Line { ZOrder 12 SrcBlock "Climb command" SrcPort 1 Points [12, 0; 0, 60] DstBlock "Merge" DstPort 1 } Line { ZOrder 13 SrcBlock "Altitude Capture/Hold" SrcPort 1 Points [12, 0; 0, -65] DstBlock "Merge" DstPort 3 } Line { ZOrder 14 SrcBlock "Merge" SrcPort 1 Points [83, 0] Branch { ZOrder 15 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 16 DstBlock "Vz_c" DstPort 1 } } Line { ZOrder 17 SrcBlock "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } } } Block { BlockType Logic Name "Logical\nOperator" SID "1831" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "1832" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "1834" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "1836" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "1837" Position [1595, 445, 1625, 475] ZOrder 120 X0 "init_fcc2_master_in_law" InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "1838" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType RateTransition Name "Rate Transition1" SID "1839" Position [575, 474, 615, 516] ZOrder 46 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition18" SID "1840" Position [575, 364, 615, 406] ZOrder 41 ForegroundColor "red" NamePlacement "alternate" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition19" SID "1841" Position [185, 229, 225, 271] ZOrder 40 ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition2" SID "1842" Position [575, 634, 615, 676] ZOrder 45 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition20" SID "1843" Position [450, 199, 490, 241] ZOrder 39 ForegroundColor "red" ShowName off OutPortSampleTimeMultiple "5" OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition21" SID "1844" Position [185, 169, 225, 211] ZOrder 38 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_h" } Block { BlockType RateTransition Name "Rate Transition22" SID "1845" Position [575, 744, 615, 786] ZOrder 37 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition3" SID "1846" Position [575, 579, 615, 621] ZOrder 44 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType RateTransition Name "Rate Transition4" SID "1847" Position [575, 419, 615, 461] ZOrder 43 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition8" SID "1848" Position [575, 689, 615, 731] ZOrder 42 ForegroundColor "red" ShowName off OutPortSampleTime "Ts_K1" } Block { BlockType SubSystem Name "Va speed control" SID "1849" Ports [4, 1] Position [720, 568, 855, 797] ZOrder 36 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, -8, 1374, 776] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "Va c" SID "1850" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1851" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1852" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1853" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "1854" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "Ts_K1" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1855" Ports [2, 1] Position [500, 67, 535, 103] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K1" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1856" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1857" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1858" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1859" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1860" Ports [4, 1] Position [620, 34, 655, 451] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum1" SID "1861" Ports [2, 1] Position [290, 180, 310, 200] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Sum Name "Sum4" SID "1862" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "1863" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "Ts_K1" } Block { BlockType Outport Name "delta_x_c" SID "1864" Position [875, 238, 905, 252] ZOrder -16 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Va meas" SrcPort 1 Points [60, 0] Branch { ZOrder 2 DstBlock "Sum1" DstPort 1 } Branch { ZOrder 3 DstBlock "Sum4" DstPort 2 } } Line { ZOrder 4 SrcBlock "Sum1" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 6 SrcBlock "Va c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 7 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 9 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 10 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 11 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 12 SrcBlock "Sum" SrcPort 1 DstBlock "delta_x_c" DstPort 1 } Line { ZOrder 13 SrcBlock "Constant" SrcPort 1 Points [33, 0; 0, -40] DstBlock "Discrete-Time Integrator" DstPort 2 } Line { ZOrder 14 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 15 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 16 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "1865" Ports [4, 1] Position [720, 298, 855, 527] ZOrder 35 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1374, 776] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "80" Block { BlockType Inport Name "Vz c" SID "1866" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1867" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1868" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1869" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "1870" Position [470, 175, 525, 205] ZOrder -5 Value "delta_e_eq" SampleTime "Ts_K2" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "1871" Ports [2, 1] Position [635, 117, 670, 153] ZOrder -6 InitialConditionSource "external" SampleTime "Ts_K2" ICPrevOutput "DiscIntNeverNeededParam" ICPrevScaledInput "DiscIntNeverNeededParam" } Block { BlockType Gain Name "Gain" SID "1872" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1873" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1874" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1875" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "1876" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K2" } Block { BlockType Sum Name "Sum4" SID "1877" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -12 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1878" Position [1065, 303, 1095, 317] ZOrder -13 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 2 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 3 DstBlock "Gain" DstPort 1 } } Line { ZOrder 4 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 5 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } Line { ZOrder 6 SrcBlock "Gain1" SrcPort 1 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 7 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 8 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 9 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 10 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 12 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 13 SrcBlock "Discrete-Time Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant1" SrcPort 1 Points [43, 0; 0, -45] DstBlock "Discrete-Time Integrator" DstPort 2 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1879" Ports [2, 1] Position [960, 342, 990, 373] ZOrder 106 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Sum Name "delta_x_c_com -\ndelta_x_c_mon" SID "1880" Ports [2, 1] Position [960, 587, 990, 618] ZOrder 107 Inputs "+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Reference Name "greater than\nepsilon_delta_e_c" SID "1881" Ports [1, 1] Position [1155, 347, 1295, 373] ZOrder 105 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_e_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Reference Name "greater than\nepsilon_delta_x_c" SID "1882" Ports [1, 1] Position [1155, 592, 1295, 618] ZOrder 108 LibraryVersion "1.386" SourceBlock "simulink/Logic and Bit\nOperations/Compare\nTo Constant" SourceType "Compare To Constant" ContentPreviewEnabled off relop ">" const "epsilon_delta_x_c" OutDataTypeStr "boolean" ZeroCross on } Block { BlockType Outport Name "delta_e_c" SID "1883" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1884" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1885" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1886" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1887" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1888" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Rate Transition4" SrcPort 1 DstBlock "Vz speed control" DstPort 3 } Line { ZOrder 2 SrcBlock "Rate Transition19" SrcPort 1 DstBlock "Altitude Hold" DstPort 2 } Line { ZOrder 3 SrcBlock "Rate Transition21" SrcPort 1 DstBlock "Altitude Hold" DstPort 1 } Line { ZOrder 4 SrcBlock "h c" SrcPort 1 DstBlock "Rate Transition21" DstPort 1 } Line { ZOrder 5 SrcBlock "Rate Transition20" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 2 } Line { ZOrder 6 SrcBlock "Rate Transition1" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 7 SrcBlock "Rate Transition8" SrcPort 1 DstBlock "Va speed control" DstPort 3 } Line { ZOrder 8 SrcBlock "Rate Transition2" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 9 SrcBlock "Rate Transition3" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 10 SrcBlock "Rate Transition22" SrcPort 1 DstBlock "Va speed control" DstPort 4 } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } Line { ZOrder 12 SrcBlock "Rate Transition18" SrcPort 1 DstBlock "Vz speed control" DstPort 2 } Line { ZOrder 13 SrcBlock "Vz c" SrcPort 1 DstBlock "Multiport\nSwitch" DstPort 3 } Line { ZOrder 14 SrcBlock "flight mode" SrcPort 1 Points [15, 0; 0, 55] DstBlock "Multiport\nSwitch" DstPort 1 } Line { ZOrder 15 SrcBlock "Va speed control" SrcPort 1 Points [20, 0] Branch { ZOrder 16 Points [0, -75] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 2 } Branch { ZOrder 17 DstBlock "delta_x_c" DstPort 1 } } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 19 DstBlock "Rate Transition4" DstPort 1 } Branch { ZOrder 20 Points [0, 270] DstBlock "Rate Transition8" DstPort 1 } } Line { ZOrder 21 SrcBlock "az meas" SrcPort 1 DstBlock "Rate Transition1" DstPort 1 } Line { ZOrder 22 SrcBlock "Vz speed control" SrcPort 1 Points [19, 0] Branch { ZOrder 23 Points [0, -50] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 2 } Branch { ZOrder 24 DstBlock "delta_e_c" DstPort 1 } } Line { ZOrder 25 SrcBlock "Va meas" SrcPort 1 DstBlock "Rate Transition2" DstPort 1 } Line { ZOrder 26 SrcBlock "Va c" SrcPort 1 DstBlock "Rate Transition3" DstPort 1 } Line { ZOrder 27 SrcBlock "h meas" SrcPort 1 DstBlock "Rate Transition19" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 29 Points [0, 380] DstBlock "Rate Transition22" DstPort 1 } Branch { ZOrder 30 DstBlock "Rate Transition18" DstPort 1 } } Line { ZOrder 31 SrcBlock "Altitude Hold" SrcPort 1 Points [16, 0] Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } Branch { ZOrder 33 DstBlock "Rate Transition20" DstPort 1 } } Line { ZOrder 40 SrcBlock "delta_e_c_com" SrcPort 1 Points [25, 0] DstBlock "delta_e_c_com -\ndelta_e_c_mon" DstPort 1 } Line { ZOrder 41 SrcBlock "delta_x_c_com\n" SrcPort 1 Points [24, 0; 0, 30] DstBlock "delta_x_c_com -\ndelta_x_c_mon" DstPort 1 } Line { ZOrder 42 SrcBlock "delta_e_c_com -\ndelta_e_c_mon" SrcPort 1 DstBlock "Abs diff delta_e_c" DstPort 1 } Line { ZOrder 43 SrcBlock "delta_x_c_com -\ndelta_x_c_mon" SrcPort 1 DstBlock "Abs diff delta_x_c1" DstPort 1 } Line { ZOrder 44 SrcBlock "Abs diff delta_e_c" SrcPort 1 DstBlock "greater than\nepsilon_delta_e_c" DstPort 1 } Line { ZOrder 45 SrcBlock "Abs diff delta_x_c1" SrcPort 1 DstBlock "greater than\nepsilon_delta_x_c" DstPort 1 } Line { ZOrder 46 SrcBlock "Logical\nOperator1" SrcPort 1 DstBlock "Logical\nOperator5" DstPort 2 } Line { ZOrder 47 SrcBlock "Logical\nOperator" SrcPort 1 DstBlock "Logical\nOperator1" DstPort 1 } Line { ZOrder 48 SrcBlock "other master in law" SrcPort 1 DstBlock "Logical\nOperator3" DstPort 1 } Line { ZOrder 49 SrcBlock "Logical\nOperator3" SrcPort 1 Points [43, 0; 0, 55] DstBlock "Logical\nOperator5" DstPort 1 } Line { ZOrder 56 SrcBlock "Logical\nOperator5" SrcPort 1 DstBlock "Memory" DstPort 1 } Line { ZOrder 57 SrcBlock "Memory" SrcPort 1 DstBlock "master in law" DstPort 1 } Line { ZOrder 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 84 DstBlock "relay_delta_e_c" DstPort 1 } Branch { ZOrder 39 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 87 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 85 DstBlock "relay_delta_x_c" DstPort 1 } } } } Block { BlockType SubSystem Name "Flight Dynamics " SID "415" Ports [2, 5] Position [800, 166, 930, 224] ZOrder -6 BackgroundColor "green" RequestExecContextInheritance off Variant off System { Name "Flight Dynamics " Location [-8, -8, 1608, 908] 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 "150" Block { BlockType Inport Name "T" SID "416" Position [40, 63, 70, 77] ZOrder -1 ShowName off IconDisplay "Signal name" } Block { BlockType Inport Name "delta_e" SID "417" Position [40, 243, 70, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Fcn Name "Airspeed Va " SID "418" Position [730, 85, 790, 115] ZOrder -3 Expr "sqrt(u(1)^2+u(2)^2)" } Block { BlockType Fcn Name "Altitude h" SID "419" Position [730, 305, 790, 335] ZOrder -4 Expr "u(5)" } Block { BlockType DiscreteIntegrator Name "Discrete-Time Integrator" SID "548" Ports [1, 1] Position [495, 262, 530, 298] ZOrder -5 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] ZOrder -6 RequestExecContextInheritance off Variant off System { Name "Flight Dynamics Model" Location [1592, -8, 2974, 776] 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 "x" SID "422" Position [35, 208, 65, 222] ZOrder -1 IconDisplay "Port number" } Block { BlockType SubSystem Name "Aerodynamic Coefficients" SID "423" Ports [4, 3] Position [370, 246, 485, 309] ZOrder -2 RequestExecContextInheritance off Variant off System { Name "Aerodynamic Coefficients" Location [1592, -8, 2974, 776] 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 "80" Block { BlockType Inport Name "de" SID "424" Position [55, 108, 85, 122] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "alpha" SID "425" Position [55, 193, 85, 207] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q" SID "426" Position [55, 613, 85, 627] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "V" SID "427" Position [55, 713, 85, 727] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "CD0" SID "428" Position [315, 15, 345, 45] ZOrder -5 ShowName off Value "CD_0" } Block { BlockType Constant Name "Cm0" SID "429" Position [320, 450, 350, 480] ZOrder -6 ShowName off Value "Cm_0" } Block { BlockType Gain Name "Gain" SID "430" Position [315, 92, 410, 138] ZOrder -7 ShowName off Gain "CD_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "431" Position [315, 173, 385, 227] ZOrder -8 ShowName off Gain "CD_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "432" Position [315, 287, 385, 333] ZOrder -9 ShowName off Gain "CL_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" SID "433" Position [315, 368, 385, 422] ZOrder -10 ShowName off Gain "CL_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "434" Position [320, 512, 395, 558] ZOrder -11 ShowName off Gain "Cm_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "435" Position [320, 573, 390, 627] ZOrder -12 ShowName off Gain "Cm_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" SID "436" Position [320, 648, 390, 702] ZOrder -13 ShowName off Gain "Cm_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID "437" Position [225, 648, 295, 702] ZOrder -14 ShowName off Gain "cbar/2" SaturateOnIntegerOverflow off } Block { BlockType Math Name "Math\nFunction" SID "438" Ports [1, 1] Position [215, 185, 245, 215] ZOrder -15 Operator "magnitude^2" } Block { BlockType Product Name "Product" SID "439" Ports [2, 1] Position [175, 657, 205, 688] ZOrder -16 Inputs "*/" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "440" Ports [3, 1] Position [495, 105, 515, 125] ZOrder -17 ShowName off IconShape "round" Inputs "+++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "441" Ports [2, 1] Position [125, 190, 145, 210] ZOrder -18 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum2" SID "442" Ports [2, 1] Position [495, 300, 515, 320] ZOrder -19 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum3" SID "443" Ports [4, 1] Position [500, 555, 520, 575] ZOrder -20 ShowName off IconShape "round" Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Constant Name "alpha0" SID "444" Position [40, 255, 85, 285] ZOrder -21 Value "alpha_0" } Block { BlockType Outport Name "CD\nDrag coefficient" SID "445" Position [580, 108, 610, 122] ZOrder -22 IconDisplay "Port number" } Block { BlockType Outport Name "CL\nLift coefficient" SID "446" Position [580, 303, 610, 317] ZOrder -23 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Cm\nPitching coefficient" SID "447" Position [580, 558, 610, 572] ZOrder -24 Port "3" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "de" SrcPort 1 Points [90, 0] Branch { ZOrder 2 DstBlock "Gain" DstPort 1 } Branch { ZOrder 3 Points [0, 195] Branch { ZOrder 4 DstBlock "Gain2" DstPort 1 } Branch { ZOrder 5 Points [0, 225] DstBlock "Gain4" DstPort 1 } } } Line { ZOrder 6 SrcBlock "CD0" SrcPort 1 Points [155, 0] DstBlock "Sum" DstPort 1 } Line { ZOrder 7 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 8 SrcBlock "Gain1" SrcPort 1 Points [115, 0] DstBlock "Sum" DstPort 3 } Line { ZOrder 9 SrcBlock "Sum" SrcPort 1 DstBlock "CD\nDrag coefficient" DstPort 1 } Line { ZOrder 10 SrcBlock "alpha" SrcPort 1 Points [10, 0] Branch { ZOrder 11 DstBlock "Sum1" DstPort 1 } Branch { ZOrder 12 Points [0, 400] DstBlock "Gain5" DstPort 1 } } Line { ZOrder 13 SrcBlock "alpha0" SrcPort 1 Points [45, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 14 SrcBlock "Sum1" SrcPort 1 Points [15, 0] Branch { ZOrder 15 DstBlock "Math\nFunction" DstPort 1 } Branch { ZOrder 16 Points [0, 195] DstBlock "Gain3" DstPort 1 } } Line { ZOrder 17 SrcBlock "Math\nFunction" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 18 SrcBlock "Gain3" SrcPort 1 Points [115, 0] DstBlock "Sum2" DstPort 2 } Line { ZOrder 19 SrcBlock "Sum2" SrcPort 1 DstBlock "CL\nLift coefficient" DstPort 1 } Line { ZOrder 20 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum2" DstPort 1 } Line { ZOrder 21 SrcBlock "Cm0" SrcPort 1 Points [155, 0] DstBlock "Sum3" DstPort 1 } Line { ZOrder 22 SrcBlock "Gain4" SrcPort 1 Points [89, 0] DstBlock "Sum3" DstPort 2 } Line { ZOrder 23 SrcBlock "Gain5" SrcPort 1 Points [94, 0] DstBlock "Sum3" DstPort 3 } Line { ZOrder 24 SrcBlock "Sum3" SrcPort 1 DstBlock "Cm\nPitching coefficient" DstPort 1 } Line { ZOrder 25 SrcBlock "Gain6" SrcPort 1 Points [115, 0] DstBlock "Sum3" DstPort 4 } Line { ZOrder 26 SrcBlock "q" SrcPort 1 Points [35, 0; 0, 45] DstBlock "Product" DstPort 1 } Line { ZOrder 27 SrcBlock "V" SrcPort 1 Points [35, 0; 0, -40] DstBlock "Product" DstPort 2 } Line { ZOrder 28 SrcBlock "Product" SrcPort 1 DstBlock "Gain7" DstPort 1 } Line { ZOrder 29 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] ZOrder -3 RequestExecContextInheritance off Variant off System { Name "Aerodynamic Forces\nand Moment" Location [1592, -8, 2974, 776] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "CD" SID "450" Position [55, 28, 85, 42] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "CL" SID "451" Position [55, 253, 85, 267] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Cm" SID "452" Position [55, 373, 85, 387] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "qbar" SID "453" Position [55, 478, 85, 492] ZOrder -5 Port "5" IconDisplay "Port number" } Block { BlockType Gain Name "Gain1" SID "454" Position [235, 458, 305, 512] ZOrder -6 ShowName off Gain "S" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID "455" Position [235, 353, 305, 407] ZOrder -7 ShowName off Gain "cbar" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" SID "456" Ports [2, 1] Position [255, 27, 285, 58] ZOrder -8 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" SID "457" Ports [2, 1] Position [255, 92, 285, 123] ZOrder -9 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" SID "458" Ports [2, 1] Position [255, 172, 285, 203] ZOrder -10 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" SID "459" Ports [2, 1] Position [255, 237, 285, 268] ZOrder -11 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product5" SID "460" Ports [2, 1] Position [615, 127, 645, 158] ZOrder -12 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product6" SID "461" Ports [2, 1] Position [615, 287, 645, 318] ZOrder -13 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product7" SID "462" Ports [2, 1] Position [615, 462, 645, 493] ZOrder -14 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "463" Ports [2, 1] Position [390, 205, 410, 225] ZOrder -15 ShowName off IconShape "round" Inputs "-+" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum4" SID "464" Ports [2, 1] Position [340, 65, 360, 85] ZOrder -16 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] ZOrder -17 ShowName off } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" SID "466" Ports [1, 1] Position [140, 140, 170, 170] ZOrder -18 ShowName off Operator "cos" } Block { BlockType Outport Name "Xa\nXb-force\n" SID "467" Position [730, 138, 760, 152] ZOrder -19 IconDisplay "Port number" } Block { BlockType Outport Name "Za\nZb-force" SID "468" Position [730, 298, 760, 312] ZOrder -20 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Ma\nPitching moment" SID "469" Position [730, 473, 760, 487] ZOrder -21 Port "3" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Product5" SrcPort 1 DstBlock "Xa\nXb-force\n" DstPort 1 } Line { ZOrder 2 SrcBlock "Product6" SrcPort 1 DstBlock "Za\nZb-force" DstPort 1 } Line { ZOrder 3 SrcBlock "Product7" SrcPort 1 DstBlock "Ma\nPitching moment" DstPort 1 } Line { ZOrder 4 SrcBlock "alpha" SrcPort 1 Points [15, 0] Branch { ZOrder 5 Points [0, -20] DstBlock "Trigonometric\nFunction" DstPort 1 } Branch { ZOrder 6 Points [0, 20] DstBlock "Trigonometric\nFunction1" DstPort 1 } } Line { ZOrder 7 SrcBlock "CD" SrcPort 1 Points [130, 0] Branch { ZOrder 8 DstBlock "Product1" DstPort 1 } Branch { ZOrder 9 Points [0, 65] DstBlock "Product2" DstPort 1 } } Line { ZOrder 10 SrcBlock "Trigonometric\nFunction" SrcPort 1 Points [30, 0] Branch { ZOrder 11 Points [0, -65] DstBlock "Product1" DstPort 2 } Branch { ZOrder 12 Points [0, 130] DstBlock "Product4" DstPort 1 } } Line { ZOrder 13 SrcBlock "Trigonometric\nFunction1" SrcPort 1 Points [45, 0] Branch { ZOrder 14 Points [0, -40] DstBlock "Product2" DstPort 2 } Branch { ZOrder 15 Points [0, 25] DstBlock "Product3" DstPort 1 } } Line { ZOrder 16 SrcBlock "CL" SrcPort 1 Points [130, 0] Branch { ZOrder 17 DstBlock "Product4" DstPort 2 } Branch { ZOrder 18 Points [0, -65] DstBlock "Product3" DstPort 2 } } Line { ZOrder 19 SrcBlock "Product4" SrcPort 1 Points [110, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 20 SrcBlock "Product2" SrcPort 1 Points [110, 0] DstBlock "Sum1" DstPort 1 } Line { ZOrder 21 SrcBlock "Product1" SrcPort 1 Points [60, 0] DstBlock "Sum4" DstPort 1 } Line { ZOrder 22 SrcBlock "Product3" SrcPort 1 Points [60, 0] DstBlock "Sum4" DstPort 2 } Line { ZOrder 23 SrcBlock "Sum4" SrcPort 1 Points [155, 0; 0, 220] DstBlock "Product6" DstPort 1 } Line { ZOrder 24 SrcBlock "Cm" SrcPort 1 DstBlock "Gain7" DstPort 1 } Line { ZOrder 25 SrcBlock "Gain7" SrcPort 1 Points [290, 0] DstBlock "Product7" DstPort 1 } Line { ZOrder 26 SrcBlock "Sum1" SrcPort 1 Points [55, 0; 0, -80] DstBlock "Product5" DstPort 1 } Line { ZOrder 27 SrcBlock "qbar" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 28 SrcBlock "Gain1" SrcPort 1 Points [250, 0] Branch { ZOrder 29 Points [20, 0] Branch { ZOrder 30 DstBlock "Product7" DstPort 2 } Branch { ZOrder 31 Points [0, -175] DstBlock "Product6" DstPort 2 } } Branch { ZOrder 32 Points [0, -335] DstBlock "Product5" DstPort 2 } } } } Block { BlockType Gain Name "Gain" SID "542" Position [1045, 20, 1100, 50] ZOrder -4 Gain "180/pi" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID "470" Ports [5, 1] Position [1140, 386, 1145, 464] ZOrder -5 ShowName off Inputs "5" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" SID "471" Ports [2, 1] Position [335, 36, 340, 154] ZOrder -6 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" SID "472" Ports [3, 1] Position [730, 169, 735, 231] ZOrder -7 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" SID "473" Ports [2, 1] Position [785, 394, 790, 456] ZOrder -8 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope" SID "538" Ports [1] Position [1170, 19, 1200, 51] ZOrder -9 ScopeSpecificationString "C++SS(StrPVP('Location','[188, 390, 512, 629]'),StrPVP('Open','off'),MxPVP('AxesTitle" "s',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','-0.001'),StrPVP('YMax'" ",'0.011'),StrPVP('DataFormat','StructureWithTime'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime" "','0'),StrPVP('ScrollMode','off'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Scope1" SID "543" Ports [1] Position [370, 4, 400, 36] ZOrder -10 ScopeSpecificationString "C++SS(StrPVP('Location','[1, 71, 1681, 1016]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','-0.001'),StrPVP('YMax'," "'0.011'),StrPVP('SaveName','ScopeData3'),StrPVP('DataFormat','StructureWithTime'),StrPVP('LimitDataPoints','off" "'),StrPVP('BlockParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('Decimation','1'),StrPVP('BlockParamSam" "pleInput','off'))" } Block { BlockType Sum Name "Sum" SID "539" Ports [2, 1] Position [1000, 25, 1020, 45] ZOrder -11 ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Fcn Name "V\nAirspeed" SID "474" Position [185, 110, 245, 140] ZOrder -12 Expr "sqrt(u(3)^2+u(4)^2)" } Block { BlockType Fcn Name "alpha\nAngle of attack" SID "475" Position [185, 165, 245, 195] ZOrder -13 Expr "atan(u(4)/u(3))" } Block { BlockType Selector Name "de\nElevator deflection" SID "476" Ports [1, 1] Position [195, 236, 235, 274] ZOrder -14 InputPortWidth "7" IndexOptions "Index vector (dialog)" Indices "[2]" OutputSizes "1" } Block { BlockType Fcn Name "hdot" SID "477" Position [850, 510, 1030, 540] ZOrder -15 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] ZOrder -16 InputPortWidth "7" IndexOptions "Index vector (dialog)" Indices "[5]" OutputSizes "1" } Block { BlockType Fcn Name "qbar\nDynamic pressure" SID "479" Position [395, 80, 455, 110] ZOrder -17 Expr "0.5*u(1)*u(2)^2" } Block { BlockType Fcn Name "qdot" SID "480" Position [850, 410, 1030, 440] ZOrder -18 Expr "1/I_y*u(10)" } Block { BlockType Fcn Name "rho\nAir density" SID "481" Position [185, 50, 245, 80] ZOrder -19 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] ZOrder -20 Expr "u(6)" } Block { BlockType Fcn Name "thetadot" SID "482" Position [850, 460, 1030, 490] ZOrder -21 Expr "u(5)" } Block { BlockType Fcn Name "udot" SID "483" Position [850, 310, 1030, 340] ZOrder -22 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] ZOrder -23 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] ZOrder -24 IconDisplay "Port number" } Block { BlockType Outport Name "xdot" SID "486" Position [1170, 418, 1200, 432] ZOrder -25 Port "2" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "udot" SrcPort 1 Points [70, 0; 0, 70] DstBlock "Mux" DstPort 1 } Line { ZOrder 2 SrcBlock "wdot" SrcPort 1 Points [50, 0; 0, 35] DstBlock "Mux" DstPort 2 } Line { ZOrder 3 SrcBlock "qdot" SrcPort 1 DstBlock "Mux" DstPort 3 } Line { ZOrder 4 SrcBlock "thetadot" SrcPort 1 Points [50, 0; 0, -35] DstBlock "Mux" DstPort 4 } Line { ZOrder 5 SrcBlock "hdot" SrcPort 1 Points [65, 0; 0, -70] DstBlock "Mux" DstPort 5 } Line { ZOrder 6 SrcBlock "Mux" SrcPort 1 DstBlock "xdot" DstPort 1 } Line { ZOrder 7 SrcBlock "x" SrcPort 1 Points [35, 0] Branch { ZOrder 8 Points [0, 40] Branch { ZOrder 9 DstBlock "de\nElevator deflection" DstPort 1 } Branch { ZOrder 10 Points [0, 70] Branch { ZOrder 11 DstBlock "q\nPitch rate" DstPort 1 } Branch { ZOrder 12 Points [0, 85] DstBlock "Mux3" DstPort 1 } } } Branch { ZOrder 13 Points [0, -35] Branch { ZOrder 14 Points [0, -55] Branch { ZOrder 15 Points [0, -60] DstBlock "rho\nAir density" DstPort 1 } Branch { ZOrder 16 DstBlock "V\nAirspeed" DstPort 1 } } Branch { ZOrder 17 DstBlock "alpha\nAngle of attack" DstPort 1 } } } Line { ZOrder 18 SrcBlock "rho\nAir density" SrcPort 1 Points [53, 0] Branch { ZOrder 19 Points [0, -45] DstBlock "Scope1" DstPort 1 } Branch { ZOrder 20 DstBlock "Mux1" DstPort 1 } } Line { ZOrder 21 SrcBlock "V\nAirspeed" SrcPort 1 Points [55, 0] Branch { ZOrder 22 DstBlock "Mux1" DstPort 2 } Branch { ZOrder 23 Points [0, 175] DstBlock "Aerodynamic Coefficients" DstPort 4 } } Line { ZOrder 24 SrcBlock "Mux1" SrcPort 1 DstBlock "qbar\nDynamic pressure" DstPort 1 } Line { ZOrder 25 SrcBlock "de\nElevator deflection" SrcPort 1 DstBlock "Aerodynamic Coefficients" DstPort 1 } Line { ZOrder 26 SrcBlock "alpha\nAngle of attack" SrcPort 1 Points [100, 0] Branch { ZOrder 27 Points [143, 0] Branch { ZOrder 28 DstBlock "Aerodynamic Forces\nand Moment" DstPort 1 } Branch { ZOrder 29 Points [0, 65; 517, 0] DstBlock "Sum" DstPort 2 } } Branch { ZOrder 30 Points [0, 90] DstBlock "Aerodynamic Coefficients" DstPort 2 } } Line { ZOrder 31 SrcBlock "q\nPitch rate" SrcPort 1 Points [75, 0; 0, -40] DstBlock "Aerodynamic Coefficients" DstPort 3 } Line { ZOrder 32 SrcBlock "qbar\nDynamic pressure" SrcPort 1 Points [70, 0; 0, 125] DstBlock "Aerodynamic Forces\nand Moment" DstPort 5 } Line { ZOrder 33 SrcBlock "Aerodynamic Coefficients" SrcPort 1 Points [10, 0; 0, -70] DstBlock "Aerodynamic Forces\nand Moment" DstPort 2 } Line { ZOrder 34 SrcBlock "Aerodynamic Coefficients" SrcPort 2 Points [20, 0; 0, -80] DstBlock "Aerodynamic Forces\nand Moment" DstPort 3 } Line { ZOrder 35 SrcBlock "Aerodynamic Coefficients" SrcPort 3 Points [30, 0; 0, -90] DstBlock "Aerodynamic Forces\nand Moment" DstPort 4 } Line { ZOrder 36 SrcBlock "Aerodynamic Forces\nand Moment" SrcPort 1 DstBlock "Mux2" DstPort 1 } Line { ZOrder 37 SrcBlock "Aerodynamic Forces\nand Moment" SrcPort 2 Points [5, 0] Branch { ZOrder 38 Points [0, -100] DstBlock "Za" DstPort 1 } Branch { ZOrder 39 DstBlock "Mux2" DstPort 2 } } Line { ZOrder 40 SrcBlock "Aerodynamic Forces\nand Moment" SrcPort 3 DstBlock "Mux2" DstPort 3 } Line { ZOrder 41 SrcBlock "Mux2" SrcPort 1 Points [15, 0; 0, 240] DstBlock "Mux3" DstPort 2 } Line { ZOrder 42 SrcBlock "Mux3" SrcPort 1 Points [35, 0] Branch { ZOrder 43 Points [0, -50] Branch { ZOrder 44 Points [0, -50] Branch { ZOrder 45 Points [0, -290] DstBlock "theta" DstPort 1 } Branch { ZOrder 46 DstBlock "udot" DstPort 1 } } Branch { ZOrder 47 DstBlock "wdot" DstPort 1 } } Branch { ZOrder 48 DstBlock "qdot" DstPort 1 } Branch { ZOrder 49 Points [0, 50] Branch { ZOrder 50 DstBlock "thetadot" DstPort 1 } Branch { ZOrder 51 Points [0, 50] DstBlock "hdot" DstPort 1 } } } Line { ZOrder 52 SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { ZOrder 53 SrcBlock "theta" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 54 SrcBlock "Gain" SrcPort 1 DstBlock "Scope" DstPort 1 } } } Block { BlockType Mux Name "Mux" SID "487" Ports [3, 1] Position [140, 231, 145, 269] ZOrder -7 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" SID "488" Ports [2, 1] Position [605, 191, 610, 229] ZOrder -8 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "Norm. Acc. az " SID "490" Position [730, 140, 790, 170] ZOrder -9 Expr "g0*cos(u(4))+1/mass*u(6)" } Block { BlockType Fcn Name "Pitch Rate q " SID "489" Position [730, 195, 790, 225] ZOrder -10 Expr "u(3)" } Block { BlockType Fcn Name "Vert. Speed Vz" SID "491" Position [730, 250, 790, 280] ZOrder -11 Expr "u(2)*cos(u(4)) - u(1)*sin(u(4))" } Block { BlockType Outport Name "Va" SID "492" Position [895, 93, 925, 107] ZOrder -12 IconDisplay "Port number" } Block { BlockType Outport Name "az" SID "493" Position [895, 148, 925, 162] ZOrder -13 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "q" SID "494" Position [895, 203, 925, 217] ZOrder -14 Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Vz" SID "495" Position [895, 258, 925, 272] ZOrder -15 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "h" SID "496" Position [895, 313, 925, 327] ZOrder -16 Port "5" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_e" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { ZOrder 2 SrcBlock "Discrete-Time Integrator" SrcPort 1 Points [45, 0] Branch { ZOrder 3 Points [0, 135; -455, 0] DstBlock "Mux" DstPort 3 } Branch { ZOrder 4 Points [0, -80] DstBlock "Mux1" DstPort 1 } } Line { ZOrder 5 SrcBlock "T" SrcPort 1 Points [50, 0] DstBlock "Mux" DstPort 1 } Line { ZOrder 6 SrcBlock "Mux" SrcPort 1 DstBlock "Flight Dynamics Model" DstPort 1 } Line { ZOrder 7 SrcBlock "Flight Dynamics Model" SrcPort 2 DstBlock "Discrete-Time Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "Altitude h" SrcPort 1 DstBlock "h" DstPort 1 } Line { ZOrder 9 SrcBlock "Vert. Speed Vz" SrcPort 1 DstBlock "Vz" DstPort 1 } Line { ZOrder 10 SrcBlock "Pitch Rate q " SrcPort 1 DstBlock "q" DstPort 1 } Line { ZOrder 11 SrcBlock "Norm. Acc. az " SrcPort 1 DstBlock "az" DstPort 1 } Line { ZOrder 12 SrcBlock "Airspeed Va " SrcPort 1 DstBlock "Va" DstPort 1 } Line { ZOrder 13 SrcBlock "Flight Dynamics Model" SrcPort 1 DstBlock "Mux1" DstPort 2 } Line { ZOrder 14 SrcBlock "Mux1" SrcPort 1 Points [50, 0] Branch { ZOrder 15 DstBlock "Pitch Rate q " DstPort 1 } Branch { ZOrder 16 Points [0, -55] Branch { ZOrder 17 DstBlock "Norm. Acc. az " DstPort 1 } Branch { ZOrder 18 Points [0, -55] DstBlock "Airspeed Va " DstPort 1 } } Branch { ZOrder 19 Points [0, 55] Branch { ZOrder 20 DstBlock "Vert. Speed Vz" DstPort 1 } Branch { ZOrder 21 Points [0, 55] DstBlock "Altitude h" DstPort 1 } } } Annotation { SID "611" Name "T" Position [52, 83, 60, 97] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off HorizontalAlignment "left" VerticalAlignment "top" ZOrder -1 } } } Block { BlockType Constant Name "Flight Mode" SID "553" Position [1145, 355, 1220, 385] ZOrder -7 BlockMirror on ForegroundColor "red" BackgroundColor "yellow" Value "Flight_Mode" SampleTime "Ts_K2" } Block { BlockType RateTransition Name "Rate Transition13" SID "314" Position [245, 109, 285, 151] ZOrder -12 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] ZOrder -13 ForegroundColor "red" ShowName off X0 "delta_e_eq" OutPortSampleTime "dt_de" } Block { BlockType RateTransition Name "Sampler" SID "515" Position [1315, 424, 1355, 466] ZOrder -21 BlockMirror on ForegroundColor "red" ShowName off X0 "h_eq" OutPortSampleTime "Ts_f_h" } Block { BlockType RateTransition Name "Sampler1" SID "525" Position [1315, 564, 1355, 606] ZOrder -22 BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_f_q" } Block { BlockType RateTransition Name "Sampler2" SID "510" Position [1315, 634, 1355, 676] ZOrder -23 BlockMirror on ForegroundColor "red" ShowName off OutPortSampleTime "Ts_f_az" } Block { BlockType RateTransition Name "Sampler3" SID "500" Position [1315, 709, 1355, 751] ZOrder -24 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] ZOrder -25 ScopeSpecificationString "C++SS(StrPVP('Location','[54, 130, 1666, 986]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','1" "0100.5'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','ScopeData1'),StrPVP('LimitDataPoints','off'),StrPVP('" "BlockParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrP" "VP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Throttle" SID "554" Ports [1] Position [475, 44, 505, 76] ZOrder -26 ScopeSpecificationString "C++SS(StrPVP('Location','[54, 130, 1666, 986]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','1" "0100.5'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','ScopeData4'),StrPVP('LimitDataPoints','off'),StrPVP('" "BlockParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrP" "VP('BlockParamSampleInput','off'))" } Block { BlockType ToWorkspace Name "To Workspace1" SID "344" Ports [1] Position [325, 45, 410, 75] ZOrder -27 ShowName off VariableName "data_delta_x_c" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace2" SID "345" Ports [1] Position [325, 200, 410, 230] ZOrder -28 ShowName off VariableName "data_delta_e_c" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace3" SID "348" Ports [1] Position [1685, 20, 1770, 50] ZOrder -29 ShowName off VariableName "data_h" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace4" SID "349" Ports [1] Position [1685, 55, 1770, 85] ZOrder -30 ShowName off VariableName "data_Vz" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace5" SID "350" Ports [1] Position [1685, 90, 1770, 120] ZOrder -31 ShowName off VariableName "data_q" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace6" SID "351" Ports [1] Position [1685, 125, 1770, 155] ZOrder -32 ShowName off VariableName "data_az" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace7" SID "352" Ports [1] Position [1685, 160, 1770, 190] ZOrder -33 ShowName off VariableName "data_Va" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace8" SID "2034" Ports [1] Position [525, 390, 610, 420] ZOrder 131 BlockMirror on ShowName off VariableName "data_Vzc" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType Scope Name "Va" SID "119" Ports [1] Position [1710, 239, 1740, 271] ZOrder -34 ScopeSpecificationString "C++SS(StrPVP('Location','[267, 71, 1555, 887]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('SaveName','ScopeData2'),StrPVP(" "'DataFormat','StructureWithTime'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0'),StrPVP('Scr" "ollMode','off'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType SubSystem Name "Va filter" SID "497" Ports [1, 1] Position [1145, 704, 1275, 756] ZOrder -35 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "Va filter" Location [16, 52, 1662, 1231] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID "499" Position [280, 26, 390, 64] ZOrder -2 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] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "Va meas" DstPort 1 } Line { ZOrder 2 SrcBlock "Va" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType Scope Name "Vz" SID "388" Ports [1] Position [1710, 294, 1740, 326] ZOrder -37 ScopeSpecificationString "C++SS(StrPVP('Location','[385, 81, 1490, 937]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','-7'),StrPVP('YMax','0.5'" "),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','h2'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampl" "eTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockParamS" "ampleInput','off'))" } Block { BlockType SubSystem Name "Vz filter " SID "502" Ports [1, 1] Position [1145, 494, 1275, 546] ZOrder -38 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "Vz filter " Location [-8, 0, 1608, 916] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID "504" Position [250, 26, 360, 64] ZOrder -2 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] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "Vz meas" DstPort 1 } Line { ZOrder 2 SrcBlock "Vz" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "az filter" SID "507" Ports [1, 1] Position [1145, 629, 1275, 681] ZOrder -41 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "az filter" Location [16, 52, 1662, 1231] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID "509" Position [220, 26, 330, 64] ZOrder -2 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] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "az meas" DstPort 1 } Line { ZOrder 2 SrcBlock "az" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "delta_c cable" SID "954" Ports [8, 2] Position [70, 578, 200, 822] ZOrder 26 BlockMirror on RequestExecContextInheritance off Variant off System { Name "delta_c cable" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "delta_e_c_1" SID "955" Position [30, 38, 60, 52] ZOrder 25 IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_1" SID "956" Position [30, 378, 60, 392] ZOrder 26 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_e_c_1" SID "957" Position [30, 93, 60, 107] ZOrder 27 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_x_c_1" SID "958" Position [30, 433, 60, 447] ZOrder 28 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_2" SID "959" Position [30, 148, 60, 162] ZOrder 29 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_2" SID "960" Position [30, 488, 60, 502] ZOrder 30 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_e_c_2" SID "961" Position [30, 203, 60, 217] ZOrder 31 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_x_c_2" SID "962" Position [30, 543, 60, 557] ZOrder 32 Port "8" IconDisplay "Port number" } Block { BlockType SubSystem Name "cable delta_e_c" SID "963" Ports [4, 1] Position [255, 12, 405, 243] ZOrder 22 RequestExecContextInheritance off Variant off System { Name "cable delta_e_c" Location [-8, 0, 1608, 916] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "delta_c_1" SID "964" Position [120, 163, 150, 177] ZOrder 22 IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_1" SID "965" Position [120, 128, 150, 142] ZOrder 23 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "delta_c_2" SID "966" Position [120, 258, 150, 272] ZOrder 24 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_2" SID "967" Position [120, 223, 150, 237] ZOrder 25 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "default delta_c" SID "968" Position [120, 340, 150, 370] ZOrder 21 Value "0" } Block { BlockType MultiPortSwitch Name "delta_c\nswitch 1" SID "969" Ports [3, 1] Position [310, 143, 345, 197] ZOrder 20 DataPortOrder "Zero-based contiguous" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType MultiPortSwitch Name "delta_c\nswitch 2" SID "970" Ports [3, 1] Position [310, 238, 345, 292] ZOrder 19 DataPortOrder "Zero-based contiguous" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_c" SID "971" Position [400, 163, 430, 177] ZOrder 26 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_c\nswitch 1" SrcPort 1 DstBlock "delta_c" DstPort 1 } Line { ZOrder 2 SrcBlock "relay delta_c_1" SrcPort 1 Points [98, 0; 0, 15] DstBlock "delta_c\nswitch 1" DstPort 1 } Line { ZOrder 3 SrcBlock "delta_c\nswitch 2" SrcPort 1 Points [9, 0; 0, -34; -63, 0; 0, -41] DstBlock "delta_c\nswitch 1" DstPort 3 } Line { ZOrder 4 SrcBlock "relay delta_c_2" SrcPort 1 Points [65, 0; 0, 15] DstBlock "delta_c\nswitch 2" DstPort 1 } Line { ZOrder 5 SrcBlock "delta_c_2" SrcPort 1 DstBlock "delta_c\nswitch 2" DstPort 2 } Line { ZOrder 6 SrcBlock "default delta_c" SrcPort 1 Points [65, 0; 0, -70] DstBlock "delta_c\nswitch 2" DstPort 3 } Line { ZOrder 7 SrcBlock "delta_c_1" SrcPort 1 DstBlock "delta_c\nswitch 1" DstPort 2 } } } Block { BlockType SubSystem Name "cable delta_x_c" SID "972" Ports [4, 1] Position [255, 352, 405, 583] ZOrder 24 RequestExecContextInheritance off Variant off System { Name "cable delta_x_c" Location [-8, 0, 1604, 912] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "A4" PaperUnits "centimeters" TiledPaperMargins [1.270000, 1.270000, 1.270000, 1.270000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "125" Block { BlockType Inport Name "delta_c_1" SID "973" Position [120, 163, 150, 177] ZOrder 22 IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_1" SID "974" Position [120, 128, 150, 142] ZOrder 23 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "delta_c_2" SID "975" Position [120, 258, 150, 272] ZOrder 24 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_2" SID "976" Position [120, 223, 150, 237] ZOrder 25 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "default delta_c" SID "977" Position [120, 340, 150, 370] ZOrder 21 Value "0" } Block { BlockType MultiPortSwitch Name "delta_c\nswitch 1" SID "978" Ports [3, 1] Position [310, 143, 345, 197] ZOrder 20 DataPortOrder "Zero-based contiguous" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType MultiPortSwitch Name "delta_c\nswitch 2" SID "979" Ports [3, 1] Position [310, 238, 345, 292] ZOrder 19 DataPortOrder "Zero-based contiguous" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_c" SID "980" Position [400, 163, 430, 177] ZOrder 26 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_c\nswitch 1" SrcPort 1 DstBlock "delta_c" DstPort 1 } Line { ZOrder 2 SrcBlock "relay delta_c_1" SrcPort 1 Points [98, 0; 0, 15] DstBlock "delta_c\nswitch 1" DstPort 1 } Line { ZOrder 3 SrcBlock "delta_c\nswitch 2" SrcPort 1 Points [9, 0; 0, -34; -63, 0; 0, -41] DstBlock "delta_c\nswitch 1" DstPort 3 } Line { ZOrder 4 SrcBlock "relay delta_c_2" SrcPort 1 Points [65, 0; 0, 20] DstBlock "delta_c\nswitch 2" DstPort 1 } Line { ZOrder 5 SrcBlock "delta_c_2" SrcPort 1 DstBlock "delta_c\nswitch 2" DstPort 2 } Line { ZOrder 6 SrcBlock "default delta_c" SrcPort 1 Points [65, 0; 0, -75] DstBlock "delta_c\nswitch 2" DstPort 3 } Line { ZOrder 7 SrcBlock "delta_c_1" SrcPort 1 DstBlock "delta_c\nswitch 1" DstPort 2 } } } Block { BlockType Outport Name "delta_e_c" SID "981" Position [620, 123, 650, 137] ZOrder 33 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "982" Position [620, 463, 650, 477] ZOrder 34 Port "2" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "cable delta_x_c" SrcPort 1 DstBlock "delta_x_c" DstPort 1 } Line { ZOrder 2 SrcBlock "cable delta_e_c" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 3 SrcBlock "relay delta_x_c_1" SrcPort 1 DstBlock "cable delta_x_c" DstPort 2 } Line { ZOrder 4 SrcBlock "relay delta_x_c_2" SrcPort 1 DstBlock "cable delta_x_c" DstPort 4 } Line { ZOrder 5 SrcBlock "delta_x_c_2" SrcPort 1 DstBlock "cable delta_x_c" DstPort 3 } Line { ZOrder 6 SrcBlock "delta_x_c_1" SrcPort 1 DstBlock "cable delta_x_c" DstPort 1 } Line { ZOrder 7 SrcBlock "delta_e_c_2" SrcPort 1 DstBlock "cable delta_e_c" DstPort 3 } Line { ZOrder 8 SrcBlock "delta_e_c_1" SrcPort 1 DstBlock "cable delta_e_c" DstPort 1 } Line { ZOrder 9 SrcBlock "relay delta_e_c_1" SrcPort 1 DstBlock "cable delta_e_c" DstPort 2 } Line { ZOrder 10 SrcBlock "relay delta_e_c_2" SrcPort 1 DstBlock "cable delta_e_c" DstPort 4 } } } Block { BlockType Scope Name "delta_e" SID "256" Ports [1] Position [730, 244, 760, 276] ZOrder -42 ScopeSpecificationString "C++SS(StrPVP('Location','[6, 123, 1618, 979]'),StrPVP('Open','off'),MxPVP('AxesTitles'" ",24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','10" "100.5'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','delta_e'),StrPVP('LimitDataPoints','off'),StrPVP('Bloc" "kParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('" "BlockParamSampleInput','off'))" } Block { BlockType SubSystem Name "h filter " SID "512" Ports [1, 1] Position [1145, 419, 1275, 471] ZOrder -43 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "h filter " Location [16, 52, 1662, 1231] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID "514" Position [590, 351, 700, 389] ZOrder -2 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] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "h meas" DstPort 1 } Line { ZOrder 2 SrcBlock "h" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "q filter" SID "522" Ports [1, 1] Position [1145, 558, 1275, 612] ZOrder -44 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "q filter" Location [16, 52, 1662, 1231] 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] ZOrder -1 IconDisplay "Port number" } Block { BlockType DiscreteStateSpace Name "Discrete State-Space" SID "524" Position [190, 106, 300, 144] ZOrder -2 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] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Discrete State-Space" SrcPort 1 DstBlock "q meas" DstPort 1 } Line { ZOrder 2 SrcBlock "q" SrcPort 1 DstBlock "Discrete State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "reference" SID "216" Ports [0, 3] Position [1145, 774, 1270, 936] ZOrder -45 BlockMirror on ForegroundColor "red" BackgroundColor "yellow" RequestExecContextInheritance off Variant off System { Name "reference" Location [16, 52, 1875, 1183] 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] ZOrder -1 Value "Va_c" SampleTime "Ts_K1" } Block { BlockType FromWorkspace Name "Altitude command" SID "605" Position [85, 98, 150, 122] ZOrder -2 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] ZOrder -3 ScopeSpecificationString "C++SS(StrPVP('Location','[-874, 337, -550, 576]'),StrPVP('Open','off'),MxPVP('AxesTitles'" ",24,'struct(''axes1'',''%'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','9250'),StrPVP('YMax','11500'" "),StrPVP('SaveName','ScopeData6'),StrPVP('DataFormat','StructureWithTime'),StrPVP('LimitDataPoints','off'),StrPVP('" "BlockParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','off'" "))" } Block { BlockType Constant Name "Vert. speed command" SID "549" Position [90, 270, 145, 300] ZOrder -4 Value "Vz_c" SampleTime "Ts_K2" } Block { BlockType Outport Name "h c" SID "228" Position [495, 103, 525, 117] ZOrder -5 IconDisplay "Port number" } Block { BlockType Outport Name "Va c" SID "229" Position [495, 193, 525, 207] ZOrder -6 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Vz c" SID "550" Position [495, 278, 525, 292] ZOrder -7 Port "3" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Altitude command" SrcPort 1 Points [239, 0] Branch { ZOrder 2 Points [0, -55] DstBlock "Scope" DstPort 1 } Branch { ZOrder 3 DstBlock "h c" DstPort 1 } } Line { ZOrder 4 SrcBlock "Airspeed command" SrcPort 1 DstBlock "Va c" DstPort 1 } Line { ZOrder 5 SrcBlock "Vert. speed command" SrcPort 1 DstBlock "Vz c" DstPort 1 } } } Line { ZOrder 2 SrcBlock "Flight Dynamics " SrcPort 1 Points [489, 0] Branch { ZOrder 3 Points [0, 80] Branch { ZOrder 4 Points [0, 475] DstBlock "Sampler3" DstPort 1 } Branch { ZOrder 5 DstBlock "Va" DstPort 1 } } Branch { ZOrder 6 DstBlock "To Workspace7" DstPort 1 } } Line { ZOrder 7 SrcBlock "Flight Dynamics " SrcPort 2 Points [476, 0] Branch { ZOrder 8 Points [0, 470] DstBlock "Sampler2" DstPort 1 } Branch { ZOrder 9 Points [0, -45] DstBlock "To Workspace6" DstPort 1 } } Line { ZOrder 10 SrcBlock "Flight Dynamics " SrcPort 3 Points [463, 0] Branch { ZOrder 11 Points [0, 390] DstBlock "Sampler1" DstPort 1 } Branch { ZOrder 12 Points [0, -90] DstBlock "To Workspace5" DstPort 1 } } Line { ZOrder 13 SrcBlock "Flight Dynamics " SrcPort 4 Points [449, 0] Branch { ZOrder 14 Points [0, 105] Branch { ZOrder 15 Points [0, 210] DstBlock " Sampler " DstPort 1 } Branch { ZOrder 16 DstBlock "Vz" DstPort 1 } } Branch { ZOrder 17 Points [0, -135] DstBlock "To Workspace4" DstPort 1 } } Line { ZOrder 18 SrcBlock "Engine" SrcPort 1 Points [70, 0] Branch { ZOrder 19 Points [0, 50] DstBlock "Flight Dynamics " DstPort 1 } Branch { ZOrder 20 DstBlock "T" DstPort 1 } } Line { ZOrder 21 SrcBlock "Elevator " SrcPort 1 Points [70, 0] Branch { ZOrder 22 Points [0, -50] DstBlock "Flight Dynamics " DstPort 2 } Branch { ZOrder 23 DstBlock "delta_e" DstPort 1 } } Line { ZOrder 29 SrcBlock "Flight Dynamics " SrcPort 5 Points [436, 0] Branch { ZOrder 30 Points [0, 150] Branch { ZOrder 31 Points [0, 80] DstBlock "Sampler" DstPort 1 } Branch { ZOrder 32 DstBlock "Altitude" DstPort 1 } } Branch { ZOrder 33 Points [0, -180] DstBlock "To Workspace3" DstPort 1 } } Line { ZOrder 45 SrcBlock "Rate Transition13" SrcPort 1 Points [19, 0] Branch { ZOrder 46 Points [120, 0] Branch { ZOrder 47 Points [0, -70] DstBlock "Throttle" DstPort 1 } Branch { ZOrder 48 DstBlock "Engine" DstPort 1 } } Branch { ZOrder 49 Points [0, -70] DstBlock "To Workspace1" DstPort 1 } } Line { ZOrder 50 SrcBlock "Rate Transition14" SrcPort 1 Points [23, 0] Branch { ZOrder 51 DstBlock "Elevator " DstPort 1 } Branch { ZOrder 52 Points [0, -45] DstBlock "To Workspace2" DstPort 1 } } Line { ZOrder 60 SrcBlock "Sampler" SrcPort 1 DstBlock "h filter " DstPort 1 } Line { ZOrder 61 SrcBlock " Sampler " SrcPort 1 DstBlock "Vz filter " DstPort 1 } Line { ZOrder 62 SrcBlock "Sampler1" SrcPort 1 DstBlock "q filter" DstPort 1 } Line { ZOrder 63 SrcBlock "Sampler2" SrcPort 1 DstBlock "az filter" DstPort 1 } Line { ZOrder 64 SrcBlock "Sampler3" SrcPort 1 DstBlock "Va filter" DstPort 1 } Line { ZOrder 639 SrcBlock "FCC1A" SrcPort 2 DstBlock "FCC1 error injection" DstPort 2 } Line { ZOrder 170 SrcBlock "Flight Mode" SrcPort 1 Points [-10, 0] Branch { ZOrder 641 Points [0, -35] DstBlock "FCC1A" DstPort 1 } Branch { ZOrder 379 Points [0, 155] Branch { ZOrder 517 Points [0, 215] Branch { ZOrder 665 Points [0, 205] DstBlock "FCC2B" DstPort 1 } Branch { ZOrder 655 DstBlock "FCC2A" DstPort 1 } } Branch { ZOrder 516 DstBlock "FCC1B" DstPort 1 } } } Line { ZOrder 171 SrcBlock "h filter " SrcPort 1 Points [-39, 0] Branch { ZOrder 646 Points [0, -80] DstBlock "FCC1A" DstPort 3 } Branch { ZOrder 383 Points [0, 110] Branch { ZOrder 521 Points [0, 215] Branch { ZOrder 662 Points [0, 205] DstBlock "FCC2B" DstPort 3 } Branch { ZOrder 649 DstBlock "FCC2A" DstPort 3 } } Branch { ZOrder 520 DstBlock "FCC1B" DstPort 3 } } } Line { ZOrder 172 SrcBlock "Vz filter " SrcPort 1 Points [-69, 0] Branch { ZOrder 642 Points [0, -125] DstBlock "FCC1A" DstPort 5 } Branch { ZOrder 387 Points [0, 65] Branch { ZOrder 527 Points [0, 215] Branch { ZOrder 673 Points [0, 205] DstBlock "FCC2B" DstPort 5 } Branch { ZOrder 652 DstBlock "FCC2A" DstPort 5 } } Branch { ZOrder 524 DstBlock "FCC1B" DstPort 5 } } } Line { ZOrder 173 SrcBlock "q filter" SrcPort 1 Points [0, -8; -113, 0] Branch { ZOrder 645 Points [0, -137] DstBlock "FCC1A" DstPort 8 } Branch { ZOrder 526 Points [0, 53] Branch { ZOrder 533 Points [0, 215] Branch { ZOrder 666 Points [0, 205] DstBlock "FCC2B" DstPort 8 } Branch { ZOrder 658 DstBlock "FCC2A" DstPort 8 } } Branch { ZOrder 532 DstBlock "FCC1B" DstPort 8 } } } Line { ZOrder 174 SrcBlock "az filter" SrcPort 1 Points [-126, 0] Branch { ZOrder 535 Points [0, -10] Branch { ZOrder 640 Points [0, -190] DstBlock "FCC1A" DstPort 9 } Branch { ZOrder 534 DstBlock "FCC1B" DstPort 9 } } Branch { ZOrder 375 Points [0, 205] Branch { ZOrder 672 Points [0, 205] DstBlock "FCC2B" DstPort 9 } Branch { ZOrder 656 DstBlock "FCC2A" DstPort 9 } } } Line { ZOrder 175 SrcBlock "Va filter" SrcPort 1 Points [-98, 0] Branch { ZOrder 540 Points [0, 100] Branch { ZOrder 663 Points [0, 205] DstBlock "FCC2B" DstPort 7 } Branch { ZOrder 659 DstBlock "FCC2A" DstPort 7 } } Branch { ZOrder 391 Points [0, -115] Branch { ZOrder 644 Points [0, -190] DstBlock "FCC1A" DstPort 7 } Branch { ZOrder 530 DstBlock "FCC1B" DstPort 7 } } } Line { ZOrder 176 SrcBlock "reference" SrcPort 1 Points [-25, 0] Branch { ZOrder 664 Points [0, 160] DstBlock "FCC2B" DstPort 2 } Branch { ZOrder 394 Points [0, -45] Branch { ZOrder 653 DstBlock "FCC2A" DstPort 2 } Branch { ZOrder 381 Points [0, -215] Branch { ZOrder 643 Points [0, -190] DstBlock "FCC1A" DstPort 2 } Branch { ZOrder 518 DstBlock "FCC1B" DstPort 2 } } } } Line { ZOrder 177 SrcBlock "reference" SrcPort 2 Points [-86, 0] Branch { ZOrder 668 Points [0, 165] DstBlock "FCC2B" DstPort 6 } Branch { ZOrder 398 Points [0, -40] Branch { ZOrder 651 DstBlock "FCC2A" DstPort 6 } Branch { ZOrder 389 Points [0, -215] Branch { ZOrder 648 Points [0, -190] DstBlock "FCC1A" DstPort 6 } Branch { ZOrder 528 DstBlock "FCC1B" DstPort 6 } } } } Line { ZOrder 178 SrcBlock "reference" SrcPort 3 Points [-55, 0] Branch { ZOrder 669 Points [0, 80] DstBlock "FCC2B" DstPort 4 } Branch { ZOrder 396 Points [0, -125] Branch { ZOrder 654 DstBlock "FCC2A" DstPort 4 } Branch { ZOrder 385 Points [0, -215] Branch { ZOrder 647 Points [0, -190] DstBlock "FCC1A" DstPort 4 } Branch { ZOrder 522 DstBlock "FCC1B" DstPort 4 } } } } Line { ZOrder 252 SrcBlock "delta_c cable" SrcPort 1 Points [-9, 0; 0, -380] DstBlock "Rate Transition14" DstPort 1 } Line { ZOrder 254 SrcBlock "delta_c cable" SrcPort 2 Points [-23, 0; 0, -630] DstBlock "Rate Transition13" DstPort 1 } Line { ZOrder 637 SrcBlock "FCC1A" SrcPort 1 DstBlock "FCC1 error injection" DstPort 1 } Line { ZOrder 862 SrcBlock "FCC1A" SrcPort 3 DstBlock "To Workspace8" DstPort 1 } Line { ZOrder 657 SrcBlock "FCC2A" SrcPort 1 DstBlock "FCC2 error injection" DstPort 1 } Line { ZOrder 650 SrcBlock "FCC2A" SrcPort 2 DstBlock "FCC2 error injection" DstPort 2 } Line { ZOrder 674 SrcBlock "FCC1B" SrcPort 6 Points [-19, 0; 0, 234; 263, 0; 0, 206] DstBlock "FCC2B" DstPort 12 } Line { ZOrder 660 SrcBlock "FCC2B" SrcPort 6 Points [-34, 0; 0, -273; 263, 0; 0, -127] DstBlock "FCC1B" DstPort 12 } Line { ZOrder 744 SrcBlock "FCC1 error injection" SrcPort 1 Points [-95, 0; 0, 109] Branch { ZOrder 836 Points [321, 0; 0, 196] DstBlock "FCC1B" DstPort 10 } Branch { ZOrder 835 Points [0, 131] DstBlock "delta_c cable" DstPort 1 } } Line { ZOrder 745 SrcBlock "FCC1 error injection" SrcPort 2 Points [-61, 0; 0, 64] Branch { ZOrder 838 Points [0, 181] DstBlock "delta_c cable" DstPort 2 } Branch { ZOrder 837 Points [303, 0; 0, 231] DstBlock "FCC1B" DstPort 11 } } Line { ZOrder 748 SrcBlock "FCC2 error injection" SrcPort 1 Points [-14, 0; 0, -45; -30, 0] Branch { ZOrder 857 DstBlock "delta_c cable" DstPort 5 } Branch { ZOrder 856 Points [0, 140; 180, 0; 0, 225] DstBlock "FCC2B" DstPort 10 } } Line { ZOrder 749 SrcBlock "FCC2 error injection" SrcPort 2 Points [-26, 0] Branch { ZOrder 852 Points [0, 51; 180, 0; 0, 259] DstBlock "FCC2B" DstPort 11 } Branch { ZOrder 850 Points [0, -40] DstBlock "delta_c cable" DstPort 6 } } Line { ZOrder 894 SrcBlock "FCC1B" SrcPort 4 Points [-58, 0; 0, 35] DstBlock "delta_c cable" DstPort 3 } Line { ZOrder 895 SrcBlock "FCC1B" SrcPort 5 Points [-34, 0; 0, 40] DstBlock "delta_c cable" DstPort 4 } Line { ZOrder 896 SrcBlock "FCC2B" SrcPort 4 Points [-99, 0; 0, -265] DstBlock "delta_c cable" DstPort 7 } Line { ZOrder 897 SrcBlock "FCC2B" SrcPort 5 Points [-120, 0; 0, -260] DstBlock "delta_c cable" DstPort 8 } } } #Finite State Machines # # Stateflow 80000009 # # Stateflow { machine { id 1 name "Discrete_Closed_Loop_Model_74" created "05-Jul-2012 16:46:48" isLibrary 0 firstTarget 2 sfVersion 80000009 } target { id 2 name "sfun" codeFlags "" machine 1 linkNode [1 0 0] } }