Model { Name "Continuous_Closed_Loop_Model" Version 8.7 MdlSubVersion 1 SavedCharacterEncoding "ISO-8859-1" GraphicalInterface { NumRootInports 0 NumRootOutports 0 ParameterArgumentNames "" ComputedModelVersion "1.207" 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 [1592.0, 0.0, 1382.0, 784.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] } Array { Type "Simulink.EditorInfo" Dimension 5 Object { $ObjectID 5 IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "216" Extents [1332.0, 637.0] ZoomFactor [2.0] Offset [0.0, 0.0] } Object { $ObjectID 6 IsActive [1] ViewObjType "SimulinkSubsys" LoadSaveID "1119" Extents [1348.0, 633.0] ZoomFactor [0.59999999999999987] Offset [884.99999999999989, 64.999999999999915] } Object { $ObjectID 7 IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "722" Extents [1348.0, 633.0] ZoomFactor [0.8] Offset [576.73923625654231, 101.31793812942877] } Object { $ObjectID 8 IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "853" Extents [1332.0, 637.0] ZoomFactor [1.0] Offset [0.0, 0.0] } Object { $ObjectID 9 IsActive [0] ViewObjType "SimulinkSubsys" LoadSaveID "913" Extents [1348.0, 633.0] ZoomFactor [0.59999999999999987] Offset [218.26040848495671, -43.6644090765248] } PropName "EditorsInfo" } } } Created "Wed Jul 04 13:18:47 2012" Creator "David" UpdateHistory "UpdateHistoryNever" ModifiedByFormat "%" LastModifiedBy "h.deschamps" ModifiedDateFormat "%" LastModifiedDate "Tue Nov 29 11:40:44 2016" RTWModifiedTimeStamp 402320443 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 10 $ClassName "Simulink.SimulationData.ModelLoggingInfo" model_ "Continuous_Closed_Loop_Model" Array { Type "Cell" Dimension 1 Cell "Continuous_Closed_Loop_Model" 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 11 Version "1.16.2" Array { Type "Handle" Dimension 9 Simulink.SolverCC { $ObjectID 12 Version "1.16.2" StartTime "0.0" StopTime "T_final" AbsTol "auto" FixedStep "0.02" 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 "ode1" SolverName "ode1" 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 13 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 14 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 15 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 16 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 17 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 18 Version "1.16.2" SFSimEcho on SimCtrlC on SimIntegrity on SimUseLocalCustomCode off SimParseCustomCode off SimBuildMode "sf_incremental_build" SimGenImportedTypeDefs off } Simulink.RTWCC { $BackupClass "Simulink.RTWCC" $ObjectID 19 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 20 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 21 Version "1.16.2" Array { Type "Cell" Dimension 15 Cell "GeneratePreprocessorConditionals" Cell "IncludeMdlTerminateFcn" Cell "PortableWordSizes" Cell "SuppressErrorStatus" Cell "ERTCustomFileBanners" Cell "GenerateSampleERTMain" Cell "GenerateTestInterfaces" Cell "ModelStepFunctionPrototypeControlCompliant" Cell "CPPClassGenCompliant" Cell "GenerateAllocFcn" 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 22 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 "Solver" ConfigPrmDlgPosition [ 392, 22, 1288, 852 ] } PropName "ConfigurationSets" } Simulink.ConfigSet { $PropName "ActiveConfigurationSet" $ObjectID 11 } Object { $PropName "DataTransfer" $ObjectID 23 $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 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 Integrator ExternalReset "none" InitialConditionSource "internal" InitialCondition "0" LimitOutput off UpperSaturationLimit "inf" LowerSaturationLimit "-inf" WrapState off WrappedStateUpperValue "pi" WrappedStateLowerValue "-pi" ShowSaturationPort off ShowStatePort off AbsoluteTolerance "auto" IgnoreLimit off ZeroCross on ContinuousStateAttributes "''" } 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 Scope DefaultConfigurationName "Simulink.scopes.TimeScopeBlockCfg" NumInputPorts "1" Floating off } Block { BlockType Selector NumberOfDimensions "1" IndexMode "One-based" InputPortWidth "-1" SampleTime "-1" } Block { BlockType StateSpace A "1" B "1" C "1" D "1" X0 "0.0" AbsoluteTolerance "auto" ContinuousStateAttributes "''" Realization "auto" } 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 "Continuous_Closed_Loop_Model" Location [1592, 0, 2974, 784] 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 "50" ReportName "simulink-default.rpt" SIDHighWatermark "1696" Block { BlockType Scope Name "Altitude" SID "118" Ports [1] Position [1780, 349, 1810, 381] ZOrder -1 ScopeSpecificationString "C++SS(StrPVP('Location','[80, 145, 1673, 1001]'),StrPVP('Open','off'),MxPVP('AxesTitle" "s',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''" ",''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]'" "',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|" "none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('TimeRange','200'),StrPVP('YMin','7950'),StrPVP('YMax','8" "600'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','h'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSa" "mpleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockPar" "amSampleInput','off'))" } Block { BlockType Scope Name "Altitude1" SID "720" Ports [1] Position [1115, 284, 1145, 316] ZOrder 57 ScopeSpecificationString "C++SS(StrPVP('Location','[80, 145, 1673, 1001]'),StrPVP('Open','off'),MxPVP('AxesTitle" "s',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''" ",''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]'" "',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|" "none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('TimeRange','200'),StrPVP('YMin','7950'),StrPVP('YMax','8" "600'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','h1'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamS" "ampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockPa" "ramSampleInput','off'))" } Block { BlockType SubSystem Name "Elevator " SID "403" Ports [1, 1] Position [520, 236, 655, 284] ZOrder 8 BackgroundColor "green" RequestExecContextInheritance off Variant off System { Name "Elevator " Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "delta_e_c" SID "404" Position [140, 218, 170, 232] ZOrder -1 IconDisplay "Port number" } 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 Integrator Name "Integrator" SID "618" Ports [1, 1] Position [580, 210, 610, 240] ZOrder 57 InitialCondition "CI_de" } 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 13 SrcBlock "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 14 SrcBlock "Sum" SrcPort 1 DstBlock "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 "414" Name "Commanded elevator\ndeflection" Position [151, 277, 249, 303] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off VerticalAlignment "top" ZOrder -1 } Annotation { SID "413" 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 [525, 104, 655, 156] ZOrder 7 BackgroundColor "green" RequestExecContextInheritance off Variant off System { Name "Engine" 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 "delta_x_c" SID "392" Position [100, 208, 130, 222] ZOrder -1 IconDisplay "Port number" } 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 Integrator Name "Integrator" SID "617" Ports [1, 1] Position [470, 200, 500, 230] ZOrder 56 InitialCondition "CI_dx" } 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 14 SrcBlock "Integrator" SrcPort 1 Points [122, 0] Branch { ZOrder 6 Points [0, 160] DstBlock "Gain2" DstPort 1 } Branch { ZOrder 7 DstBlock "Gain3" DstPort 1 } } Line { ZOrder 13 SrcBlock "Sum" SrcPort 1 DstBlock "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 "402" Name "Throttle" Position [116, 261, 151, 275] InternalMargins [0, 0, 0, 0] FixedHeight off FixedWidth off HorizontalAlignment "left" VerticalAlignment "top" ZOrder -1 } Annotation { SID "401" 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 "1678" Ports [2, 2] Position [320, 342, 445, 393] ZOrder 131 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 "1679" Position [20, 23, 50, 37] ZOrder 127 IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c" SID "1680" Position [25, 143, 55, 157] ZOrder 133 Port "2" IconDisplay "Port number" } Block { BlockType FromWorkspace Name "Error delta e_c" SID "1681" 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 "1682" 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 "1683" 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 "1684" 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 "1685" Position [300, 23, 330, 37] ZOrder 130 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c_err" SID "1686" 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 "722" Ports [12, 6] Position [610, 334, 780, 501] ZOrder 59 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC1A" Location [1592, 0, 2974, 784] Open on 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 "723" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "724" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "725" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "726" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "727" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "728" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "729" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "730" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "731" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "732" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "733" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "734" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "735" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "736" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold " SID "853" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 123 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold " Location [1592, 0, 2974, 784] Open on 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 "854" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "855" Position [25, 348, 55, 362] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "856" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder 63 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [1592, -8, 2974, 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 "h_c" SID "857" Position [35, 328, 65, 342] ZOrder 68 IconDisplay "Port number" } Block { BlockType Inport Name "h_meas" SID "858" Position [35, 273, 65, 287] ZOrder -1 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "859" Position [35, 393, 65, 407] ZOrder 73 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "860" Position [450, 20, 509, 48] ZOrder -2 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "861" Position [365, 372, 585, 408] ZOrder 72 Expr "-u(1)*Kp_h+u(2)" } Block { BlockType Gain Name "Gain" SID "862" Position [485, 264, 560, 296] ZOrder 57 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "863" Position [485, 184, 560, 216] ZOrder 70 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "864" Ports [2, 1] Position [660, 272, 690, 303] ZOrder 75 InitialConditionSource "external" } Block { BlockType Mux Name "Mux" SID "865" Ports [2, 1] Position [320, 371, 325, 409] ZOrder 74 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "866" Ports [2, 1] Position [740, 190, 760, 210] ZOrder 55 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "867" Ports [2, 1] Position [210, 270, 230, 290] ZOrder 67 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "868" Position [1070, 193, 1100, 207] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 2 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 3 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 4 Points [165, 0] Branch { ZOrder 5 DstBlock "Gain" DstPort 1 } Branch { ZOrder 6 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 7 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 8 SrcBlock "Integrator" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 9 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 10 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 12 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 13 SrcBlock "Gain" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 14 SrcBlock "CI_AltHold" SrcPort 1 Points [31, 0; 0, -95] DstBlock "Integrator" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "869" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder 60 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "870" Position [170, 15, 229, 43] ZOrder -2 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "871" Position [155, 70, 210, 100] ZOrder 63 ShowName off Value "Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "872" 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 "873" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder 65 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "874" Position [170, 15, 229, 43] ZOrder -2 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "875" Position [80, 70, 135, 100] ZOrder 65 ShowName off Value "-Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "876" 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 "877" Ports [1, 3] Position [210, 210, 335, 280] ZOrder 61 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "878" Position [630, 455, 660, 485] ZOrder 72 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "879" Ports [3, 1] Position [725, 255, 765, 295] ZOrder 71 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "880" Ports [2, 1] Position [110, 235, 130, 255] ZOrder 55 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c" SID "881" Position [1085, 268, 1115, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 100] DstBlock "Altitude Capture/Hold" DstPort 1 } 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 2 } } 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 "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } Line { ZOrder 15 SrcBlock "Merge" SrcPort 1 Points [85, 0] Branch { ZOrder 16 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 17 DstBlock "Vz_c" DstPort 1 } } } } Block { BlockType Logic Name "Logical\nOperator" SID "766" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "767" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "769" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "771" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "772" Position [1595, 445, 1625, 475] ZOrder 120 InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "773" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Va speed control" SID "882" Ports [4, 1] Position [725, 568, 860, 797] ZOrder 122 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [1592, -8, 2974, 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 "100" Block { BlockType Inport Name "Va c" SID "883" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "884" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "885" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "886" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "887" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "888" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "889" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "890" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "891" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "892" Ports [2, 1] Position [505, 67, 535, 98] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "893" 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 "894" 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 "895" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -14 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Scope Name "Throttle" SID "896" Ports [1] Position [795, 159, 825, 191] ZOrder 54 ScopeSpecificationString "C++SS(StrPVP('Location','[54, 130, 1666, 986]'),StrPVP('Open','off'),MxPVP('AxesTitle" "s',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]'" "',''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1" "]'',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|no" "ne|none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','10100.5'),StrPVP('Save" "ToWorkspace','on'),StrPVP('SaveName','ScopeData5'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime" "','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockParamSampl" "eInput','off'))" } Block { BlockType Constant Name "Va eq" SID "897" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "0" } Block { BlockType Outport Name "delta_x_c" SID "898" 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 "Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" 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 Points [98, 0] Branch { ZOrder 12 Points [0, -70] DstBlock "Throttle" DstPort 1 } Branch { ZOrder 13 DstBlock "delta_x_c" DstPort 1 } } Line { ZOrder 14 SrcBlock "Constant" SrcPort 1 Points [48, 0; 0, -45] DstBlock "Integrator" DstPort 2 } Line { ZOrder 15 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 16 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 17 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 18 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "899" Ports [4, 1] Position [725, 298, 860, 527] ZOrder 121 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1608, 908] 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 "Vz c" SID "900" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "901" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "902" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "903" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "904" Position [470, 175, 525, 205] ZOrder 2 Value "delta_e_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "905" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "906" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "907" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "908" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "909" Ports [2, 1] Position [635, 117, 665, 148] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "910" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "0" } Block { BlockType Sum Name "Sum4" SID "911" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "912" Position [1065, 303, 1095, 317] ZOrder -14 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 2 SrcBlock "Gain1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 3 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 4 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 6 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 7 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 8 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 9 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 10 SrcBlock "Constant1" SrcPort 1 Points [58, 0; 0, -50] DstBlock "Integrator" DstPort 2 } Line { ZOrder 11 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 12 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 13 DstBlock "Gain" DstPort 1 } } Line { ZOrder 14 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "814" 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 "815" 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 "816" 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 "817" 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 "818" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "819" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "820" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "821" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "822" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "823" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 78 SrcBlock "h meas" SrcPort 1 DstBlock "Altitude Hold " DstPort 2 } Line { ZOrder 77 SrcBlock "h c" SrcPort 1 DstBlock "Altitude Hold " DstPort 1 } Line { ZOrder 66 SrcBlock "Altitude Hold " SrcPort 1 Points [16, 0] Branch { ZOrder 79 DstBlock "Multiport\nSwitch" DstPort 2 } Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } } Line { ZOrder 86 SrcBlock "az meas" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 94 Points [0, 270] DstBlock "Va speed control" DstPort 3 } Branch { ZOrder 85 DstBlock "Vz speed control" DstPort 3 } } Line { ZOrder 93 SrcBlock "Va meas" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 87 SrcBlock "Va c" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 95 Points [0, 380] DstBlock "Va speed control" DstPort 4 } Branch { ZOrder 80 DstBlock "Vz speed control" DstPort 2 } } Line { ZOrder 68 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } 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 75 SrcBlock "Va speed control" SrcPort 1 Points [15, 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 76 SrcBlock "Vz speed control" SrcPort 1 Points [14, 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 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 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 139 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } Branch { ZOrder 138 DstBlock "relay_delta_e_c" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 140 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 135 DstBlock "relay_delta_x_c" 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 } } } Block { BlockType SubSystem Name "FCC1B" SID "913" Ports [12, 6] Position [335, 519, 505, 686] ZOrder 61 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC1B" Location [1592, 0, 2974, 784] Open on 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 "60" Block { BlockType Inport Name "flight mode" SID "914" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "915" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "916" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "917" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "918" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "919" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "920" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "921" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "922" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "923" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "924" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "925" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "926" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "927" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold " SID "928" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 123 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold " Location [1592, -8, 2974, 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 "100" Block { BlockType Inport Name "h c" SID "929" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "930" Position [25, 348, 55, 362] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "931" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder 63 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [1592, -8, 2974, 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 "h_c" SID "932" Position [35, 328, 65, 342] ZOrder 68 IconDisplay "Port number" } Block { BlockType Inport Name "h_meas" SID "933" Position [35, 273, 65, 287] ZOrder -1 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "934" Position [35, 393, 65, 407] ZOrder 73 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "935" Position [450, 20, 509, 48] ZOrder -2 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "936" Position [365, 372, 585, 408] ZOrder 72 Expr "-u(1)*Kp_h+u(2)" } Block { BlockType Gain Name "Gain" SID "937" Position [485, 264, 560, 296] ZOrder 57 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "938" Position [485, 184, 560, 216] ZOrder 70 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "939" Ports [2, 1] Position [660, 272, 690, 303] ZOrder 75 InitialConditionSource "external" } Block { BlockType Mux Name "Mux" SID "940" Ports [2, 1] Position [320, 371, 325, 409] ZOrder 74 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "941" Ports [2, 1] Position [740, 190, 760, 210] ZOrder 55 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "942" Ports [2, 1] Position [210, 270, 230, 290] ZOrder 67 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "943" Position [1070, 193, 1100, 207] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 2 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 3 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 4 Points [165, 0] Branch { ZOrder 5 DstBlock "Gain" DstPort 1 } Branch { ZOrder 6 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 7 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 8 SrcBlock "Integrator" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 9 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 10 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 12 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 13 SrcBlock "Gain" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 14 SrcBlock "CI_AltHold" SrcPort 1 Points [31, 0; 0, -95] DstBlock "Integrator" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "944" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder 60 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "945" Position [170, 15, 229, 43] ZOrder -2 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "946" Position [155, 70, 210, 100] ZOrder 63 ShowName off Value "Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "947" 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 "948" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder 65 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "949" Position [170, 15, 229, 43] ZOrder -2 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "950" Position [80, 70, 135, 100] ZOrder 65 ShowName off Value "-Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "951" 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 "952" Ports [1, 3] Position [210, 210, 335, 280] ZOrder 61 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "953" Position [630, 455, 660, 485] ZOrder 72 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "954" Ports [3, 1] Position [725, 255, 765, 295] ZOrder 71 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "955" Ports [2, 1] Position [110, 235, 130, 255] ZOrder 55 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c" SID "956" Position [1085, 268, 1115, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 100] DstBlock "Altitude Capture/Hold" DstPort 1 } 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 2 } } 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 "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } Line { ZOrder 15 SrcBlock "Merge" SrcPort 1 Points [85, 0] Branch { ZOrder 16 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 17 DstBlock "Vz_c" DstPort 1 } } } } Block { BlockType Logic Name "Logical\nOperator" SID "957" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "958" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "960" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "962" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "963" Position [1595, 445, 1625, 475] ZOrder 120 InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "964" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Va speed control" SID "975" Ports [4, 1] Position [725, 568, 860, 797] ZOrder 122 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, -8, 1608, 908] 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 "Va c" SID "976" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "977" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "978" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "979" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "980" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "981" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "982" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "983" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "984" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "985" Ports [2, 1] Position [505, 67, 535, 98] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "986" 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 "987" 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 "988" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -14 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "990" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "0" } Block { BlockType Outport Name "delta_x_c" SID "991" 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 "Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" 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_x_c" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant" SrcPort 1 Points [48, 0; 0, -45] DstBlock "Integrator" DstPort 2 } Line { ZOrder 15 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 16 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 17 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 18 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "992" Ports [4, 1] Position [725, 298, 860, 527] ZOrder 121 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1608, 908] 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 "Vz c" SID "993" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "994" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "995" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "996" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "997" Position [470, 175, 525, 205] ZOrder 2 Value "delta_e_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "998" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "999" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1000" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1001" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1002" Ports [2, 1] Position [635, 117, 665, 148] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "1003" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "0" } Block { BlockType Sum Name "Sum4" SID "1004" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1005" Position [1065, 303, 1095, 317] ZOrder -14 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 2 SrcBlock "Gain1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 3 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 4 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 6 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 7 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 8 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 9 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 10 SrcBlock "Constant1" SrcPort 1 Points [58, 0; 0, -50] DstBlock "Integrator" DstPort 2 } Line { ZOrder 11 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 12 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 13 DstBlock "Gain" DstPort 1 } } Line { ZOrder 14 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1006" 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 "1007" 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 "1008" 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 "1009" 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 "1010" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1011" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1012" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1013" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1014" Position [1655, 593, 1685, 607] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1015" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 59 SrcBlock "h meas" SrcPort 1 DstBlock "Altitude Hold " DstPort 2 } Line { ZOrder 58 SrcBlock "h c" SrcPort 1 DstBlock "Altitude Hold " DstPort 1 } Line { ZOrder 31 SrcBlock "Altitude Hold " SrcPort 1 Points [16, 0] Branch { ZOrder 60 DstBlock "Multiport\nSwitch" DstPort 2 } Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } } Line { ZOrder 63 SrcBlock "az meas" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 66 Points [0, 270] DstBlock "Va speed control" DstPort 3 } Branch { ZOrder 62 DstBlock "Vz speed control" DstPort 3 } } Line { ZOrder 65 SrcBlock "Va meas" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 64 SrcBlock "Va c" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 67 Points [0, 380] DstBlock "Va speed control" DstPort 4 } Branch { ZOrder 61 DstBlock "Vz speed control" DstPort 2 } } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } 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 [15, 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 22 SrcBlock "Vz speed control" SrcPort 1 Points [14, 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 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 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 113 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } Branch { ZOrder 110 DstBlock "relay_delta_e_c" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0; 0, -5] Branch { ZOrder 108 Points [0, -130] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 107 DstBlock "relay_delta_x_c" 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 } } } Block { BlockType SubSystem Name "FCC2 error injection" SID "1687" Ports [2, 2] Position [400, 747, 525, 798] ZOrder 132 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 "1688" Position [20, 23, 50, 37] ZOrder 127 IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c" SID "1689" Position [25, 143, 55, 157] ZOrder 133 Port "2" IconDisplay "Port number" } Block { BlockType FromWorkspace Name "Error delta e_c" SID "1690" 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 "1691" 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 "1692" 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 "1693" 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 "1694" Position [300, 23, 330, 37] ZOrder 130 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c_err" SID "1695" 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 "1016" Ports [12, 6] Position [610, 739, 780, 906] ZOrder 62 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC2A" 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 "125" Block { BlockType Inport Name "flight mode" SID "1017" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "1018" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1019" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "1020" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1021" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "1022" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1023" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1024" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1025" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "1026" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "1027" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "1028" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "1029" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "1030" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold " SID "1031" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 123 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold " Location [1592, -8, 2974, 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 "100" Block { BlockType Inport Name "h c" SID "1032" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1033" Position [25, 348, 55, 362] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "1034" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder 63 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [1592, -8, 2974, 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 "h_c" SID "1035" Position [35, 328, 65, 342] ZOrder 68 IconDisplay "Port number" } Block { BlockType Inport Name "h_meas" SID "1036" Position [35, 273, 65, 287] ZOrder -1 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "1037" Position [35, 393, 65, 407] ZOrder 73 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "1038" Position [450, 20, 509, 48] ZOrder -2 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "1039" Position [365, 372, 585, 408] ZOrder 72 Expr "-u(1)*Kp_h+u(2)" } Block { BlockType Gain Name "Gain" SID "1040" Position [485, 264, 560, 296] ZOrder 57 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "1041" Position [485, 184, 560, 216] ZOrder 70 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1042" Ports [2, 1] Position [660, 272, 690, 303] ZOrder 75 InitialConditionSource "external" } Block { BlockType Mux Name "Mux" SID "1043" Ports [2, 1] Position [320, 371, 325, 409] ZOrder 74 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "1044" Ports [2, 1] Position [740, 190, 760, 210] ZOrder 55 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "1045" Ports [2, 1] Position [210, 270, 230, 290] ZOrder 67 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "1046" Position [1070, 193, 1100, 207] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 2 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 3 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 4 Points [165, 0] Branch { ZOrder 5 DstBlock "Gain" DstPort 1 } Branch { ZOrder 6 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 7 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 8 SrcBlock "Integrator" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 9 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 10 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 12 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 13 SrcBlock "Gain" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 14 SrcBlock "CI_AltHold" SrcPort 1 Points [31, 0; 0, -95] DstBlock "Integrator" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "1047" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder 60 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "1048" Position [170, 15, 229, 43] ZOrder -2 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "1049" Position [155, 70, 210, 100] ZOrder 63 ShowName off Value "Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "1050" 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 "1051" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder 65 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "1052" Position [170, 15, 229, 43] ZOrder -2 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "1053" Position [80, 70, 135, 100] ZOrder 65 ShowName off Value "-Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "1054" 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 "1055" Ports [1, 3] Position [210, 210, 335, 280] ZOrder 61 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "1056" Position [630, 455, 660, 485] ZOrder 72 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "1057" Ports [3, 1] Position [725, 255, 765, 295] ZOrder 71 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "1058" Ports [2, 1] Position [110, 235, 130, 255] ZOrder 55 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c" SID "1059" Position [1085, 268, 1115, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 100] DstBlock "Altitude Capture/Hold" DstPort 1 } 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 2 } } 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 "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } Line { ZOrder 15 SrcBlock "Merge" SrcPort 1 Points [85, 0] Branch { ZOrder 16 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 17 DstBlock "Vz_c" DstPort 1 } } } } Block { BlockType Logic Name "Logical\nOperator" SID "1060" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "1061" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "1063" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "1065" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "1066" Position [1595, 445, 1625, 475] ZOrder 120 InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "1067" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Va speed control" SID "1078" Ports [4, 1] Position [725, 568, 860, 797] ZOrder 122 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, -8, 1608, 908] 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 "Va c" SID "1079" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1080" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1081" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1082" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "1083" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "1084" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1085" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1086" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1087" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1088" Ports [2, 1] Position [505, 67, 535, 98] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "1089" 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 "1090" 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 "1091" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -14 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "1093" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "0" } Block { BlockType Outport Name "delta_x_c" SID "1094" 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 "Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" 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_x_c" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant" SrcPort 1 Points [48, 0; 0, -45] DstBlock "Integrator" DstPort 2 } Line { ZOrder 15 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 16 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 17 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 18 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "1095" Ports [4, 1] Position [725, 298, 860, 527] ZOrder 121 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1608, 908] 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 "Vz c" SID "1096" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1097" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1098" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1099" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "1100" Position [470, 175, 525, 205] ZOrder 2 Value "delta_e_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "1101" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1102" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1103" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1104" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1105" Ports [2, 1] Position [635, 117, 665, 148] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "1106" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "0" } Block { BlockType Sum Name "Sum4" SID "1107" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1108" Position [1065, 303, 1095, 317] ZOrder -14 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 2 SrcBlock "Gain1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 3 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 4 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 6 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 7 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 8 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 9 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 10 SrcBlock "Constant1" SrcPort 1 Points [58, 0; 0, -50] DstBlock "Integrator" DstPort 2 } Line { ZOrder 11 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 12 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 13 DstBlock "Gain" DstPort 1 } } Line { ZOrder 14 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1109" 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 "1110" 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 "1111" 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 "1112" 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 "1113" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1114" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1115" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1116" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1117" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1118" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 59 SrcBlock "h meas" SrcPort 1 DstBlock "Altitude Hold " DstPort 2 } Line { ZOrder 58 SrcBlock "h c" SrcPort 1 DstBlock "Altitude Hold " DstPort 1 } Line { ZOrder 31 SrcBlock "Altitude Hold " SrcPort 1 Points [16, 0] Branch { ZOrder 60 DstBlock "Multiport\nSwitch" DstPort 2 } Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } } Line { ZOrder 63 SrcBlock "az meas" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 66 Points [0, 270] DstBlock "Va speed control" DstPort 3 } Branch { ZOrder 62 DstBlock "Vz speed control" DstPort 3 } } Line { ZOrder 65 SrcBlock "Va meas" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 64 SrcBlock "Va c" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 67 Points [0, 380] DstBlock "Va speed control" DstPort 4 } Branch { ZOrder 61 DstBlock "Vz speed control" DstPort 2 } } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } 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 [15, 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 22 SrcBlock "Vz speed control" SrcPort 1 Points [14, 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 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 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 111 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } Branch { ZOrder 110 DstBlock "relay_delta_e_c" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 112 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 107 DstBlock "relay_delta_x_c" 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 } } } Block { BlockType SubSystem Name "FCC2B" SID "1119" Ports [12, 6] Position [335, 944, 505, 1111] ZOrder 63 BlockMirror on RequestExecContextInheritance off Variant off System { Name "FCC2B" Location [1592, 0, 2974, 784] Open on 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 "60" Block { BlockType Inport Name "flight mode" SID "1120" Position [540, 138, 570, 152] ZOrder 50 IconDisplay "Port number" } Block { BlockType Inport Name "h c" SID "1121" Position [100, 183, 130, 197] ZOrder 49 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1122" Position [100, 243, 130, 257] ZOrder 51 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz c" SID "1123" Position [540, 233, 570, 247] ZOrder 52 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1124" Position [490, 378, 520, 392] ZOrder 53 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "Va c" SID "1125" Position [490, 593, 520, 607] ZOrder 56 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1126" Position [490, 648, 520, 662] ZOrder 57 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1127" Position [490, 433, 520, 447] ZOrder 54 Port "8" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1128" Position [490, 488, 520, 502] ZOrder 55 Port "9" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_com" SID "1129" Position [885, 318, 915, 332] ZOrder 103 Port "10" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_com\n" SID "1130" Position [885, 558, 915, 572] ZOrder 104 Port "11" IconDisplay "Port number" } Block { BlockType Inport Name "other master in law" SID "1131" Position [1360, 388, 1390, 402] ZOrder 116 Port "12" IconDisplay "Port number" } Block { BlockType Abs Name "Abs diff delta_e_c" SID "1132" Position [1055, 345, 1085, 375] ZOrder 109 SaturateOnIntegerOverflow off } Block { BlockType Abs Name "Abs diff delta_x_c1" SID "1133" Position [1055, 590, 1085, 620] ZOrder 110 SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Altitude Hold " SID "1134" Ports [2, 1] Position [275, 162, 405, 278] ZOrder 123 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Altitude Hold " Location [1592, -8, 2974, 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 "100" Block { BlockType Inport Name "h c" SID "1135" Position [25, 238, 55, 252] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "h meas" SID "1136" Position [25, 348, 55, 362] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType SubSystem Name "Altitude Capture/Hold" SID "1137" Ports [3, 1, 0, 0, 0, 0, 0, 1] Position [500, 337, 630, 373] ZOrder 63 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Altitude Capture/Hold" Location [1592, -8, 2974, 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 "h_c" SID "1138" Position [35, 328, 65, 342] ZOrder 68 IconDisplay "Port number" } Block { BlockType Inport Name "h_meas" SID "1139" Position [35, 273, 65, 287] ZOrder -1 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "Vz_c" SID "1140" Position [35, 393, 65, 407] ZOrder 73 Port "3" IconDisplay "Port number" } Block { BlockType ActionPort Name "Action Port" SID "1141" Position [450, 20, 509, 48] ZOrder -2 InitializeStates "reset" ActionType "else" } Block { BlockType Fcn Name "CI_AltHold" SID "1142" Position [365, 372, 585, 408] ZOrder 72 Expr "-u(1)*Kp_h+u(2)" } Block { BlockType Gain Name "Gain" SID "1143" Position [485, 264, 560, 296] ZOrder 57 ShowName off Gain "Ki_h" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "1144" Position [485, 184, 560, 216] ZOrder 70 ShowName off Gain "Kp_h" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1145" Ports [2, 1] Position [660, 272, 690, 303] ZOrder 75 InitialConditionSource "external" } Block { BlockType Mux Name "Mux" SID "1146" Ports [2, 1] Position [320, 371, 325, 409] ZOrder 74 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Sum Name "Sum" SID "1147" Ports [2, 1] Position [740, 190, 760, 210] ZOrder 55 ShowName off IconShape "round" Inputs "|++" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "1148" Ports [2, 1] Position [210, 270, 230, 290] ZOrder 67 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c\n" SID "1149" Position [1070, 193, 1100, 207] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h_meas" SrcPort 1 DstBlock "Sum1" DstPort 1 } Line { ZOrder 2 SrcBlock "Sum1" SrcPort 1 Points [34, 0] Branch { ZOrder 3 Points [0, 100] DstBlock "Mux" DstPort 1 } Branch { ZOrder 4 Points [165, 0] Branch { ZOrder 5 DstBlock "Gain" DstPort 1 } Branch { ZOrder 6 Points [0, -80] DstBlock "Gain2" DstPort 1 } } } Line { ZOrder 7 SrcBlock "h_c" SrcPort 1 Points [150, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 8 SrcBlock "Integrator" SrcPort 1 Points [55, 0] DstBlock "Sum" DstPort 2 } Line { ZOrder 9 SrcBlock "Mux" SrcPort 1 DstBlock "CI_AltHold" DstPort 1 } Line { ZOrder 10 SrcBlock "Vz_c" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { ZOrder 11 SrcBlock "Sum" SrcPort 1 DstBlock "Vz_c\n" DstPort 1 } Line { ZOrder 12 SrcBlock "Gain2" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 13 SrcBlock "Gain" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 14 SrcBlock "CI_AltHold" SrcPort 1 Points [31, 0; 0, -95] DstBlock "Integrator" DstPort 2 } } } Block { BlockType SubSystem Name "Climb command" SID "1150" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 182, 630, 218] ZOrder 60 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Climb command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "1151" Position [170, 15, 229, 43] ZOrder -2 PropagateVarSize "During execution" ActionType "then" } Block { BlockType Constant Name "h_switch2" SID "1152" Position [155, 70, 210, 100] ZOrder 63 ShowName off Value "Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "1153" 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 "1154" Ports [0, 1, 0, 0, 0, 0, 0, 1] Position [500, 257, 630, 293] ZOrder 65 TreatAsAtomicUnit on RequestExecContextInheritance off Variant off System { Name "Descent command" Location [1592, -8, 2974, 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 "100" Block { BlockType ActionPort Name "Action Port" SID "1155" Position [170, 15, 229, 43] ZOrder -2 InitializeStates "reset" ActionType "elseif" } Block { BlockType Constant Name "h_switch4" SID "1156" Position [80, 70, 135, 100] ZOrder 65 ShowName off Value "-Vz_c" SampleTime "-1" } Block { BlockType Outport Name "Vz_c" SID "1157" 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 "1158" Ports [1, 3] Position [210, 210, 335, 280] ZOrder 61 IfExpression "u1 > h_switch" ElseIfExpressions "u1 < -h_switch" } Block { BlockType Memory Name "Memory" SID "1159" Position [630, 455, 660, 485] ZOrder 72 BlockMirror on InheritSampleTime on } Block { BlockType Merge Name "Merge" SID "1160" Ports [3, 1] Position [725, 255, 765, 295] ZOrder 71 Inputs "3" } Block { BlockType Sum Name "Sum3" SID "1161" Ports [2, 1] Position [110, 235, 130, 255] ZOrder 55 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "Vz_c" SID "1162" Position [1085, 268, 1115, 282] ZOrder -10 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "h c" SrcPort 1 Points [23, 0] Branch { ZOrder 2 Points [0, 100] DstBlock "Altitude Capture/Hold" DstPort 1 } 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 2 } } 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 "Memory" SrcPort 1 Points [-155, 0; 0, -105] DstBlock "Altitude Capture/Hold" DstPort 3 } Line { ZOrder 15 SrcBlock "Merge" SrcPort 1 Points [85, 0] Branch { ZOrder 16 Points [0, 195] DstBlock "Memory" DstPort 1 } Branch { ZOrder 17 DstBlock "Vz_c" DstPort 1 } } } } Block { BlockType Logic Name "Logical\nOperator" SID "1163" Ports [2, 1] Position [1360, 447, 1390, 478] ZOrder 112 Operator "OR" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator1" SID "1164" Ports [1, 1] Position [1430, 449, 1460, 481] ZOrder 113 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator3" SID "1166" Ports [1, 1] Position [1430, 379, 1460, 411] ZOrder 115 Operator "NOT" AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Logic Name "Logical\nOperator5" SID "1168" Ports [2, 1] Position [1530, 442, 1560, 473] ZOrder 119 AllPortsSameDT off OutDataTypeStr "boolean" } Block { BlockType Memory Name "Memory" SID "1169" Position [1595, 445, 1625, 475] ZOrder 120 InheritSampleTime on } Block { BlockType MultiPortSwitch Name "Multiport\nSwitch" SID "1170" Ports [3, 1] Position [620, 190, 670, 250] ZOrder 47 ForegroundColor "red" Inputs "2" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType SubSystem Name "Va speed control" SID "1181" Ports [4, 1] Position [725, 568, 860, 797] ZOrder 122 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Va speed control" Location [-8, -8, 1608, 908] 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 "Va c" SID "1182" Position [140, 68, 170, 82] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Va meas" SID "1183" Position [140, 183, 170, 197] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1184" Position [140, 288, 170, 302] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1185" Position [140, 393, 170, 407] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant" SID "1186" Position [355, 120, 410, 150] ZOrder -5 Value "delta_x_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "1187" Position [355, 174, 430, 206] ZOrder -7 ShowName off Gain "K1_Va" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1188" Position [355, 59, 430, 91] ZOrder -8 ShowName off Gain "K1_intVa" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1189" Position [355, 279, 430, 311] ZOrder -9 ShowName off Gain "K1_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1190" Position [355, 384, 430, 416] ZOrder -10 ShowName off Gain "K1_Vz" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1191" Ports [2, 1] Position [505, 67, 535, 98] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "1192" 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 "1193" 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 "1194" Ports [2, 1] Position [225, 65, 245, 85] ZOrder -14 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off SampleTime "Ts_K1" } Block { BlockType Constant Name "Va eq" SID "1196" Position [125, 225, 180, 255] ZOrder -15 Value "Va_eq" SampleTime "0" } Block { BlockType Outport Name "delta_x_c" SID "1197" 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 "Integrator" DstPort 1 } Line { ZOrder 8 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" 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_x_c" DstPort 1 } Line { ZOrder 14 SrcBlock "Constant" SrcPort 1 Points [48, 0; 0, -45] DstBlock "Integrator" DstPort 2 } Line { ZOrder 15 SrcBlock "Va eq" SrcPort 1 Points [115, 0] DstBlock "Sum1" DstPort 2 } Line { ZOrder 16 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 17 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 18 SrcBlock "Vz meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } } } Block { BlockType SubSystem Name "Vz speed control" SID "1198" Ports [4, 1] Position [725, 298, 860, 527] ZOrder 121 ForegroundColor "red" BackgroundColor "orange" RequestExecContextInheritance off Variant off System { Name "Vz speed control" Location [-8, -8, 1608, 908] 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 "Vz c" SID "1199" Position [175, 118, 205, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "Vz meas" SID "1200" Position [175, 243, 205, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q meas" SID "1201" Position [175, 358, 205, 372] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "az meas" SID "1202" Position [175, 473, 205, 487] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "Constant1" SID "1203" Position [470, 175, 525, 205] ZOrder 2 Value "delta_e_eq" SampleTime "0" } Block { BlockType Gain Name "Gain" SID "1204" Position [470, 234, 545, 266] ZOrder -7 ShowName off Gain "K2_Vz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "1205" Position [470, 109, 545, 141] ZOrder -8 ShowName off Gain "K2_intVz" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "1206" Position [470, 349, 545, 381] ZOrder -9 ShowName off Gain "K2_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "1207" Position [470, 464, 545, 496] ZOrder -10 ShowName off Gain "K2_az" SaturateOnIntegerOverflow off } Block { BlockType Integrator Name "Integrator" SID "1208" Ports [2, 1] Position [635, 117, 665, 148] ZOrder 76 InitialConditionSource "external" } Block { BlockType Sum Name "Sum" SID "1209" Ports [4, 1] Position [940, 77, 970, 538] ZOrder -11 ShowName off Inputs "++++" InputSameDT off SaturateOnIntegerOverflow off SampleTime "0" } Block { BlockType Sum Name "Sum4" SID "1210" Ports [2, 1] Position [380, 115, 400, 135] ZOrder -13 ShowName off IconShape "round" Inputs "|+-" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Outport Name "delta_e_c" SID "1211" Position [1065, 303, 1095, 317] ZOrder -14 IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "Gain" SrcPort 1 DstBlock "Sum" DstPort 2 } Line { ZOrder 2 SrcBlock "Gain1" SrcPort 1 DstBlock "Integrator" DstPort 1 } Line { ZOrder 3 SrcBlock "q meas" SrcPort 1 DstBlock "Gain4" DstPort 1 } Line { ZOrder 4 SrcBlock "az meas" SrcPort 1 DstBlock "Gain5" DstPort 1 } Line { ZOrder 5 SrcBlock "Gain4" SrcPort 1 DstBlock "Sum" DstPort 3 } Line { ZOrder 6 SrcBlock "Gain5" SrcPort 1 DstBlock "Sum" DstPort 4 } Line { ZOrder 7 SrcBlock "Sum" SrcPort 1 DstBlock "delta_e_c" DstPort 1 } Line { ZOrder 8 SrcBlock "Sum4" SrcPort 1 DstBlock "Gain1" DstPort 1 } Line { ZOrder 9 SrcBlock "Integrator" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 10 SrcBlock "Constant1" SrcPort 1 Points [58, 0; 0, -50] DstBlock "Integrator" DstPort 2 } Line { ZOrder 11 SrcBlock "Vz meas" SrcPort 1 Points [180, 0] Branch { ZOrder 12 DstBlock "Sum4" DstPort 2 } Branch { ZOrder 13 DstBlock "Gain" DstPort 1 } } Line { ZOrder 14 SrcBlock "Vz c" SrcPort 1 DstBlock "Sum4" DstPort 1 } } } Block { BlockType Sum Name "delta_e_c_com -\ndelta_e_c_mon" SID "1212" 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 "1213" 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 "1214" 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 "1215" 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 "1216" Position [960, 408, 990, 422] ZOrder 58 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "1217" Position [960, 678, 990, 692] ZOrder 59 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "altitude hold Vz_c" SID "1218" Position [455, 138, 485, 152] ZOrder 60 Port "3" IconDisplay "Port number" SampleTime "Ts_h" } Block { BlockType Outport Name "relay_delta_e_c" SID "1219" Position [1655, 353, 1685, 367] ZOrder 101 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "relay_delta_x_c" SID "1220" Position [1655, 598, 1685, 612] ZOrder 102 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "master in law" SID "1221" Position [1655, 453, 1685, 467] ZOrder 111 Port "6" IconDisplay "Port number" } Line { ZOrder 59 SrcBlock "h meas" SrcPort 1 DstBlock "Altitude Hold " DstPort 2 } Line { ZOrder 58 SrcBlock "h c" SrcPort 1 DstBlock "Altitude Hold " DstPort 1 } Line { ZOrder 31 SrcBlock "Altitude Hold " SrcPort 1 Points [16, 0] Branch { ZOrder 67 DstBlock "Multiport\nSwitch" DstPort 2 } Branch { ZOrder 32 Points [0, -75] DstBlock "altitude hold Vz_c" DstPort 1 } } Line { ZOrder 62 SrcBlock "az meas" SrcPort 1 DstBlock "Vz speed control" DstPort 4 } Line { ZOrder 18 SrcBlock "q meas" SrcPort 1 Points [11, 0] Branch { ZOrder 65 Points [0, 270] DstBlock "Va speed control" DstPort 3 } Branch { ZOrder 61 DstBlock "Vz speed control" DstPort 3 } } Line { ZOrder 64 SrcBlock "Va meas" SrcPort 1 DstBlock "Va speed control" DstPort 2 } Line { ZOrder 63 SrcBlock "Va c" SrcPort 1 DstBlock "Va speed control" DstPort 1 } Line { ZOrder 28 SrcBlock "Vz meas" SrcPort 1 Points [22, 0] Branch { ZOrder 66 Points [0, 380] DstBlock "Va speed control" DstPort 4 } Branch { ZOrder 60 DstBlock "Vz speed control" DstPort 2 } } Line { ZOrder 11 SrcBlock "Multiport\nSwitch" SrcPort 1 Points [19, 0; 0, 110] DstBlock "Vz speed control" DstPort 1 } 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 [15, 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 22 SrcBlock "Vz speed control" SrcPort 1 Points [14, 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 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 37 SrcBlock "greater than\nepsilon_delta_e_c" SrcPort 1 Points [21, 0] Branch { ZOrder 117 Points [0, 95] DstBlock "Logical\nOperator" DstPort 1 } Branch { ZOrder 116 DstBlock "relay_delta_e_c" DstPort 1 } } Line { ZOrder 34 SrcBlock "greater than\nepsilon_delta_x_c" SrcPort 1 Points [20, 0] Branch { ZOrder 114 Points [0, -135] DstBlock "Logical\nOperator" DstPort 2 } Branch { ZOrder 112 DstBlock "relay_delta_x_c" 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 } } } Block { BlockType SubSystem Name "Flight Dynamics" SID "619" Ports [2, 6] Position [875, 171, 1005, 229] ZOrder 56 BackgroundColor "green" RequestExecContextInheritance off Variant off System { Name "Flight Dynamics" 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 "T" SID "620" Position [40, 63, 70, 77] ZOrder -1 ShowName off IconDisplay "Signal name" } Block { BlockType Inport Name "delta_e" SID "621" Position [40, 243, 70, 257] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Fcn Name "Airspeed Va " SID "622" Position [730, 85, 790, 115] ZOrder -5 Expr "sqrt(u(1)^2+u(2)^2)" } Block { BlockType Fcn Name "Altitude h" SID "623" Position [730, 305, 790, 335] ZOrder -4 Expr "u(5)" } Block { BlockType SubSystem Name "Flight Dynamics Model" SID "626" Ports [1, 2] Position [285, 192, 440, 308] ZOrder -11 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 "627" Position [35, 208, 65, 222] ZOrder -1 IconDisplay "Port number" } Block { BlockType SubSystem Name "Aerodynamic Coefficients" SID "628" 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 "629" Position [55, 108, 85, 122] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "alpha" SID "630" Position [55, 193, 85, 207] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "q" SID "631" Position [55, 613, 85, 627] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "V" SID "632" Position [55, 713, 85, 727] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "CD0" SID "633" Position [315, 15, 345, 45] ZOrder -5 ShowName off Value "CD_0" } Block { BlockType Constant Name "Cm0" SID "634" Position [320, 450, 350, 480] ZOrder -6 ShowName off Value "Cm_0" } Block { BlockType Gain Name "Gain" SID "635" Position [315, 92, 410, 138] ZOrder -7 ShowName off Gain "CD_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain1" SID "636" Position [315, 173, 385, 227] ZOrder -8 ShowName off Gain "CD_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain2" SID "637" Position [315, 287, 385, 333] ZOrder -9 ShowName off Gain "CL_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain3" SID "638" Position [315, 368, 385, 422] ZOrder -10 ShowName off Gain "CL_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain4" SID "639" Position [320, 512, 395, 558] ZOrder -11 ShowName off Gain "Cm_deltae" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain5" SID "640" Position [320, 573, 390, 627] ZOrder -12 ShowName off Gain "Cm_alpha" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain6" SID "641" Position [320, 648, 390, 702] ZOrder -13 ShowName off Gain "Cm_q" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID "642" Position [225, 648, 295, 702] ZOrder -14 ShowName off Gain "cbar/2" SaturateOnIntegerOverflow off } Block { BlockType Math Name "Math\nFunction" SID "643" Ports [1, 1] Position [215, 185, 245, 215] ZOrder -15 Operator "magnitude^2" } Block { BlockType Product Name "Product" SID "644" Ports [2, 1] Position [175, 657, 205, 688] ZOrder -16 Inputs "*/" InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum" SID "645" 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 "646" 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 "647" 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 "648" 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 "649" Position [40, 255, 85, 285] ZOrder -21 Value "alpha_0" } Block { BlockType Outport Name "CD\nDrag coefficient" SID "650" Position [580, 108, 610, 122] ZOrder -22 IconDisplay "Port number" } Block { BlockType Outport Name "CL\nLift coefficient" SID "651" Position [580, 303, 610, 317] ZOrder -23 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Cm\nPitching coefficient" SID "652" 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 "653" 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 "654" Position [55, 128, 85, 142] ZOrder -1 IconDisplay "Port number" } Block { BlockType Inport Name "CD" SID "655" Position [55, 28, 85, 42] ZOrder -2 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "CL" SID "656" Position [55, 253, 85, 267] ZOrder -3 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "Cm" SID "657" Position [55, 373, 85, 387] ZOrder -4 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "qbar" SID "658" Position [55, 478, 85, 492] ZOrder -5 Port "5" IconDisplay "Port number" } Block { BlockType Gain Name "Gain1" SID "659" Position [235, 458, 305, 512] ZOrder -6 ShowName off Gain "S" SaturateOnIntegerOverflow off } Block { BlockType Gain Name "Gain7" SID "660" Position [235, 353, 305, 407] ZOrder -7 ShowName off Gain "cbar" SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product1" SID "661" Ports [2, 1] Position [255, 27, 285, 58] ZOrder -8 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product2" SID "662" Ports [2, 1] Position [255, 92, 285, 123] ZOrder -9 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product3" SID "663" Ports [2, 1] Position [255, 172, 285, 203] ZOrder -10 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product4" SID "664" Ports [2, 1] Position [255, 237, 285, 268] ZOrder -11 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product5" SID "665" Ports [2, 1] Position [615, 127, 645, 158] ZOrder -12 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product6" SID "666" Ports [2, 1] Position [615, 287, 645, 318] ZOrder -13 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Product Name "Product7" SID "667" Ports [2, 1] Position [615, 462, 645, 493] ZOrder -14 ShowName off InputSameDT off SaturateOnIntegerOverflow off } Block { BlockType Sum Name "Sum1" SID "668" 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 "669" 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 "670" Ports [1, 1] Position [140, 100, 170, 130] ZOrder -17 ShowName off } Block { BlockType Trigonometry Name "Trigonometric\nFunction1" SID "671" Ports [1, 1] Position [140, 140, 170, 170] ZOrder -18 ShowName off Operator "cos" } Block { BlockType Outport Name "Xa\nXb-force\n" SID "672" Position [730, 138, 760, 152] ZOrder -19 IconDisplay "Port number" } Block { BlockType Outport Name "Za\nZb-force" SID "673" Position [730, 298, 760, 312] ZOrder -20 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Ma\nPitching moment" SID "674" 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 "675" Position [1045, 20, 1100, 50] ZOrder 5 Gain "180/pi" ParamDataTypeStr "Inherit: Inherit via internal rule" OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Mux Name "Mux" SID "676" Ports [6, 1] Position [1140, 389, 1145, 476] ZOrder -4 ShowName off Inputs "6" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" SID "677" Ports [2, 1] Position [335, 36, 340, 154] ZOrder -5 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Mux Name "Mux2" SID "678" Ports [3, 1] Position [730, 169, 735, 231] ZOrder -6 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux3" SID "679" Ports [2, 1] Position [785, 394, 790, 456] ZOrder -7 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Scope Name "Scope" SID "680" Ports [1] Position [1170, 19, 1200, 51] ZOrder 1 ScopeSpecificationString "C++SS(StrPVP('Location','[188, 390, 512, 629]'),StrPVP('Open','off'),MxPVP('AxesTitle" "s',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]'" "',''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1" "]'',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|no" "ne|none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','-0.001'),StrPVP('YMax','0.011'),StrPVP('DataF" "ormat','StructureWithTime'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0'),StrPVP('ScrollMo" "de','off'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Scope Name "Scope1" SID "681" Ports [1] Position [370, 4, 400, 36] ZOrder 6 ScopeSpecificationString "C++SS(StrPVP('Location','[1, 71, 1681, 1016]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''" ",''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]" "'',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|non" "e|none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','-0.001'),StrPVP('YMax','0.011'),StrPVP('SaveNa" "me','ScopeData3'),StrPVP('DataFormat','StructureWithTime'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSa" "mpleTime','0'),StrPVP('ScrollMode','off'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType Sum Name "Sum" SID "682" Ports [2, 1] Position [1000, 25, 1020, 45] ZOrder 2 ShowName off IconShape "round" Inputs "|+-" InputSameDT off OutDataTypeStr "Inherit: Inherit via internal rule" SaturateOnIntegerOverflow off } Block { BlockType Fcn Name "V\nAirspeed" SID "683" Position [185, 110, 245, 140] ZOrder -8 Expr "sqrt(u(3)^2+u(4)^2)" } Block { BlockType Fcn Name "alpha\nAngle of attack" SID "684" Position [185, 165, 245, 195] ZOrder -9 Expr "atan(u(4)/u(3))" } Block { BlockType Selector Name "de\nElevator deflection" SID "685" Ports [1, 1] Position [195, 236, 235, 274] ZOrder -10 InputPortWidth "8" IndexOptions "Index vector (dialog)" Indices "[2]" OutputSizes "1" } Block { BlockType Fcn Name "hdot" SID "686" Position [850, 480, 1030, 510] ZOrder -11 Expr "u(3)*sin(u(6))-u(4)*cos(u(6))" } Block { BlockType Fcn Name "londot" SID "687" Position [850, 525, 1030, 555] ZOrder 7 Expr "u(3)*cos(u(6))+u(4)*sin(u(6))" } Block { BlockType Selector Name "q\nPitch rate" SID "688" Ports [1, 1] Position [195, 306, 235, 344] ZOrder -12 InputPortWidth "8" IndexOptions "Index vector (dialog)" Indices "[5]" OutputSizes "1" } Block { BlockType Fcn Name "qbar\nDynamic pressure" SID "689" Position [395, 80, 455, 110] ZOrder -13 Expr "0.5*u(1)*u(2)^2" } Block { BlockType Fcn Name "qdot" SID "690" Position [850, 385, 1030, 415] ZOrder -14 Expr "1/I_y*u(11)" } Block { BlockType Fcn Name "rho\nAir density" SID "691" Position [185, 50, 245, 80] ZOrder -15 Expr "rho0*(1+T0_h/T0_0*u(7))^(-g0/(Rs*T0_h)-1)" } Block { BlockType Fcn Name "theta" SID "692" Position [915, 22, 965, 48] ZOrder 4 Expr "u(6)" } Block { BlockType Fcn Name "thetadot" SID "693" Position [850, 435, 1030, 465] ZOrder -16 Expr "u(5)" } Block { BlockType Fcn Name "udot" SID "694" Position [850, 295, 1030, 325] ZOrder -17 Expr "-g0*sin(u(6))-u(5)*u(4)+1/mass*(u(1)+u(9))" } Block { BlockType Fcn Name "wdot" SID "695" Position [850, 341, 1030, 369] ZOrder -18 Expr "g0*cos(u(6))+u(5)*u(3)+1/mass*u(10)" } Block { BlockType Outport Name "Za" SID "696" Position [1170, 93, 1200, 107] ZOrder -19 IconDisplay "Port number" } Block { BlockType Outport Name "xdot" SID "697" Position [1170, 428, 1200, 442] ZOrder -20 Port "2" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "udot" SrcPort 1 Points [70, 0; 0, 85] DstBlock "Mux" DstPort 1 } Line { ZOrder 2 SrcBlock "wdot" SrcPort 1 Points [50, 0; 0, 55] DstBlock "Mux" DstPort 2 } Line { ZOrder 3 SrcBlock "qdot" SrcPort 1 Points [23, 0; 0, 25] DstBlock "Mux" DstPort 3 } Line { ZOrder 4 SrcBlock "thetadot" SrcPort 1 Points [23, 0; 0, -10] DstBlock "Mux" DstPort 4 } Line { ZOrder 5 SrcBlock "hdot" SrcPort 1 Points [65, 0; 0, -40] 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, -25] Branch { ZOrder 44 Points [0, -45] Branch { ZOrder 45 Points [0, -45] Branch { ZOrder 46 Points [0, -275] DstBlock "theta" DstPort 1 } Branch { ZOrder 47 DstBlock "udot" DstPort 1 } } Branch { ZOrder 48 DstBlock "wdot" DstPort 1 } } Branch { ZOrder 49 DstBlock "qdot" DstPort 1 } } Branch { ZOrder 50 Points [0, 25] Branch { ZOrder 51 Points [0, 45] Branch { ZOrder 52 DstBlock "hdot" DstPort 1 } Branch { ZOrder 53 Points [0, 45] DstBlock "londot" DstPort 1 } } Branch { ZOrder 54 DstBlock "thetadot" DstPort 1 } } } Line { ZOrder 55 SrcBlock "Sum" SrcPort 1 DstBlock "Gain" DstPort 1 } Line { ZOrder 56 SrcBlock "theta" SrcPort 1 DstBlock "Sum" DstPort 1 } Line { ZOrder 57 SrcBlock "Gain" SrcPort 1 DstBlock "Scope" DstPort 1 } Line { ZOrder 58 SrcBlock "londot" SrcPort 1 Points [85, 0; 0, -70] DstBlock "Mux" DstPort 6 } } } Block { BlockType Integrator Name "Integrator" SID "711" Ports [1, 1] Position [490, 265, 520, 295] ZOrder 57 InitialCondition "[CI_FD 0]" } Block { BlockType Fcn Name "Longitude lon" SID "698" Position [730, 360, 790, 390] ZOrder 4 Expr "u(6)" } Block { BlockType Mux Name "Mux" SID "699" Ports [3, 1] Position [140, 231, 145, 269] ZOrder -9 ShowName off Inputs "3" DisplayOption "bar" } Block { BlockType Mux Name "Mux1" SID "700" Ports [2, 1] Position [605, 191, 610, 229] ZOrder -10 ShowName off Inputs "2" DisplayOption "bar" } Block { BlockType Fcn Name "Norm. Acc. az " SID "701" Position [730, 140, 790, 170] ZOrder -6 Expr "g0*cos(u(4))+1/mass*u(7)" } Block { BlockType Fcn Name "Pitch Rate q " SID "702" Position [730, 195, 790, 225] ZOrder -7 Expr "u(3)" } Block { BlockType Fcn Name "Vert. Speed Vz" SID "703" Position [730, 250, 790, 280] ZOrder -8 Expr "u(2)*cos(u(4)) - u(1)*sin(u(4))" } Block { BlockType Outport Name "Va" SID "704" Position [895, 93, 925, 107] ZOrder -12 IconDisplay "Port number" } Block { BlockType Outport Name "az" SID "705" Position [895, 148, 925, 162] ZOrder -13 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "q" SID "706" Position [895, 203, 925, 217] ZOrder -14 Port "3" IconDisplay "Port number" } Block { BlockType Outport Name "Vz" SID "707" Position [895, 258, 925, 272] ZOrder -15 Port "4" IconDisplay "Port number" } Block { BlockType Outport Name "h" SID "708" Position [895, 313, 925, 327] ZOrder -16 Port "5" IconDisplay "Port number" } Block { BlockType Outport Name "lon" SID "709" Position [895, 368, 925, 382] ZOrder 3 Port "6" IconDisplay "Port number" } Line { ZOrder 1 SrcBlock "delta_e" SrcPort 1 DstBlock "Mux" DstPort 2 } Line { ZOrder 26 SrcBlock "Integrator" SrcPort 1 Points [55, 0] Branch { ZOrder 3 Points [0, -80] DstBlock "Mux1" DstPort 1 } Branch { ZOrder 4 Points [0, 135; -455, 0] DstBlock "Mux" DstPort 3 } } 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 25 SrcBlock "Flight Dynamics Model" SrcPort 2 DstBlock "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] Branch { ZOrder 22 Points [0, 55] DstBlock "Longitude lon" DstPort 1 } Branch { ZOrder 23 DstBlock "Altitude h" DstPort 1 } } } } Line { ZOrder 24 SrcBlock "Longitude lon" SrcPort 1 DstBlock "lon" DstPort 1 } Annotation { SID "710" 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 [1115, 350, 1190, 380] ZOrder 52 BlockMirror on ForegroundColor "red" BackgroundColor "yellow" Value "Flight_Mode" SampleTime "0" } Block { BlockType Scope Name "T" SID "255" Ports [1] Position [800, 114, 830, 146] ZOrder -21 ScopeSpecificationString "C++SS(StrPVP('Location','[54, 130, 1666, 986]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','10100.5'),StrPVP('SaveToWor" "kspace','on'),StrPVP('SaveName','ScopeData1'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0')" ",StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput'" ",'off'))" } Block { BlockType Scope Name "Throttle" SID "554" Ports [1] Position [545, 44, 575, 76] ZOrder 53 ScopeSpecificationString "C++SS(StrPVP('Location','[54, 130, 1666, 986]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','10100.5'),StrPVP('SaveToWor" "kspace','on'),StrPVP('SaveName','ScopeData4'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0')" ",StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput'" ",'off'))" } Block { BlockType ToWorkspace Name "To Workspace1" SID "344" Ports [1] Position [395, 45, 480, 75] ZOrder -22 ShowName off VariableName "data_delta_x_c" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace2" SID "345" Ports [1] Position [395, 200, 480, 230] ZOrder -23 ShowName off VariableName "data_delta_e_c" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace3" SID "348" Ports [1] Position [1755, 20, 1840, 50] ZOrder -24 ShowName off VariableName "data_h" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace4" SID "349" Ports [1] Position [1755, 55, 1840, 85] ZOrder -25 ShowName off VariableName "data_Vz" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace5" SID "350" Ports [1] Position [1755, 90, 1840, 120] ZOrder -26 ShowName off VariableName "data_q" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace6" SID "351" Ports [1] Position [1755, 125, 1840, 155] ZOrder -27 ShowName off VariableName "data_az" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace7" SID "352" Ports [1] Position [1755, 160, 1840, 190] ZOrder -28 ShowName off VariableName "data_Va" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType ToWorkspace Name "To Workspace8" SID "1696" Ports [1] Position [460, 390, 545, 420] ZOrder 133 BlockMirror on ShowName off VariableName "data_Vzc" MaxDataPoints "inf" SaveFormat "Timeseries" SampleTime "-1" } Block { BlockType Scope Name "Va" SID "119" Ports [1] Position [1780, 239, 1810, 271] ZOrder -29 ScopeSpecificationString "C++SS(StrPVP('Location','[267, 71, 1555, 887]'),StrPVP('Open','off'),MxPVP('AxesTitles" "',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]''," "''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''" ",''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|n" "one|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('SaveName','ScopeData2'),StrPVP('DataFormat','StructureWit" "hTime'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0'),StrPVP('ScrollMode','off'),StrPVP('De" "cimation','1'),StrPVP('BlockParamSampleInput','off'))" } Block { BlockType SubSystem Name "Va filter" SID "497" Ports [1, 1] Position [1205, 699, 1335, 751] ZOrder 13 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "Va filter" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "100" Block { BlockType Inport Name "Va" SID "498" Position [85, 38, 115, 52] ZOrder -1 IconDisplay "Port number" } Block { BlockType StateSpace Name "State-Space" SID "717" Ports [1, 1] Position [325, 28, 385, 62] ZOrder 3 A "A_Va" B "B_Va" C "C_Va" D "D_Va" X0 "CI_Va" } Block { BlockType Outport Name "Va meas" SID "501" Position [545, 38, 575, 52] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 4 SrcBlock "State-Space" SrcPort 1 DstBlock "Va meas" DstPort 1 } Line { ZOrder 3 SrcBlock "Va" SrcPort 1 DstBlock "State-Space" DstPort 1 } } } Block { BlockType Scope Name "Vz" SID "388" Ports [1] Position [1780, 294, 1810, 326] ZOrder 5 ScopeSpecificationString "C++SS(StrPVP('Location','[1699, 236, 2311, 679]'),StrPVP('Open','off'),StrPVP('ZoomMod" "e','xonly'),MxPVP('AxesTitles',24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''Fig" "ureColor'',''[0.5 0.5 0.5]'',''AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0" " 1;0 1 1;1 0 0;0 1 0;0 0 1]'',''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''Mark" "erStyles'',''none|none|none|none|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','-7'),StrPVP('YMax','0" ".5'),StrPVP('SaveToWorkspace','on'),StrPVP('SaveName','h2'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSa" "mpleTime','0'),StrPVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockPar" "amSampleInput','off'))" } Block { BlockType SubSystem Name "Vz filter " SID "502" Ports [1, 1] Position [1205, 489, 1335, 541] ZOrder 12 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "Vz filter " 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 "Vz" SID "503" Position [85, 38, 115, 52] ZOrder -1 IconDisplay "Port number" } Block { BlockType StateSpace Name "State-Space" SID "716" Ports [1, 1] Position [295, 28, 355, 62] ZOrder 2 A "A_Vz" B "B_Vz" C "C_Vz" D "D_Vz" X0 "CI_Vz" } Block { BlockType Outport Name "Vz meas" SID "506" Position [545, 38, 575, 52] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 4 SrcBlock "State-Space" SrcPort 1 DstBlock "Vz meas" DstPort 1 } Line { ZOrder 3 SrcBlock "Vz" SrcPort 1 DstBlock "State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "az filter" SID "507" Ports [1, 1] Position [1205, 624, 1335, 676] ZOrder 11 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "az filter" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "284" Block { BlockType Inport Name "az" SID "508" Position [25, 38, 55, 52] ZOrder -1 IconDisplay "Port number" } Block { BlockType StateSpace Name "State-Space" SID "719" Ports [1, 1] Position [230, 28, 290, 62] ZOrder 3 A "A_az" B "B_az" C "C_az" D "D_az" X0 "CI_az" } Block { BlockType Outport Name "az meas" SID "511" Position [395, 38, 425, 52] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 4 SrcBlock "State-Space" SrcPort 1 DstBlock "az meas" DstPort 1 } Line { ZOrder 3 SrcBlock "az" SrcPort 1 DstBlock "State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "delta_c cable" SID "824" Ports [8, 2] Position [30, 573, 160, 817] ZOrder 60 BlockMirror on RequestExecContextInheritance off Variant off System { Name "delta_c cable" 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_1" SID "825" Position [30, 38, 60, 52] ZOrder 25 IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_1" SID "826" Position [30, 378, 60, 392] ZOrder 26 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_e_c_1" SID "827" Position [30, 93, 60, 107] ZOrder 27 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_x_c_1" SID "828" Position [30, 433, 60, 447] ZOrder 28 Port "4" IconDisplay "Port number" } Block { BlockType Inport Name "delta_e_c_2" SID "829" Position [30, 148, 60, 162] ZOrder 29 Port "5" IconDisplay "Port number" } Block { BlockType Inport Name "delta_x_c_2" SID "830" Position [30, 488, 60, 502] ZOrder 30 Port "6" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_e_c_2" SID "831" Position [30, 203, 60, 217] ZOrder 31 Port "7" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_x_c_2" SID "832" Position [30, 543, 60, 557] ZOrder 32 Port "8" IconDisplay "Port number" } Block { BlockType SubSystem Name "cable delta_e_c" SID "833" Ports [4, 1] Position [255, 12, 405, 243] ZOrder 22 RequestExecContextInheritance off Variant off System { Name "cable delta_e_c" 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 "125" Block { BlockType Inport Name "delta_c_1" SID "834" Position [120, 163, 150, 177] ZOrder 22 IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_1" SID "835" Position [120, 128, 150, 142] ZOrder 23 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "delta_c_2" SID "836" Position [120, 258, 150, 272] ZOrder 24 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_2" SID "837" Position [120, 223, 150, 237] ZOrder 25 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "default delta_c" SID "838" Position [120, 340, 150, 370] ZOrder 21 Value "0" } Block { BlockType MultiPortSwitch Name "delta_c\nswitch 1" SID "839" 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 "840" 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 "841" 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 SubSystem Name "cable delta_x_c" SID "842" 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 "843" Position [120, 163, 150, 177] ZOrder 22 IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_1" SID "844" Position [120, 128, 150, 142] ZOrder 23 Port "2" IconDisplay "Port number" } Block { BlockType Inport Name "delta_c_2" SID "845" Position [120, 258, 150, 272] ZOrder 24 Port "3" IconDisplay "Port number" } Block { BlockType Inport Name "relay delta_c_2" SID "846" Position [120, 223, 150, 237] ZOrder 25 Port "4" IconDisplay "Port number" } Block { BlockType Constant Name "default delta_c" SID "847" Position [120, 340, 150, 370] ZOrder 21 Value "0" } Block { BlockType MultiPortSwitch Name "delta_c\nswitch 1" SID "848" 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 "849" 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 "850" 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 "851" Position [620, 123, 650, 137] ZOrder 33 IconDisplay "Port number" } Block { BlockType Outport Name "delta_x_c" SID "852" 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 [800, 244, 830, 276] ZOrder -35 ScopeSpecificationString "C++SS(StrPVP('Location','[6, 123, 1618, 979]'),StrPVP('Open','off'),MxPVP('AxesTitles'" ",24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]'','" "'AxesColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]''," "''LineStyles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|no" "ne|none|none'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','10094'),StrPVP('YMax','10100.5'),StrPVP('SaveToWork" "space','on'),StrPVP('SaveName','delta_e'),StrPVP('LimitDataPoints','off'),StrPVP('BlockParamSampleTime','0'),Str" "PVP('ScrollMode','off'),StrPVP('DataFormat','Array'),StrPVP('Decimation','1'),StrPVP('BlockParamSampleInput','of" "f'))" } Block { BlockType SubSystem Name "h filter " SID "512" Ports [1, 1] Position [1205, 414, 1335, 466] ZOrder 10 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "h filter " 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 "h" SID "513" Position [415, 363, 445, 377] ZOrder -1 IconDisplay "Port number" } Block { BlockType StateSpace Name "State-Space" SID "715" Ports [1, 1] Position [575, 353, 635, 387] ZOrder 1 A "A_h" B "B_h" C "C_h" D "D_h" X0 "CI_h" } Block { BlockType Outport Name "h meas" SID "516" Position [745, 363, 775, 377] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 4 SrcBlock "State-Space" SrcPort 1 DstBlock "h meas" DstPort 1 } Line { ZOrder 3 SrcBlock "h" SrcPort 1 DstBlock "State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "q filter" SID "522" Ports [1, 1] Position [1205, 553, 1335, 607] ZOrder 15 BlockMirror on ForegroundColor "red" BackgroundColor "lightBlue" RequestExecContextInheritance off Variant off System { Name "q filter" Location [-1803, 45, 0, 992] Open off ModelBrowserVisibility off ModelBrowserWidth 200 ScreenColor "white" PaperOrientation "landscape" PaperPositionMode "auto" PaperType "usletter" PaperUnits "inches" TiledPaperMargins [0.500000, 0.500000, 0.500000, 0.500000] TiledPageScale 1 ShowPageBoundaries off ZoomFactor "416" Block { BlockType Inport Name "q" SID "523" Position [50, 118, 80, 132] ZOrder -1 IconDisplay "Port number" } Block { BlockType StateSpace Name "State-Space" SID "718" Ports [1, 1] Position [225, 108, 285, 142] ZOrder 3 A "A_q" B "B_q" C "C_q" D "D_q" X0 "CI_q" } Block { BlockType Outport Name "q meas" SID "526" Position [385, 118, 415, 132] ZOrder -3 IconDisplay "Port number" } Line { ZOrder 4 SrcBlock "State-Space" SrcPort 1 DstBlock "q meas" DstPort 1 } Line { ZOrder 3 SrcBlock "q" SrcPort 1 DstBlock "State-Space" DstPort 1 } } } Block { BlockType SubSystem Name "reference" SID "216" Ports [0, 3] Position [1105, 774, 1230, 936] ZOrder -38 BlockMirror on ForegroundColor "red" BackgroundColor "yellow" RequestExecContextInheritance off Variant off System { Name "reference" Location [1592, 0, 2974, 784] 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 "200" Block { BlockType Constant Name "Airspeed command" SID "217" Position [90, 185, 145, 215] ZOrder -1 Value "Va_c" SampleTime "0" } Block { BlockType FromWorkspace Name "Altitude command" SID "605" Position [85, 98, 150, 122] ZOrder 7 VariableName "Flight_Level" SampleTime "0" Interpolate off ZeroCross on OutputAfterFinalValue "Holding final value" } Block { BlockType Scope Name "Scope" SID "606" Ports [1] Position [425, 39, 455, 71] ZOrder 8 ScopeSpecificationString "C++SS(StrPVP('Location','[-874, 337, -550, 576]'),StrPVP('Open','off'),MxPVP('AxesTitles'" ",24,'struct(''axes1'',''%'')'),MxPVP('ScopeGraphics',28,'struct(''FigureColor'',''[0.5 0.5 0.5]'',''Ax" "esColor'',''[0 0 0]'',''AxesTickColor'',''[1 1 1]'',''LineColors'',''[1 1 0;1 0 1;0 1 1;1 0 0;0 1 0;0 0 1]'',''Line" "Styles'',''-|-|-|-|-|-'',''LineWidths'',''[0.5 0.5 0.5 0.5 0.5 0.5]'',''MarkerStyles'',''none|none|none|none|none|n" "one'')'),StrPVP('ShowLegends','off'),StrPVP('YMin','9250'),StrPVP('YMax','11500'),StrPVP('SaveName','ScopeData6'),S" "trPVP('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 2 Value "Vz_c" SampleTime "0" } Block { BlockType Outport Name "h c" SID "228" Position [495, 103, 525, 117] ZOrder -14 IconDisplay "Port number" } Block { BlockType Outport Name "Va c" SID "229" Position [495, 193, 525, 207] ZOrder -15 Port "2" IconDisplay "Port number" } Block { BlockType Outport Name "Vz c" SID "550" Position [495, 278, 525, 292] ZOrder 3 Port "3" IconDisplay "Port number" } Line { ZOrder 7 SrcBlock "Altitude command" SrcPort 1 Points [239, 0] Branch { ZOrder 9 Points [0, -55] DstBlock "Scope" DstPort 1 } Branch { ZOrder 8 DstBlock "h c" DstPort 1 } } Line { ZOrder 2 SrcBlock "Airspeed command" SrcPort 1 DstBlock "Va c" DstPort 1 } Line { ZOrder 3 SrcBlock "Vert. speed command" SrcPort 1 DstBlock "Vz c" DstPort 1 } } } Line { ZOrder 18 SrcBlock "Engine" SrcPort 1 Points [70, 0] Branch { ZOrder 86 Points [0, 55] DstBlock "Flight Dynamics" DstPort 1 } Branch { ZOrder 20 DstBlock "T" DstPort 1 } } Line { ZOrder 21 SrcBlock "Elevator " SrcPort 1 Points [70, 0] Branch { ZOrder 85 Points [0, -45] DstBlock "Flight Dynamics" DstPort 2 } Branch { ZOrder 23 DstBlock "delta_e" DstPort 1 } } Line { ZOrder 352 SrcBlock "delta_c cable" SrcPort 2 Points [-9, 0; 0, -625; 363, 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 353 SrcBlock "delta_c cable" SrcPort 1 Points [-2, 0; 0, -375; 360, 0] Branch { ZOrder 51 DstBlock "Elevator " DstPort 1 } Branch { ZOrder 52 Points [0, -45] DstBlock "To Workspace2" DstPort 1 } } Line { ZOrder 76 SrcBlock "Flight Dynamics" SrcPort 5 Points [431, 0] Branch { ZOrder 87 Points [0, -180] DstBlock "To Workspace3" DstPort 1 } Branch { ZOrder 81 Points [0, 150] Branch { ZOrder 91 Points [0, 75] DstBlock "h filter " DstPort 1 } Branch { ZOrder 32 DstBlock "Altitude" DstPort 1 } } } Line { ZOrder 79 SrcBlock "Flight Dynamics" SrcPort 4 Points [444, 0] Branch { ZOrder 89 Points [0, -135] DstBlock "To Workspace4" DstPort 1 } Branch { ZOrder 83 Points [0, 105] Branch { ZOrder 92 Points [0, 205] DstBlock "Vz filter " DstPort 1 } Branch { ZOrder 16 DstBlock "Vz" DstPort 1 } } } Line { ZOrder 78 SrcBlock "Flight Dynamics" SrcPort 3 Points [458, 0] Branch { ZOrder 97 Points [0, 385] DstBlock "q filter" DstPort 1 } Branch { ZOrder 90 Points [0, -90] DstBlock "To Workspace5" DstPort 1 } } Line { ZOrder 77 SrcBlock "Flight Dynamics" SrcPort 2 Points [471, 0] Branch { ZOrder 98 Points [0, 465] DstBlock "az filter" DstPort 1 } Branch { ZOrder 88 Points [0, -45] DstBlock "To Workspace6" DstPort 1 } } Line { ZOrder 80 SrcBlock "Flight Dynamics" SrcPort 1 Points [484, 0] Branch { ZOrder 3 Points [0, 80] Branch { ZOrder 99 Points [0, 470] DstBlock "Va filter" DstPort 1 } Branch { ZOrder 5 DstBlock "Va" DstPort 1 } } Branch { ZOrder 6 DstBlock "To Workspace7" DstPort 1 } } Line { ZOrder 118 SrcBlock "Flight Dynamics" SrcPort 6 Points [50, 0; 0, 75] DstBlock "Altitude1" DstPort 1 } Line { ZOrder 266 SrcBlock "FCC1A" SrcPort 2 DstBlock "FCC1 error injection" DstPort 2 } Line { ZOrder 257 SrcBlock "Flight Mode" SrcPort 1 Points [-15, 0] Branch { ZOrder 261 Points [0, -30] DstBlock "FCC1A" DstPort 1 } Branch { ZOrder 258 Points [0, 155] Branch { ZOrder 341 Points [0, 220] Branch { ZOrder 294 Points [0, 205] DstBlock "FCC2B" DstPort 1 } Branch { ZOrder 282 DstBlock "FCC2A" DstPort 1 } } Branch { ZOrder 310 DstBlock "FCC1B" DstPort 1 } } } Line { ZOrder 259 SrcBlock "h filter " SrcPort 1 Points [-134, 0] Branch { ZOrder 264 Points [0, -75] DstBlock "FCC1A" DstPort 3 } Branch { ZOrder 179 Points [0, 110] Branch { ZOrder 337 Points [0, 220] Branch { ZOrder 287 Points [0, 205] DstBlock "FCC2B" DstPort 3 } Branch { ZOrder 275 DstBlock "FCC2A" DstPort 3 } } Branch { ZOrder 300 DstBlock "FCC1B" DstPort 3 } } } Line { ZOrder 246 SrcBlock "Vz filter " SrcPort 1 Points [-163, 0] Branch { ZOrder 339 Points [0, -120] DstBlock "FCC1A" DstPort 5 } Branch { ZOrder 186 Points [0, 65; -1, 0] Branch { ZOrder 340 Points [0, 220] Branch { ZOrder 298 Points [0, 205] DstBlock "FCC2B" DstPort 5 } Branch { ZOrder 280 DstBlock "FCC2A" DstPort 5 } } Branch { ZOrder 306 DstBlock "FCC1B" DstPort 5 } } } Line { ZOrder 252 SrcBlock "q filter" SrcPort 1 Points [0, 7; -208, 0] Branch { ZOrder 267 Points [0, -147] DstBlock "FCC1A" DstPort 8 } Branch { ZOrder 192 Points [0, 38] Branch { ZOrder 317 Points [0, 220] Branch { ZOrder 293 Points [0, 205] DstBlock "FCC2B" DstPort 8 } Branch { ZOrder 277 DstBlock "FCC2A" DstPort 8 } } Branch { ZOrder 309 DstBlock "FCC1B" DstPort 8 } } } Line { ZOrder 247 SrcBlock "az filter" SrcPort 1 Points [-221, 0] Branch { ZOrder 251 Points [0, 210] Branch { ZOrder 297 Points [0, 205] DstBlock "FCC2B" DstPort 9 } Branch { ZOrder 283 DstBlock "FCC2A" DstPort 9 } } Branch { ZOrder 200 Points [0, -10] Branch { ZOrder 336 Points [0, -185] DstBlock "FCC1A" DstPort 9 } Branch { ZOrder 308 DstBlock "FCC1B" DstPort 9 } } } Line { ZOrder 248 SrcBlock "Va filter" SrcPort 1 Points [-193, 0] Branch { ZOrder 250 Points [0, 105] Branch { ZOrder 286 Points [0, 205] DstBlock "FCC2B" DstPort 7 } Branch { ZOrder 273 DstBlock "FCC2A" DstPort 7 } } Branch { ZOrder 207 Points [0, -115] Branch { ZOrder 335 Points [0, -185] DstBlock "FCC1A" DstPort 7 } Branch { ZOrder 311 DstBlock "FCC1B" DstPort 7 } } } Line { ZOrder 255 SrcBlock "reference" SrcPort 1 Points [-20, 0] Branch { ZOrder 289 Points [0, 160] DstBlock "FCC2B" DstPort 2 } Branch { ZOrder 213 Points [0, -45] Branch { ZOrder 279 DstBlock "FCC2A" DstPort 2 } Branch { ZOrder 211 Points [0, -220] Branch { ZOrder 332 Points [0, -185] DstBlock "FCC1A" DstPort 2 } Branch { ZOrder 303 DstBlock "FCC1B" DstPort 2 } } } } Line { ZOrder 253 SrcBlock "reference" SrcPort 2 Points [-81, 0] Branch { ZOrder 290 Points [0, 165] DstBlock "FCC2B" DstPort 6 } Branch { ZOrder 220 Points [0, -40] Branch { ZOrder 274 DstBlock "FCC2A" DstPort 6 } Branch { ZOrder 218 Points [0, -220] Branch { ZOrder 334 Points [0, -185] DstBlock "FCC1A" DstPort 6 } Branch { ZOrder 301 DstBlock "FCC1B" DstPort 6 } } } } Line { ZOrder 254 SrcBlock "reference" SrcPort 3 Points [-50, 0] Branch { ZOrder 296 Points [0, 80] DstBlock "FCC2B" DstPort 4 } Branch { ZOrder 227 Points [0, -125] Branch { ZOrder 276 DstBlock "FCC2A" DstPort 4 } Branch { ZOrder 225 Points [0, -220] Branch { ZOrder 331 Points [0, -185] DstBlock "FCC1A" DstPort 4 } Branch { ZOrder 302 DstBlock "FCC1B" DstPort 4 } } } } Line { ZOrder 270 SrcBlock "FCC1A" SrcPort 1 DstBlock "FCC1 error injection" DstPort 1 } Line { ZOrder 584 SrcBlock "FCC1A" SrcPort 3 DstBlock "To Workspace8" DstPort 1 } Line { ZOrder 278 SrcBlock "FCC2A" SrcPort 1 DstBlock "FCC2 error injection" DstPort 1 } Line { ZOrder 281 SrcBlock "FCC2A" SrcPort 2 DstBlock "FCC2 error injection" DstPort 2 } Line { ZOrder 328 SrcBlock "FCC1B" SrcPort 4 Points [-64, 0; 0, 35] DstBlock "delta_c cable" DstPort 3 } Line { ZOrder 329 SrcBlock "FCC1B" SrcPort 5 Points [-44, 0; 0, 40] DstBlock "delta_c cable" DstPort 4 } Line { ZOrder 305 SrcBlock "FCC1B" SrcPort 6 Points [-19, 0; 0, 209; 269, 0; 0, 236] DstBlock "FCC2B" DstPort 12 } Line { ZOrder 313 SrcBlock "FCC2B" SrcPort 6 Points [-7, 0; 0, -383; 196, 0; 0, -22] DstBlock "FCC1B" DstPort 12 } Line { ZOrder 350 SrcBlock "FCC2B" SrcPort 4 Points [-81, 0; 0, -270] DstBlock "delta_c cable" DstPort 7 } Line { ZOrder 351 SrcBlock "FCC2B" SrcPort 5 Points [-125, 0; 0, -265] DstBlock "delta_c cable" DstPort 8 } Line { ZOrder 466 SrcBlock "FCC1 error injection" SrcPort 1 Points [-106, 0; 0, 115] Branch { ZOrder 572 Points [324, 0; 0, 185] DstBlock "FCC1B" DstPort 10 } Branch { ZOrder 570 Points [0, 120] DstBlock "delta_c cable" DstPort 1 } } Line { ZOrder 467 SrcBlock "FCC1 error injection" SrcPort 2 Points [-73, 0; 0, 71] Branch { ZOrder 576 Points [0, 169] DstBlock "delta_c cable" DstPort 2 } Branch { ZOrder 574 Points [309, 0; 0, 219] DstBlock "FCC1B" DstPort 11 } } Line { ZOrder 470 SrcBlock "FCC2 error injection" SrcPort 1 Points [-42, 0] Branch { ZOrder 559 Points [0, 103; 195, 0; 0, 217] DstBlock "FCC2B" DstPort 10 } Branch { ZOrder 554 Points [0, -40; -36, 0; 0, -10] DstBlock "delta_c cable" DstPort 5 } } Line { ZOrder 471 SrcBlock "FCC2 error injection" SrcPort 2 Points [-12, 0] Branch { ZOrder 561 Points [0, 60; 177, 0; 0, 250] DstBlock "FCC2B" DstPort 11 } Branch { ZOrder 555 Points [0, -45] DstBlock "delta_c cable" DstPort 6 } } } } #Finite State Machines # # Stateflow 80000009 # # Stateflow { machine { id 1 name "Continuous_Closed_Loop_Model" 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] } }