diff options
author | Siddharth11235 | 2019-09-03 18:09:16 +0530 |
---|---|---|
committer | Siddharth11235 | 2019-09-03 18:09:16 +0530 |
commit | b4b6aa36e3486a3544acc52419149b5671f841e9 (patch) | |
tree | 66c1783158f23e6d21c77324156fc57e18d4ac67 /Prof_Arya | |
parent | f5266f634f4fb4fd39933a83551a01cf446256b8 (diff) | |
download | OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.tar.gz OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.tar.bz2 OpenModelica_HIL-b4b6aa36e3486a3544acc52419149b5671f841e9.zip |
Diffstat (limited to 'Prof_Arya')
42 files changed, 13001 insertions, 0 deletions
diff --git a/Prof_Arya/Cessna_6DOF.mdl b/Prof_Arya/Cessna_6DOF.mdl new file mode 100644 index 0000000..3d57cf7 --- /dev/null +++ b/Prof_Arya/Cessna_6DOF.mdl @@ -0,0 +1,2069 @@ +Model {
+ Name "Cessna_6DOF"
+ Version 8.3
+ MdlSubVersion 0
+ SavedCharacterEncoding "windows-1252"
+ GraphicalInterface {
+ NumRootInports 0
+ NumRootOutports 0
+ ParameterArgumentNames ""
+ ComputedModelVersion "1.16"
+ NumModelReferences 0
+ NumTestPointedSignals 0
+ }
+ SaveDefaultBlockParams on
+ ScopeRefreshTime 0.035000
+ OverrideScopeRefreshTime on
+ DisableAllScopes off
+ DataTypeOverride "UseLocalSettings"
+ DataTypeOverrideAppliesTo "AllNumericTypes"
+ MinMaxOverflowLogging "UseLocalSettings"
+ MinMaxOverflowArchiveMode "Overwrite"
+ FPTRunName "Run 1"
+ MaxMDLFileLineLength 120
+ Object {
+ $PropName "BdWindowsInfo"
+ $ObjectID 1
+ $ClassName "Simulink.BDWindowsInfo"
+ Object {
+ $PropName "WindowsInfo"
+ $ObjectID 2
+ $ClassName "Simulink.WindowInfo"
+ IsActive [1]
+ Location [-8.0, -8.0, 1382.0, 754.0]
+ Object {
+ $PropName "ModelBrowserInfo"
+ $ObjectID 3
+ $ClassName "Simulink.ModelBrowserInfo"
+ Visible [0]
+ DockPosition "Left"
+ Width [50]
+ Height [50]
+ Filter [8]
+ }
+ Object {
+ $PropName "ExplorerBarInfo"
+ $ObjectID 4
+ $ClassName "Simulink.ExplorerBarInfo"
+ Visible [1]
+ }
+ Object {
+ $PropName "EditorsInfo"
+ $ObjectID 5
+ $ClassName "Simulink.EditorInfo"
+ IsActive [1]
+ ViewObjType "SimulinkTopLevel"
+ LoadSaveID "0"
+ Extents [1332.0, 580.0]
+ ZoomFactor [1.0]
+ Offset [0.0, 0.0]
+ }
+ }
+ }
+ Created "Sat Dec 20 14:26:50 2014"
+ Creator "Pranav"
+ UpdateHistory "UpdateHistoryNever"
+ ModifiedByFormat "%<Auto>"
+ LastModifiedBy "Pranav"
+ ModifiedDateFormat "%<Auto>"
+ LastModifiedDate "Wed Mar 30 16:47:01 2016"
+ RTWModifiedTimeStamp 381257210
+ ModelVersionFormat "1.%<AutoIncrement:16>"
+ ConfigurationManager "none"
+ SampleTimeColors off
+ SampleTimeAnnotations off
+ LibraryLinkDisplay "none"
+ WideLines off
+ ShowLineDimensions off
+ ShowPortDataTypes off
+ ShowDesignRanges off
+ ShowLoopsOnError on
+ IgnoreBidirectionalLines off
+ ShowStorageClass off
+ ShowTestPointIcons on
+ ShowSignalResolutionIcons on
+ ShowViewerIcons on
+ SortedOrder off
+ ExecutionContextIcon off
+ ShowLinearizationAnnotations on
+ BlockNameDataTip off
+ BlockParametersDataTip off
+ BlockDescriptionStringDataTip off
+ ToolBar on
+ StatusBar on
+ BrowserShowLibraryLinks off
+ BrowserLookUnderMasks off
+ SimulationMode "normal"
+ PauseTimes "5"
+ NumberOfSteps 1
+ SnapshotBufferSize 10
+ SnapshotInterval 10
+ NumberOfLastSnapshots 0
+ LinearizationMsg "none"
+ Profile off
+ ParamWorkspaceSource "MATLABWorkspace"
+ AccelSystemTargetFile "accel.tlc"
+ AccelTemplateMakefile "accel_default_tmf"
+ AccelMakeCommand "make_rtw"
+ TryForcingSFcnDF off
+ Object {
+ $PropName "DataLoggingOverride"
+ $ObjectID 6
+ $ClassName "Simulink.SimulationData.ModelLoggingInfo"
+ model_ "Cessna_6DOF"
+ overrideMode_ [0.0]
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell "Cessna_6DOF"
+ PropName "logAsSpecifiedByModels_"
+ }
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell []
+ PropName "logAsSpecifiedByModelsSSIDs_"
+ }
+ }
+ RecordCoverage off
+ CovPath "/"
+ CovSaveName "covdata"
+ CovMetricSettings "dw"
+ CovNameIncrementing off
+ CovHtmlReporting on
+ CovForceBlockReductionOff on
+ CovEnableCumulative on
+ covSaveCumulativeToWorkspaceVar on
+ CovSaveSingleToWorkspaceVar on
+ CovCumulativeVarName "covCumulativeData"
+ CovCumulativeReport off
+ CovReportOnPause on
+ CovModelRefEnable "Off"
+ CovExternalEMLEnable off
+ CovSFcnEnable off
+ CovBoundaryAbsTol 0.000010
+ CovBoundaryRelTol 0.010000
+ ExtModeBatchMode off
+ ExtModeEnableFloating on
+ ExtModeTrigType "manual"
+ ExtModeTrigMode "normal"
+ ExtModeTrigPort "1"
+ ExtModeTrigElement "any"
+ ExtModeTrigDuration 1000
+ ExtModeTrigDurationFloating "auto"
+ ExtModeTrigHoldOff 0
+ ExtModeTrigDelay 0
+ ExtModeTrigDirection "rising"
+ ExtModeTrigLevel 0
+ ExtModeArchiveMode "off"
+ ExtModeAutoIncOneShot off
+ ExtModeIncDirWhenArm off
+ ExtModeAddSuffixToVar off
+ ExtModeWriteAllDataToWs off
+ ExtModeArmWhenConnect on
+ ExtModeSkipDownloadWhenConnect off
+ ExtModeLogAll on
+ ExtModeAutoUpdateStatusClock on
+ BufferReuse on
+ ShowModelReferenceBlockVersion off
+ ShowModelReferenceBlockIO off
+ Array {
+ Type "Handle"
+ Dimension 1
+ Simulink.ConfigSet {
+ $ObjectID 7
+ Version "1.14.2"
+ Array {
+ Type "Handle"
+ Dimension 9
+ Simulink.SolverCC {
+ $ObjectID 8
+ Version "1.14.2"
+ StartTime "0.0"
+ StopTime "1000"
+ AbsTol "auto"
+ FixedStep "auto"
+ 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 "ode45"
+ SolverName "ode45"
+ SolverJacobianMethodControl "auto"
+ ShapePreserveControl "DisableAll"
+ ZeroCrossControl "UseLocalSettings"
+ ZeroCrossAlgorithm "Nonadaptive"
+ AlgebraicLoopSolver "TrustRegion"
+ SolverResetMethod "Fast"
+ PositivePriorityOrder off
+ AutoInsertRateTranBlk off
+ SampleTimeConstraint "Unconstrained"
+ InsertRTBMode "Whenever possible"
+ }
+ Simulink.DataIOCC {
+ $ObjectID 9
+ Version "1.14.2"
+ Decimation "1"
+ ExternalInput "[t, u]"
+ FinalStateName "xFinal"
+ InitialState "xInitial"
+ LimitDataPoints on
+ 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
+ SaveTime on
+ ReturnWorkspaceOutputs off
+ StateSaveName "xout"
+ TimeSaveName "tout"
+ OutputSaveName "yout"
+ SignalLoggingName "logsout"
+ DSMLoggingName "dsmout"
+ OutputOption "RefineOutputTimes"
+ OutputTimes "[]"
+ ReturnWorkspaceOutputsName "out"
+ Refine "1"
+ }
+ Simulink.OptimizationCC {
+ $ObjectID 10
+ Version "1.14.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
+ InlineParams off
+ UseIntDivNetSlope 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"
+ ExpressionDepthLimit 2147483647
+ FoldNonRolledExpr on
+ LocalBlockOutputs on
+ RollThreshold 5
+ SystemCodeInlineAuto off
+ StateBitsets off
+ DataBitsets off
+ ActiveStateOutputEnumStorageType "Native Integer"
+ UseTempVars off
+ 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
+ ParallelExecutionInRapidAccelerator on
+ }
+ Simulink.DebuggingCC {
+ $ObjectID 11
+ Version "1.14.2"
+ RTPrefix "error"
+ ConsistencyChecking "none"
+ ArrayBoundsChecking "none"
+ SignalInfNanChecking "none"
+ SignalRangeChecking "none"
+ ReadBeforeWriteMsg "UseLocalSettings"
+ WriteAfterWriteMsg "UseLocalSettings"
+ WriteAfterReadMsg "UseLocalSettings"
+ AlgebraicLoopMsg "warning"
+ ArtificialAlgebraicLoopMsg "warning"
+ SaveWithDisabledLinksMsg "warning"
+ SaveWithParameterizedLinksMsg "warning"
+ 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"
+ DiscreteInheritContinuousMsg "warning"
+ MultiTaskDSMMsg "error"
+ MultiTaskCondExecSysMsg "error"
+ 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 "UseLocalSettings"
+ SignalLabelMismatchMsg "none"
+ UnconnectedInputMsg "warning"
+ UnconnectedOutputMsg "warning"
+ UnconnectedLineMsg "warning"
+ SFcnCompatibilityMsg "none"
+ FrameProcessingCompatibilityMsg "warning"
+ UniqueDataStoreMsg "none"
+ BusObjectLabelMismatch "warning"
+ RootOutportRequireBusObject "warning"
+ AssertControl "UseLocalSettings"
+ EnableOverflowDetection off
+ ModelReferenceIOMsg "none"
+ ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error"
+ ModelReferenceVersionMismatchMessage "none"
+ ModelReferenceIOMismatchMessage "none"
+ ModelReferenceCSMismatchMessage "none"
+ UnknownTsInhSupMsg "warning"
+ ModelReferenceDataLoggingMessage "warning"
+ ModelReferenceSymbolNameMessage "warning"
+ ModelReferenceExtraNoncontSigs "error"
+ StateNameClashWarn "warning"
+ SimStateInterfaceChecksumMismatchMsg "warning"
+ SimStateOlderReleaseMsg "error"
+ InitInArrayFormatMsg "warning"
+ StrictBusMsg "ErrorLevel1"
+ BusNameAdapt "WarnAndRepair"
+ NonBusSignalsTreatedAsBus "none"
+ LoggingUnavailableSignals "error"
+ BlockIODiagnostic "none"
+ SFUnusedDataAndEventsDiag "warning"
+ SFUnexpectedBacktrackingDiag "warning"
+ SFInvalidInputDataAccessInChartInitDiag "warning"
+ SFNoUnconditionalDefaultTransitionDiag "warning"
+ SFTransitionOutsideNaturalParentDiag "warning"
+ SFUnconditionalTransitionShadowingDiag "warning"
+ SFUndirectedBroadcastEventsDiag "warning"
+ SFTransitionActionBeforeConditionDiag "warning"
+ }
+ Simulink.HardwareCC {
+ $ObjectID 12
+ Version "1.14.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
+ TargetTypeEmulationWarnSuppressLevel 0
+ TargetPreprocMaxBitsSint 32
+ TargetPreprocMaxBitsUint 32
+ TargetHWDeviceType "Specified"
+ TargetUnknown off
+ ProdEqTarget on
+ }
+ Simulink.ModelReferenceCC {
+ $ObjectID 13
+ Version "1.14.2"
+ UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
+ CheckModelReferenceTargetMessage "error"
+ EnableParallelModelReferenceBuilds off
+ ParallelModelReferenceErrorOnInvalidPool on
+ ParallelModelReferenceMATLABWorkerInit "None"
+ ModelReferenceNumInstancesAllowed "Multi"
+ PropagateVarSize "Infer from blocks in model"
+ ModelReferencePassRootInputsByReference on
+ ModelReferenceMinAlgLoopOccurrences off
+ PropagateSignalLabelsOutOfModel off
+ SupportModelReferenceSimTargetCustomCode off
+ }
+ Simulink.SFSimCC {
+ $ObjectID 14
+ Version "1.14.2"
+ SFSimEnableDebug on
+ SFSimOverflowDetection on
+ SFSimEcho on
+ SimBlas on
+ SimCtrlC on
+ SimExtrinsic on
+ SimIntegrity on
+ SimUseLocalCustomCode off
+ SimParseCustomCode on
+ SimBuildMode "sf_incremental_build"
+ SimGenImportedTypeDefs off
+ }
+ Simulink.RTWCC {
+ $BackupClass "Simulink.RTWCC"
+ $ObjectID 15
+ Version "1.14.2"
+ Array {
+ Type "Cell"
+ Dimension 8
+ Cell "IncludeHyperlinkInReport"
+ Cell "GenerateTraceInfo"
+ Cell "GenerateTraceReport"
+ Cell "GenerateTraceReportSl"
+ Cell "GenerateTraceReportSf"
+ Cell "GenerateTraceReportEml"
+ Cell "GenerateSLWebview"
+ Cell "GenerateCodeMetricsReport"
+ PropName "DisabledProps"
+ }
+ SystemTargetFile "grt.tlc"
+ TLCOptions ""
+ GenCodeOnly off
+ MakeCommand "make_rtw"
+ GenerateMakefile on
+ PackageGeneratedCodeAndArtifacts off
+ PackageName ""
+ TemplateMakefile "grt_default_tmf"
+ PostCodeGenCommand ""
+ Description ""
+ GenerateReport off
+ SaveLog off
+ RTWVerbose on
+ RetainRTWFile off
+ ProfileTLC off
+ TLCDebug off
+ TLCCoverage off
+ TLCAssert off
+ ProcessScriptMode "Default"
+ ConfigurationMode "Optimized"
+ ProcessScript ""
+ ConfigurationScript ""
+ ConfigAtBuild off
+ RTWUseLocalCustomCode off
+ RTWUseSimCustomCode off
+ CustomSourceCode ""
+ CustomHeaderCode ""
+ CustomInclude ""
+ CustomSource ""
+ CustomLibrary ""
+ CustomInitializer ""
+ CustomTerminator ""
+ 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
+ IncludeERTFirstTime off
+ GenerateTraceInfo off
+ GenerateTraceReport off
+ GenerateTraceReportSl off
+ GenerateTraceReportSf off
+ GenerateTraceReportEml off
+ GenerateCodeInfo off
+ GenerateWebview off
+ GenerateCodeMetricsReport off
+ GenerateCodeReplacementReport off
+ RTWCompilerOptimization "Off"
+ RTWCustomCompilerOptimizations ""
+ CheckMdlBeforeBuild "Off"
+ CustomRebuildMode "OnUpdate"
+ DataInitializer ""
+ SharedConstantsCachingThreshold 1024
+ Array {
+ Type "Handle"
+ Dimension 2
+ Simulink.CodeAppCC {
+ $ObjectID 16
+ Version "1.14.2"
+ Array {
+ Type "Cell"
+ Dimension 21
+ Cell "IgnoreCustomStorageClasses"
+ Cell "IgnoreTestpoints"
+ Cell "InsertBlockDesc"
+ Cell "InsertPolySpaceComments"
+ Cell "SFDataObjDesc"
+ Cell "MATLABFcnDesc"
+ Cell "SimulinkDataObjDesc"
+ Cell "DefineNamingRule"
+ Cell "SignalNamingRule"
+ Cell "ParamNamingRule"
+ Cell "InlinedPrmAccess"
+ Cell "CustomSymbolStr"
+ Cell "CustomSymbolStrGlobalVar"
+ Cell "CustomSymbolStrType"
+ Cell "CustomSymbolStrField"
+ Cell "CustomSymbolStrFcn"
+ Cell "CustomSymbolStrFcnArg"
+ Cell "CustomSymbolStrBlkIO"
+ Cell "CustomSymbolStrTmpVar"
+ Cell "CustomSymbolStrMacro"
+ Cell "ReqsInCode"
+ PropName "DisabledProps"
+ }
+ ForceParamTrailComments off
+ GenerateComments on
+ CommentStyle "Auto"
+ IgnoreCustomStorageClasses on
+ IgnoreTestpoints off
+ IncHierarchyInIds off
+ MaxIdLength 31
+ PreserveName off
+ PreserveNameWithParent off
+ ShowEliminatedStatement off
+ OperatorAnnotations off
+ IncAutoGenComments off
+ SimulinkDataObjDesc off
+ SFDataObjDesc off
+ MATLABFcnDesc off
+ IncDataTypeInIds off
+ MangleLength 1
+ CustomSymbolStrGlobalVar "$R$N$M"
+ CustomSymbolStrType "$N$R$M_T"
+ CustomSymbolStrField "$N$M"
+ CustomSymbolStrFcn "$R$N$M$F"
+ CustomSymbolStrFcnArg "rt$I$N$M"
+ CustomSymbolStrBlkIO "rtb_$N$M"
+ CustomSymbolStrTmpVar "$N$M"
+ CustomSymbolStrMacro "$R$N$M"
+ CustomSymbolStrUtil "$N$C"
+ DefineNamingRule "None"
+ ParamNamingRule "None"
+ SignalNamingRule "None"
+ InsertBlockDesc off
+ InsertPolySpaceComments off
+ SimulinkBlockComments on
+ MATLABSourceComments off
+ EnableCustomComments off
+ InternalIdentifier "Shortened"
+ InlinedPrmAccess "Literals"
+ ReqsInCode off
+ UseSimReservedNames off
+ }
+ Simulink.GRTTargetCC {
+ $BackupClass "Simulink.TargetCC"
+ $ObjectID 17
+ Version "1.14.2"
+ Array {
+ Type "Cell"
+ Dimension 16
+ Cell "GeneratePreprocessorConditionals"
+ Cell "IncludeMdlTerminateFcn"
+ Cell "CombineOutputUpdateFcns"
+ Cell "SuppressErrorStatus"
+ Cell "ERTCustomFileBanners"
+ Cell "GenerateSampleERTMain"
+ Cell "GenerateTestInterfaces"
+ Cell "ModelStepFunctionPrototypeControlCompliant"
+ Cell "CPPClassGenCompliant"
+ Cell "PortableWordSizes"
+ Cell "PurelyIntegerCode"
+ Cell "SupportComplex"
+ Cell "SupportAbsoluteTime"
+ Cell "SupportContinuousTime"
+ Cell "SupportNonInlinedSFcns"
+ Cell "GenerateAllocFcn"
+ PropName "DisabledProps"
+ }
+ TargetFcnLib "ansi_tfl_table_tmw.mat"
+ TargetLibSuffix ""
+ TargetPreCompLibLocation ""
+ GenFloatMathFcnCalls "NOT IN USE"
+ TargetLangStandard "C89/C90 (ANSI)"
+ CodeReplacementLibrary "None"
+ UtilityFuncGeneration "Auto"
+ ERTMultiwordTypeDef "System defined"
+ ERTMultiwordLength 256
+ MultiwordLength 2048
+ GenerateFullHeader on
+ 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
+ EnableShiftOperators on
+ ParenthesesLevel "Nominal"
+ MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.GRTCustomization"
+ ModelStepFunctionPrototypeControlCompliant off
+ CPPClassGenCompliant on
+ AutosarCompliant off
+ GRTInterface on
+ GenerateAllocFcn off
+ 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"
+ }
+ }
+ hdlcoderui.hdlcc {
+ $ObjectID 18
+ Version "1.14.2"
+ Description "HDL Coder custom configuration component"
+ Name "HDL Coder"
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell ""
+ PropName "HDLConfigFile"
+ }
+ HDLCActiveTab "0"
+ }
+ PropName "Components"
+ }
+ Name "Configuration"
+ CurrentDlgPage "Solver"
+ ConfigPrmDlgPosition [ 243, 69, 1123, 699 ]
+ }
+ PropName "ConfigurationSets"
+ }
+ Simulink.ConfigSet {
+ $PropName "ActiveConfigurationSet"
+ $ObjectID 7
+ }
+ Object {
+ $PropName "DataTransfer"
+ $ObjectID 19
+ $ClassName "Simulink.GlobalDataTransfer"
+ DefaultTransitionBetweenSyncTasks "Ensure deterministic transfer (maximum delay)"
+ DefaultTransitionBetweenAsyncTasks "Ensure data integrity only"
+ DefaultTransitionBetweenContTasks "Ensure deterministic transfer (minimum delay)"
+ DefaultExtrapolationMethodBetweenContTasks "None"
+ AutoInsertRateTranBlk [0]
+ }
+ ExplicitPartitioning off
+ BlockDefaults {
+ ForegroundColor "black"
+ BackgroundColor "white"
+ DropShadow off
+ NamePlacement "normal"
+ FontName "Helvetica"
+ FontSize 10
+ FontWeight "normal"
+ FontAngle "normal"
+ ShowName on
+ BlockRotation 0
+ BlockMirror off
+ }
+ AnnotationDefaults {
+ HorizontalAlignment "center"
+ VerticalAlignment "middle"
+ ForegroundColor "black"
+ BackgroundColor "white"
+ DropShadow off
+ FontName "Helvetica"
+ FontSize 10
+ FontWeight "normal"
+ FontAngle "normal"
+ UseDisplayTextAsClickCallback off
+ }
+ LineDefaults {
+ FontName "Helvetica"
+ FontSize 9
+ FontWeight "normal"
+ FontAngle "normal"
+ }
+ MaskDefaults {
+ SelfModifiable "off"
+ IconFrame "on"
+ IconOpaque "on"
+ 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 Demux
+ Outputs "4"
+ DisplayOption "none"
+ BusSelectionMode off
+ }
+ Block {
+ BlockType Derivative
+ CoefficientInTFapproximation "inf"
+ }
+ 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 Inport
+ Port "1"
+ OutputFunctionCall off
+ OutMin "[]"
+ OutMax "[]"
+ OutDataTypeStr "Inherit: auto"
+ LockScale off
+ BusOutputAsStruct off
+ PortDimensions "-1"
+ VarSizeSig "Inherit"
+ SampleTime "-1"
+ SignalType "auto"
+ SamplingMode "auto"
+ LatchByDelayingOutsideSignal off
+ LatchInputForFeedbackSignals off
+ Interpolate on
+ }
+ Block {
+ BlockType Outport
+ Port "1"
+ OutMin "[]"
+ OutMax "[]"
+ OutDataTypeStr "Inherit: auto"
+ LockScale off
+ BusOutputAsStruct off
+ PortDimensions "-1"
+ VarSizeSig "Inherit"
+ SampleTime "-1"
+ SignalType "auto"
+ SamplingMode "auto"
+ SourceOfInitialOutputValue "Dialog"
+ OutputWhenDisabled "held"
+ InitialOutput "[]"
+ }
+ Block {
+ BlockType S-Function
+ FunctionName "system"
+ SFunctionModules "''"
+ PortCounts "[]"
+ SFunctionDeploymentMode off
+ }
+ Block {
+ BlockType Scope
+ ModelBased off
+ TickLabels "OneTimeTick"
+ ZoomMode "on"
+ Grid "on"
+ TimeRange "auto"
+ YMin "-5"
+ YMax "5"
+ SaveToWorkspace off
+ SaveName "ScopeData"
+ DataFormat "Array"
+ LimitDataPoints on
+ MaxDataPoints "5000"
+ Decimation "1"
+ SampleInput off
+ SampleTime "-1"
+ }
+ Block {
+ BlockType 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"
+ Variant off
+ GeneratePreprocessorConditionals off
+ ContentPreviewEnabled off
+ }
+ Block {
+ BlockType Terminator
+ }
+ }
+ System {
+ Name "Cessna_6DOF"
+ Location [-8, -8, 1374, 746]
+ 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"
+ ReportName "simulink-default.rpt"
+ SIDHighWatermark "23"
+ Block {
+ BlockType Reference
+ Name "6DoF (Euler Angles)"
+ SID "1"
+ Ports [2, 8]
+ Position [235, 187, 435, 388]
+ ZOrder -1
+ LibraryVersion "1.44"
+ SourceBlock "aerolibobsolete/6DoF (Euler Angles)"
+ SourceType "6DoF EoM (Body Axis)"
+ ContentPreviewEnabled off
+ units "Metric (MKS)"
+ mtype "Fixed"
+ rep "Euler Angles"
+ xme_0 "[x y z]"
+ Vm_0 "[u v w]"
+ eul_0 "[phi theta psi]"
+ pm_0 "[p q r]"
+ mass_0 "m"
+ mass_e "0.5"
+ mass_f "2.0"
+ inertia "diag([I_xx I_yy I_zz])"
+ inertia_e "eye(3)"
+ inertia_f "2*eye(3)"
+ k_quat "1.0"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux"
+ SID "7"
+ Ports [1, 3]
+ Position [655, 321, 660, 359]
+ ZOrder -2
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux1"
+ SID "12"
+ Ports [1, 3]
+ Position [485, 126, 490, 164]
+ ZOrder -3
+ BlockMirror on
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux2"
+ SID "15"
+ Ports [1, 3]
+ Position [485, 71, 490, 109]
+ ZOrder -4
+ BlockMirror on
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Derivative
+ Name "Derivative"
+ SID "6"
+ Position [615, 235, 645, 265]
+ ZOrder -5
+ }
+ Block {
+ BlockType Gain
+ Name "Gain"
+ SID "17"
+ Position [385, 65, 415, 95]
+ ZOrder -6
+ BlockMirror on
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain1"
+ SID "18"
+ Position [430, 75, 460, 105]
+ ZOrder -7
+ BlockMirror on
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain2"
+ SID "19"
+ Position [385, 85, 415, 115]
+ ZOrder -8
+ BlockMirror on
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain3"
+ SID "20"
+ Position [615, 125, 645, 155]
+ ZOrder -9
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain4"
+ SID "21"
+ Position [700, 135, 730, 165]
+ ZOrder -10
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Reference
+ Name "Incidence, Sideslip,\n& Airspeed"
+ SID "3"
+ Ports [1, 3]
+ Position [525, 275, 585, 325]
+ ZOrder -11
+ LibraryVersion "1.133"
+ SourceBlock "aerolibasang/Incidence, Sideslip,\n& Airspeed"
+ SourceType "Incidence,Sideslip,&Airspeed"
+ ContentPreviewEnabled off
+ }
+ Block {
+ BlockType SubSystem
+ Name "MATLAB Function1"
+ SID "5"
+ Ports [8, 2]
+ Position [715, 195, 830, 390]
+ ZOrder -12
+ LibraryVersion "1.32"
+ ErrorFcn "Stateflow.Translate.translate"
+ PermitHierarchicalResolution "ExplicitOnly"
+ TreatAsAtomicUnit on
+ RequestExecContextInheritance off
+ SFBlockType "MATLAB Function"
+ System {
+ Name "MATLAB Function1"
+ Location [227, 345, 838, 789]
+ 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"
+ SIDHighWatermark "29"
+ Block {
+ BlockType Inport
+ Name "V"
+ SID "5::1"
+ Position [20, 101, 40, 119]
+ ZOrder -1
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "alpha"
+ SID "5::18"
+ Position [20, 136, 40, 154]
+ ZOrder -2
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "alpha_dot"
+ SID "5::25"
+ Position [20, 171, 40, 189]
+ ZOrder -3
+ Port "3"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "beta"
+ SID "5::19"
+ Position [20, 206, 40, 224]
+ ZOrder -4
+ Port "4"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "p"
+ SID "5::20"
+ Position [20, 246, 40, 264]
+ ZOrder -5
+ Port "5"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "q"
+ SID "5::21"
+ Position [20, 281, 40, 299]
+ ZOrder -6
+ Port "6"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "r"
+ SID "5::22"
+ Position [20, 316, 40, 334]
+ ZOrder -7
+ Port "7"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "theta"
+ SID "5::23"
+ Position [20, 351, 40, 369]
+ ZOrder -8
+ Port "8"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Demux
+ Name " Demux "
+ SID "5::27"
+ Ports [1, 1]
+ Position [270, 230, 320, 270]
+ ZOrder 2
+ Outputs "1"
+ }
+ Block {
+ BlockType S-Function
+ Name " SFunction "
+ SID "5::26"
+ Tag "Stateflow S-Function Cessna_6DOF 1"
+ Ports [8, 3]
+ Position [180, 100, 230, 280]
+ ZOrder 1
+ FunctionName "sf_sfun"
+ PortCounts "[8 3]"
+ EnableBusSupport on
+ Port {
+ PortNumber 2
+ Name "F"
+ RTWStorageClass "Auto"
+ DataLoggingNameMode "SignalName"
+ }
+ Port {
+ PortNumber 3
+ Name "M"
+ RTWStorageClass "Auto"
+ DataLoggingNameMode "SignalName"
+ }
+ }
+ Block {
+ BlockType Terminator
+ Name " Terminator "
+ SID "5::28"
+ Position [460, 241, 480, 259]
+ ZOrder 3
+ }
+ Block {
+ BlockType Outport
+ Name "F"
+ SID "5::5"
+ Position [460, 101, 480, 119]
+ ZOrder -12
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "M"
+ SID "5::24"
+ Position [460, 136, 480, 154]
+ ZOrder -13
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Line {
+ ZOrder 38
+ SrcBlock "V"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 1
+ }
+ Line {
+ ZOrder 39
+ SrcBlock "alpha"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 2
+ }
+ Line {
+ ZOrder 40
+ SrcBlock "alpha_dot"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 3
+ }
+ Line {
+ ZOrder 41
+ SrcBlock "beta"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 4
+ }
+ Line {
+ ZOrder 42
+ SrcBlock "p"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 5
+ }
+ Line {
+ ZOrder 43
+ SrcBlock "q"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 6
+ }
+ Line {
+ ZOrder 44
+ SrcBlock "r"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 7
+ }
+ Line {
+ ZOrder 45
+ SrcBlock "theta"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 8
+ }
+ Line {
+ Name "F"
+ ZOrder 46
+ Labels [0, 0]
+ SrcBlock " SFunction "
+ SrcPort 2
+ DstBlock "F"
+ DstPort 1
+ }
+ Line {
+ Name "M"
+ ZOrder 47
+ Labels [0, 0]
+ SrcBlock " SFunction "
+ SrcPort 3
+ DstBlock "M"
+ DstPort 1
+ }
+ Line {
+ ZOrder 48
+ SrcBlock " Demux "
+ SrcPort 1
+ DstBlock " Terminator "
+ DstPort 1
+ }
+ Line {
+ ZOrder 49
+ SrcBlock " SFunction "
+ SrcPort 1
+ DstBlock " Demux "
+ DstPort 1
+ }
+ }
+ }
+ Block {
+ BlockType Scope
+ Name "Scope"
+ SID "13"
+ Ports [3]
+ Position [765, 124, 795, 156]
+ ZOrder -13
+ Floating off
+ Location [1, 48, 1367, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ ShowLegends off
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Scope
+ Name "Scope1"
+ SID "14"
+ Ports [3]
+ Position [410, 129, 440, 161]
+ ZOrder -14
+ BlockMirror on
+ Floating off
+ Location [1, 48, 1025, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ List {
+ ListType ScopeGraphics
+ 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"
+ }
+ ShowLegends off
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ SaveName "ScopeData1"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Scope
+ Name "Scope2"
+ SID "16"
+ Ports [3]
+ Position [330, 74, 360, 106]
+ ZOrder -15
+ BlockMirror on
+ Floating off
+ Location [1, 48, 1367, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ ShowLegends off
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ SaveName "ScopeData2"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Scope
+ Name "Scope3"
+ SID "22"
+ Ports [3]
+ Position [755, 424, 785, 456]
+ ZOrder -16
+ Floating off
+ Location [1, 48, 1367, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ ShowLegends off
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ SaveName "ScopeData3"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator"
+ SID "8"
+ Position [475, 375, 495, 395]
+ ZOrder -17
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator1"
+ SID "9"
+ Position [550, 375, 570, 395]
+ ZOrder -18
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator2"
+ SID "10"
+ Position [460, 190, 480, 210]
+ ZOrder -19
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator3"
+ SID "11"
+ Position [460, 265, 480, 285]
+ ZOrder -20
+ }
+ Line {
+ ZOrder 1
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 5
+ DstBlock "Incidence, Sideslip,\n& Airspeed"
+ DstPort 1
+ }
+ Line {
+ ZOrder 2
+ SrcBlock "Incidence, Sideslip,\n& Airspeed"
+ SrcPort 3
+ Points [0, -115]
+ Branch {
+ ZOrder 3
+ Points [110, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 1
+ }
+ Branch {
+ ZOrder 4
+ Points [0, -70]
+ DstBlock "Scope"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 5
+ SrcBlock "Incidence, Sideslip,\n& Airspeed"
+ SrcPort 1
+ Points [10, 0; 0, -35]
+ Branch {
+ ZOrder 6
+ DstBlock "Derivative"
+ DstPort 1
+ }
+ Branch {
+ ZOrder 7
+ Points [0, -25]
+ Branch {
+ ZOrder 8
+ Points [100, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 2
+ }
+ Branch {
+ ZOrder 9
+ DstBlock "Gain3"
+ DstPort 1
+ }
+ }
+ }
+ Line {
+ ZOrder 10
+ SrcBlock "Incidence, Sideslip,\n& Airspeed"
+ SrcPort 2
+ Points [75, 0; 0, -25]
+ Branch {
+ ZOrder 11
+ Points [35, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 4
+ }
+ Branch {
+ ZOrder 12
+ Points [0, -125]
+ DstBlock "Gain4"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 13
+ SrcBlock "Derivative"
+ SrcPort 1
+ Points [50, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 3
+ }
+ Line {
+ ZOrder 14
+ SrcBlock "Demux"
+ SrcPort 1
+ Points [25, 0]
+ Branch {
+ ZOrder 15
+ Points [0, -25]
+ DstBlock "MATLAB Function1"
+ DstPort 5
+ }
+ Branch {
+ ZOrder 16
+ Points [0, 100]
+ DstBlock "Scope3"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 17
+ SrcBlock "Demux"
+ SrcPort 2
+ Points [35, 0]
+ Branch {
+ ZOrder 18
+ DstBlock "MATLAB Function1"
+ DstPort 6
+ }
+ Branch {
+ ZOrder 19
+ Points [0, 100]
+ DstBlock "Scope3"
+ DstPort 2
+ }
+ }
+ Line {
+ ZOrder 20
+ SrcBlock "Demux"
+ SrcPort 3
+ Points [15, 0]
+ Branch {
+ ZOrder 21
+ Points [20, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 7
+ }
+ Branch {
+ ZOrder 22
+ Points [0, 100]
+ DstBlock "Scope3"
+ DstPort 3
+ }
+ }
+ Line {
+ ZOrder 23
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 6
+ Points [25, 0; 0, 35; 175, 0]
+ DstBlock "Demux"
+ DstPort 1
+ }
+ Line {
+ ZOrder 24
+ SrcBlock "MATLAB Function1"
+ SrcPort 1
+ Points [9, 0; 0, -70; -624, 0]
+ DstBlock "6DoF (Euler Angles)"
+ DstPort 1
+ }
+ Line {
+ ZOrder 25
+ SrcBlock "MATLAB Function1"
+ SrcPort 2
+ Points [9, 0; 0, 70; -624, 0]
+ DstBlock "6DoF (Euler Angles)"
+ DstPort 2
+ }
+ Line {
+ ZOrder 26
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 7
+ Points [20, 0; 0, 20; 75, 0]
+ DstBlock "Terminator1"
+ DstPort 1
+ }
+ Line {
+ ZOrder 27
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 8
+ Points [10, 0; 0, 10]
+ DstBlock "Terminator"
+ DstPort 1
+ }
+ Line {
+ ZOrder 28
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 1
+ DstBlock "Terminator2"
+ DstPort 1
+ }
+ Line {
+ ZOrder 29
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 4
+ DstBlock "Terminator3"
+ DstPort 1
+ }
+ Line {
+ ZOrder 30
+ SrcBlock "Demux1"
+ SrcPort 1
+ DstBlock "Scope1"
+ DstPort 1
+ }
+ Line {
+ ZOrder 31
+ SrcBlock "Demux1"
+ SrcPort 2
+ DstBlock "Scope1"
+ DstPort 2
+ }
+ Line {
+ ZOrder 32
+ SrcBlock "Demux1"
+ SrcPort 3
+ DstBlock "Scope1"
+ DstPort 3
+ }
+ Line {
+ ZOrder 33
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 2
+ Points [0, 5; 65, 0]
+ DstBlock "Demux1"
+ DstPort 1
+ }
+ Line {
+ ZOrder 34
+ SrcBlock "Demux2"
+ SrcPort 1
+ DstBlock "Gain"
+ DstPort 1
+ }
+ Line {
+ ZOrder 35
+ SrcBlock "Demux2"
+ SrcPort 2
+ Points [-5, 0]
+ Branch {
+ ZOrder 36
+ Points [0, -30; 40, 0; 0, 305; 185, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 8
+ }
+ Branch {
+ ZOrder 37
+ DstBlock "Gain1"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 38
+ SrcBlock "Demux2"
+ SrcPort 3
+ DstBlock "Gain2"
+ DstPort 1
+ }
+ Line {
+ ZOrder 39
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 3
+ Points [70, 0; 0, -160]
+ DstBlock "Demux2"
+ DstPort 1
+ }
+ Line {
+ ZOrder 40
+ SrcBlock "Gain"
+ SrcPort 1
+ DstBlock "Scope2"
+ DstPort 1
+ }
+ Line {
+ ZOrder 41
+ SrcBlock "Gain1"
+ SrcPort 1
+ DstBlock "Scope2"
+ DstPort 2
+ }
+ Line {
+ ZOrder 42
+ SrcBlock "Gain2"
+ SrcPort 1
+ DstBlock "Scope2"
+ DstPort 3
+ }
+ Line {
+ ZOrder 43
+ SrcBlock "Gain3"
+ SrcPort 1
+ DstBlock "Scope"
+ DstPort 2
+ }
+ Line {
+ ZOrder 44
+ SrcBlock "Gain4"
+ SrcPort 1
+ DstBlock "Scope"
+ DstPort 3
+ }
+ }
+}
+#Finite State Machines
+#
+# Stateflow Version 8.1 (R2014a) dated Feb 8 2014, 02:29:12
+#
+#
+Stateflow {
+ machine {
+ id 1
+ name "Cessna_6DOF"
+ created "20-Dec-2014 14:27:29"
+ isLibrary 0
+ firstTarget 17
+ sfVersion 76014001.002
+ }
+ chart {
+ id 2
+ name "MATLAB Function1"
+ windowPosition [315.596 52 213 385]
+ viewLimits [0 156.75 0 153.75]
+ screen [1 1 1024 768 1.333333333333333]
+ treeNode [0 3 0 0]
+ firstTransition 15
+ firstJunction 14
+ viewObj 2
+ visible 1
+ machine 1
+ subviewS {
+ }
+ ssIdHighWaterMark 14
+ decomposition CLUSTER_CHART
+ type EML_CHART
+ firstData 4
+ chartFileNumber 1
+ disableImplicitCasting 1
+ eml {
+ name "FM_Cessna"
+ }
+ }
+ state {
+ id 3
+ labelString "eML_blk_kernel()"
+ position [18 64.5 118 66]
+ fontSize 12
+ chart 2
+ treeNode [2 0 0 0]
+ superState SUBCHART
+ subviewer 2
+ ssIdNumber 1
+ type FUNC_STATE
+ decomposition CLUSTER_STATE
+ eml {
+ isEML 1
+ script "function [F, M] = FM_Cessna(V, alpha, alpha_dot, beta, p, q, r, theta)\n\ng = 9.8;\nrho = 1.225;\n"
+ "\nm = 1043.26;\nC_bar = 1.493;\nb = 10.911;\nS_ref = 16.1651;\n\nC_L_0 = 0.25;\nC_L_alpha = 4.47;\nC_L_q = 1.7;\n"
+ "C_L_delta_e = 0.3476;\n\n% Ignore all other C_D derivatives excluding C_D_0\n% Use C_D = C_D_0 + k*C_L^2\n\nC_D_"
+ "0 = 0.036;\nk = 0.3;\n\nC_Y_beta = -0.31;\nC_Y_p = -0.037;\nC_Y_r = 0.21;\nC_Y_delta_a = 0;\n\nC_l_beta = -0.089"
+ ";\nC_l_p = -0.47;\nC_l_r = 0.096;\nC_l_delta_a = -0.09;\nC_l_delta_r = 0.0147;\n\nC_M_0 = -0.02;\nC_M_alpha = -1"
+ ".8;\nC_M_alpha_dot = -12.4;\nC_M_delta_e = -1.28;\n\nC_N_beta = 0.065;\nC_N_p = -0.03;\nC_N_r = -0.99;\nC_N_delt"
+ "a_a = -0.0053;\nC_N_delta_r = -0.0657;\n\n% Use delta_e and thrust value from output of fsolve(@Trim_function)\n"
+ "\ndelta_e = 0.0338;\ndelta_a = 0;\ndelta_r = 0;\nthrust = 4219.6;\n\nC_L = C_L_0 + C_L_alpha*alpha + C_L_q*(q*C_"
+ "bar/(2*V)) + C_L_delta_e*delta_e;\nC_D = C_D_0 + k*C_L^2;\nC_Y = C_Y_beta*beta + C_Y_p*(p*b/(2*V)) + C_Y_r*(r*b/"
+ "(2*V)) + C_Y_delta_a*delta_a;\n\nC_l = C_l_beta*beta + C_l_p*(p*b/(2*V)) + C_l_r*(r*b/(2*V)) + C_l_delta_a*delta"
+ "_a + C_l_delta_r*delta_r;\nC_M = C_M_0 + C_M_alpha*alpha + C_M_alpha_dot*(alpha_dot*C_bar/(2*V)) + C_M_delta_e*d"
+ "elta_e;\nC_N = C_N_beta*beta + C_N_p*(p*b/(2*V)) + C_N_r*(r*b/(2*V)) + C_N_delta_a*delta_a + C_N_delta_r*delta_r"
+ ";\n\nC_X = -C_D*cos(alpha) + C_L*sin(alpha);\nC_Z = -C_D*sin(alpha) - C_L*cos(alpha);\n\nF = zeros(3,1);\nM = ze"
+ "ros(3,1);\n\nq_bar = 0.5*rho*V*V;\n\nF(1,1) = q_bar*S_ref*C_X - m*g*sin(theta) + thrust;\nF(2,1) = q_bar*S_ref*C"
+ "_Y;\nF(3,1) = q_bar*S_ref*C_Z + m*g*cos(theta);\n\nM(1,1) = q_bar*b*S_ref*C_l;\nM(2,1) = q_bar*C_bar*S_ref*C_M;\n"
+ "M(3,1) = q_bar*b*S_ref*C_N;"
+ editorLayout "100 M4x1[10 5 700 500]"
+ }
+ }
+ data {
+ id 4
+ ssIdNumber 4
+ name "V"
+ linkNode [2 0 5]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ }
+ complexity SF_COMPLEX_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 5
+ ssIdNumber 5
+ name "F"
+ linkNode [2 4 6]
+ scope OUTPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_NO
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 6
+ ssIdNumber 6
+ name "alpha"
+ linkNode [2 5 7]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 7
+ ssIdNumber 13
+ name "alpha_dot"
+ linkNode [2 6 8]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 8
+ ssIdNumber 7
+ name "beta"
+ linkNode [2 7 9]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 9
+ ssIdNumber 8
+ name "p"
+ linkNode [2 8 10]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 10
+ ssIdNumber 9
+ name "q"
+ linkNode [2 9 11]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 11
+ ssIdNumber 10
+ name "r"
+ linkNode [2 10 12]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 12
+ ssIdNumber 11
+ name "theta"
+ linkNode [2 11 13]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 13
+ ssIdNumber 12
+ name "M"
+ linkNode [2 12 0]
+ scope OUTPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_NO
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ junction {
+ id 14
+ position [23.5747 49.5747 7]
+ chart 2
+ linkNode [2 0 0]
+ subviewer 2
+ ssIdNumber 3
+ type CONNECTIVE_JUNCTION
+ }
+ transition {
+ id 15
+ labelString "{eML_blk_kernel();}"
+ labelPosition [36.125 25.875 102.544 14.964]
+ fontSize 12
+ src {
+ intersection [0 0 1 0 23.5747 14.625 0 0]
+ }
+ dst {
+ id 14
+ intersection [1 0 -1 0 23.5747 42.5747 0 0]
+ }
+ midPoint [23.5747 24.9468]
+ chart 2
+ linkNode [2 0 0]
+ dataLimits [21.175 25.975 14.625 42.575]
+ subviewer 2
+ drawStyle SMART
+ slide {
+ sticky BOTH_STICK
+ }
+ executionOrder 1
+ ssIdNumber 2
+ }
+ instance {
+ id 16
+ name "MATLAB Function1"
+ machine 1
+ chart 2
+ }
+ target {
+ id 17
+ name "sfun"
+ description "Default Simulink S-Function Target."
+ machine 1
+ linkNode [1 0 0]
+ }
+}
diff --git a/Prof_Arya/Cessna_6DOF.mdl.r2011a b/Prof_Arya/Cessna_6DOF.mdl.r2011a new file mode 100644 index 0000000..4be6b03 --- /dev/null +++ b/Prof_Arya/Cessna_6DOF.mdl.r2011a @@ -0,0 +1,1849 @@ +Model {
+ Name "Cessna_6DOF"
+ Version 7.7
+ MdlSubVersion 0
+ GraphicalInterface {
+ NumRootInports 0
+ NumRootOutports 0
+ ParameterArgumentNames ""
+ ComputedModelVersion "1.8"
+ NumModelReferences 0
+ NumTestPointedSignals 0
+ }
+ SavedCharacterEncoding "windows-1252"
+ SaveDefaultBlockParams on
+ ScopeRefreshTime 0.035000
+ OverrideScopeRefreshTime on
+ DisableAllScopes off
+ DataTypeOverride "UseLocalSettings"
+ DataTypeOverrideAppliesTo "AllNumericTypes"
+ MinMaxOverflowLogging "UseLocalSettings"
+ MinMaxOverflowArchiveMode "Overwrite"
+ MaxMDLFileLineLength 120
+ Created "Sat Dec 20 14:26:50 2014"
+ Creator "Pranav"
+ UpdateHistory "UpdateHistoryNever"
+ ModifiedByFormat "%<Auto>"
+ LastModifiedBy "Pranav"
+ ModifiedDateFormat "%<Auto>"
+ LastModifiedDate "Mon Dec 22 10:00:17 2014"
+ RTWModifiedTimeStamp 341142813
+ ModelVersionFormat "1.%<AutoIncrement:8>"
+ ConfigurationManager "None"
+ SampleTimeColors off
+ SampleTimeAnnotations off
+ LibraryLinkDisplay "none"
+ WideLines off
+ ShowLineDimensions off
+ ShowPortDataTypes off
+ ShowLoopsOnError on
+ IgnoreBidirectionalLines off
+ ShowStorageClass off
+ ShowTestPointIcons on
+ ShowSignalResolutionIcons on
+ ShowViewerIcons on
+ SortedOrder off
+ ExecutionContextIcon off
+ ShowLinearizationAnnotations on
+ BlockNameDataTip off
+ BlockParametersDataTip off
+ BlockDescriptionStringDataTip off
+ ToolBar on
+ StatusBar on
+ BrowserShowLibraryLinks off
+ BrowserLookUnderMasks off
+ SimulationMode "normal"
+ LinearizationMsg "none"
+ Profile off
+ ParamWorkspaceSource "MATLABWorkspace"
+ AccelSystemTargetFile "accel.tlc"
+ AccelTemplateMakefile "accel_default_tmf"
+ AccelMakeCommand "make_rtw"
+ TryForcingSFcnDF off
+ Object {
+ $PropName "DataLoggingOverride"
+ $ObjectID 1
+ $ClassName "Simulink.SimulationData.ModelLoggingInfo"
+ model_ "Cessna_6DOF"
+ overrideMode_ [0.0]
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell "Cessna_6DOF"
+ PropName "logAsSpecifiedByModels_"
+ }
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell []
+ PropName "logAsSpecifiedByModelsSSIDs_"
+ }
+ }
+ RecordCoverage off
+ CovPath "/"
+ CovSaveName "covdata"
+ CovMetricSettings "dw"
+ CovNameIncrementing off
+ CovHtmlReporting on
+ CovForceBlockReductionOff on
+ covSaveCumulativeToWorkspaceVar on
+ CovSaveSingleToWorkspaceVar on
+ CovCumulativeVarName "covCumulativeData"
+ CovCumulativeReport off
+ CovReportOnPause on
+ CovModelRefEnable "Off"
+ CovExternalEMLEnable off
+ ExtModeBatchMode off
+ ExtModeEnableFloating on
+ ExtModeTrigType "manual"
+ ExtModeTrigMode "normal"
+ ExtModeTrigPort "1"
+ ExtModeTrigElement "any"
+ ExtModeTrigDuration 1000
+ ExtModeTrigDurationFloating "auto"
+ ExtModeTrigHoldOff 0
+ ExtModeTrigDelay 0
+ ExtModeTrigDirection "rising"
+ ExtModeTrigLevel 0
+ ExtModeArchiveMode "off"
+ ExtModeAutoIncOneShot off
+ ExtModeIncDirWhenArm off
+ ExtModeAddSuffixToVar off
+ ExtModeWriteAllDataToWs off
+ ExtModeArmWhenConnect on
+ ExtModeSkipDownloadWhenConnect off
+ ExtModeLogAll on
+ ExtModeAutoUpdateStatusClock on
+ BufferReuse on
+ ShowModelReferenceBlockVersion off
+ ShowModelReferenceBlockIO off
+ Array {
+ Type "Handle"
+ Dimension 1
+ Simulink.ConfigSet {
+ $ObjectID 2
+ Version "1.11.0"
+ Array {
+ Type "Handle"
+ Dimension 9
+ Simulink.SolverCC {
+ $ObjectID 3
+ Version "1.11.0"
+ StartTime "0.0"
+ StopTime "1000"
+ AbsTol "auto"
+ FixedStep "auto"
+ 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"
+ ConcurrentTasks off
+ Solver "ode45"
+ SolverName "ode45"
+ SolverJacobianMethodControl "auto"
+ ShapePreserveControl "DisableAll"
+ ZeroCrossControl "UseLocalSettings"
+ ZeroCrossAlgorithm "Nonadaptive"
+ AlgebraicLoopSolver "TrustRegion"
+ SolverResetMethod "Fast"
+ PositivePriorityOrder off
+ AutoInsertRateTranBlk off
+ SampleTimeConstraint "Unconstrained"
+ InsertRTBMode "Whenever possible"
+ }
+ Simulink.DataIOCC {
+ $ObjectID 4
+ Version "1.11.0"
+ Decimation "1"
+ ExternalInput "[t, u]"
+ FinalStateName "xFinal"
+ InitialState "xInitial"
+ LimitDataPoints on
+ MaxDataPoints "1000"
+ LoadExternalInput off
+ LoadInitialState off
+ SaveFinalState off
+ SaveCompleteFinalSimState off
+ SaveFormat "Array"
+ SignalLoggingSaveFormat "ModelDataLogs"
+ SaveOutput on
+ SaveState off
+ SignalLogging on
+ DSMLogging on
+ InspectSignalLogs off
+ SaveTime on
+ ReturnWorkspaceOutputs off
+ StateSaveName "xout"
+ TimeSaveName "tout"
+ OutputSaveName "yout"
+ SignalLoggingName "logsout"
+ DSMLoggingName "dsmout"
+ OutputOption "RefineOutputTimes"
+ OutputTimes "[]"
+ ReturnWorkspaceOutputsName "out"
+ Refine "1"
+ }
+ Simulink.OptimizationCC {
+ $ObjectID 5
+ Version "1.11.0"
+ Array {
+ Type "Cell"
+ Dimension 8
+ Cell "BooleansAsBitfields"
+ Cell "PassReuseOutputArgsAs"
+ Cell "PassReuseOutputArgsThreshold"
+ Cell "ZeroExternalMemoryAtStartup"
+ Cell "ZeroInternalMemoryAtStartup"
+ Cell "OptimizeModelRefInitCode"
+ Cell "NoFixptDivByZeroProtection"
+ Cell "UseSpecifiedMinMax"
+ PropName "DisabledProps"
+ }
+ BlockReduction on
+ BooleanDataType on
+ ConditionallyExecuteInputs on
+ InlineParams off
+ UseIntDivNetSlope off
+ UseSpecifiedMinMax off
+ InlineInvariantSignals off
+ OptimizeBlockIOStorage on
+ BufferReuse on
+ EnhancedBackFolding off
+ StrengthReduction off
+ ExpressionFolding on
+ BooleansAsBitfields off
+ BitfieldContainerType "uint_T"
+ EnableMemcpy on
+ MemcpyThreshold 64
+ PassReuseOutputArgsAs "Structure reference"
+ ExpressionDepthLimit 2147483647
+ FoldNonRolledExpr on
+ LocalBlockOutputs on
+ RollThreshold 5
+ SystemCodeInlineAuto off
+ StateBitsets off
+ DataBitsets off
+ UseTempVars off
+ ZeroExternalMemoryAtStartup on
+ ZeroInternalMemoryAtStartup on
+ InitFltsAndDblsToZero off
+ NoFixptDivByZeroProtection off
+ EfficientFloat2IntCast off
+ EfficientMapNaN2IntZero on
+ OptimizeModelRefInitCode off
+ LifeSpan "inf"
+ MaxStackSize "Inherit from target"
+ BufferReusableBoundary on
+ SimCompilerOptimization "Off"
+ AccelVerboseBuild off
+ AccelParallelForEachSubsystem on
+ }
+ Simulink.DebuggingCC {
+ $ObjectID 6
+ Version "1.11.0"
+ RTPrefix "error"
+ ConsistencyChecking "none"
+ ArrayBoundsChecking "none"
+ SignalInfNanChecking "none"
+ SignalRangeChecking "none"
+ ReadBeforeWriteMsg "UseLocalSettings"
+ WriteAfterWriteMsg "UseLocalSettings"
+ WriteAfterReadMsg "UseLocalSettings"
+ AlgebraicLoopMsg "warning"
+ ArtificialAlgebraicLoopMsg "warning"
+ SaveWithDisabledLinksMsg "warning"
+ SaveWithParameterizedLinksMsg "warning"
+ 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"
+ DiscreteInheritContinuousMsg "warning"
+ MultiTaskDSMMsg "error"
+ MultiTaskCondExecSysMsg "error"
+ 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 "Use local settings"
+ SignalLabelMismatchMsg "none"
+ UnconnectedInputMsg "warning"
+ UnconnectedOutputMsg "warning"
+ UnconnectedLineMsg "warning"
+ SFcnCompatibilityMsg "none"
+ UniqueDataStoreMsg "none"
+ BusObjectLabelMismatch "warning"
+ RootOutportRequireBusObject "warning"
+ AssertControl "UseLocalSettings"
+ EnableOverflowDetection off
+ ModelReferenceIOMsg "none"
+ ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error"
+ ModelReferenceVersionMismatchMessage "none"
+ ModelReferenceIOMismatchMessage "none"
+ ModelReferenceCSMismatchMessage "none"
+ UnknownTsInhSupMsg "warning"
+ ModelReferenceDataLoggingMessage "warning"
+ ModelReferenceSymbolNameMessage "warning"
+ ModelReferenceExtraNoncontSigs "error"
+ StateNameClashWarn "warning"
+ SimStateInterfaceChecksumMismatchMsg "warning"
+ SimStateOlderReleaseMsg "error"
+ InitInArrayFormatMsg "warning"
+ StrictBusMsg "ErrorLevel1"
+ BusNameAdapt "WarnAndRepair"
+ NonBusSignalsTreatedAsBus "none"
+ LoggingUnavailableSignals "error"
+ BlockIODiagnostic "none"
+ SFUnusedDataAndEventsDiag "warning"
+ SFUnexpectedBacktrackingDiag "warning"
+ SFInvalidInputDataAccessInChartInitDiag "warning"
+ SFNoUnconditionalDefaultTransitionDiag "warning"
+ SFTransitionOutsideNaturalParentDiag "warning"
+ }
+ Simulink.HardwareCC {
+ $ObjectID 7
+ Version "1.11.0"
+ ProdBitPerChar 8
+ ProdBitPerShort 16
+ ProdBitPerInt 32
+ ProdBitPerLong 32
+ ProdBitPerFloat 32
+ ProdBitPerDouble 64
+ ProdBitPerPointer 32
+ ProdLargestAtomicInteger "Char"
+ ProdLargestAtomicFloat "None"
+ ProdIntDivRoundTo "Undefined"
+ ProdEndianess "Unspecified"
+ ProdWordSize 32
+ ProdShiftRightIntArith on
+ ProdHWDeviceType "32-bit Generic"
+ TargetBitPerChar 8
+ TargetBitPerShort 16
+ TargetBitPerInt 32
+ TargetBitPerLong 32
+ TargetBitPerFloat 32
+ TargetBitPerDouble 64
+ TargetBitPerPointer 32
+ TargetLargestAtomicInteger "Char"
+ TargetLargestAtomicFloat "None"
+ TargetShiftRightIntArith on
+ TargetIntDivRoundTo "Undefined"
+ TargetEndianess "Unspecified"
+ TargetWordSize 32
+ TargetTypeEmulationWarnSuppressLevel 0
+ TargetPreprocMaxBitsSint 32
+ TargetPreprocMaxBitsUint 32
+ TargetHWDeviceType "Specified"
+ TargetUnknown off
+ ProdEqTarget on
+ }
+ Simulink.ModelReferenceCC {
+ $ObjectID 8
+ Version "1.11.0"
+ UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
+ 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 9
+ Version "1.11.0"
+ SFSimEnableDebug on
+ SFSimOverflowDetection on
+ SFSimEcho on
+ SimBlas on
+ SimCtrlC on
+ SimExtrinsic on
+ SimIntegrity on
+ SimUseLocalCustomCode off
+ SimParseCustomCode on
+ SimBuildMode "sf_incremental_build"
+ }
+ Simulink.RTWCC {
+ $BackupClass "Simulink.RTWCC"
+ $ObjectID 10
+ Version "1.11.0"
+ Array {
+ Type "Cell"
+ Dimension 8
+ Cell "IncludeHyperlinkInReport"
+ Cell "GenerateTraceInfo"
+ Cell "GenerateTraceReport"
+ Cell "GenerateTraceReportSl"
+ Cell "GenerateTraceReportSf"
+ Cell "GenerateTraceReportEml"
+ Cell "GenerateSLWebview"
+ Cell "GenerateCodeMetricsReport"
+ PropName "DisabledProps"
+ }
+ SystemTargetFile "grt.tlc"
+ GenCodeOnly off
+ MakeCommand "make_rtw"
+ GenerateMakefile on
+ TemplateMakefile "grt_default_tmf"
+ GenerateReport off
+ SaveLog off
+ RTWVerbose on
+ RetainRTWFile off
+ ProfileTLC off
+ TLCDebug off
+ TLCCoverage off
+ TLCAssert off
+ ProcessScriptMode "Default"
+ ConfigurationMode "Optimized"
+ ConfigAtBuild off
+ RTWUseLocalCustomCode off
+ RTWUseSimCustomCode off
+ IncludeHyperlinkInReport off
+ LaunchReport off
+ TargetLang "C"
+ IncludeBusHierarchyInRTWFileBlockHierarchyMap off
+ IncludeERTFirstTime off
+ GenerateTraceInfo off
+ GenerateTraceReport off
+ GenerateTraceReportSl off
+ GenerateTraceReportSf off
+ GenerateTraceReportEml off
+ GenerateCodeInfo off
+ GenerateSLWebview off
+ GenerateCodeMetricsReport off
+ RTWCompilerOptimization "Off"
+ CheckMdlBeforeBuild "Off"
+ CustomRebuildMode "OnUpdate"
+ Array {
+ Type "Handle"
+ Dimension 2
+ Simulink.CodeAppCC {
+ $ObjectID 11
+ Version "1.11.0"
+ Array {
+ Type "Cell"
+ Dimension 21
+ Cell "IgnoreCustomStorageClasses"
+ Cell "IgnoreTestpoints"
+ Cell "InsertBlockDesc"
+ Cell "InsertPolySpaceComments"
+ Cell "SFDataObjDesc"
+ Cell "MATLABFcnDesc"
+ Cell "SimulinkDataObjDesc"
+ Cell "DefineNamingRule"
+ Cell "SignalNamingRule"
+ Cell "ParamNamingRule"
+ Cell "InlinedPrmAccess"
+ Cell "CustomSymbolStr"
+ Cell "CustomSymbolStrGlobalVar"
+ Cell "CustomSymbolStrType"
+ Cell "CustomSymbolStrField"
+ Cell "CustomSymbolStrFcn"
+ Cell "CustomSymbolStrFcnArg"
+ Cell "CustomSymbolStrBlkIO"
+ Cell "CustomSymbolStrTmpVar"
+ Cell "CustomSymbolStrMacro"
+ Cell "ReqsInCode"
+ PropName "DisabledProps"
+ }
+ ForceParamTrailComments off
+ GenerateComments on
+ IgnoreCustomStorageClasses on
+ IgnoreTestpoints off
+ IncHierarchyInIds off
+ MaxIdLength 31
+ PreserveName off
+ PreserveNameWithParent off
+ ShowEliminatedStatement off
+ IncAutoGenComments off
+ SimulinkDataObjDesc off
+ SFDataObjDesc off
+ MATLABFcnDesc off
+ IncDataTypeInIds off
+ MangleLength 1
+ CustomSymbolStrGlobalVar "$R$N$M"
+ CustomSymbolStrType "$N$R$M"
+ CustomSymbolStrField "$N$M"
+ CustomSymbolStrFcn "$R$N$M$F"
+ CustomSymbolStrFcnArg "rt$I$N$M"
+ CustomSymbolStrBlkIO "rtb_$N$M"
+ CustomSymbolStrTmpVar "$N$M"
+ CustomSymbolStrMacro "$R$N$M"
+ DefineNamingRule "None"
+ ParamNamingRule "None"
+ SignalNamingRule "None"
+ InsertBlockDesc off
+ InsertPolySpaceComments off
+ SimulinkBlockComments on
+ MATLABSourceComments off
+ EnableCustomComments off
+ InlinedPrmAccess "Literals"
+ ReqsInCode off
+ UseSimReservedNames off
+ }
+ Simulink.GRTTargetCC {
+ $BackupClass "Simulink.TargetCC"
+ $ObjectID 12
+ Version "1.11.0"
+ Array {
+ Type "Cell"
+ Dimension 16
+ Cell "GeneratePreprocessorConditionals"
+ Cell "IncludeMdlTerminateFcn"
+ Cell "CombineOutputUpdateFcns"
+ Cell "SuppressErrorStatus"
+ Cell "ERTCustomFileBanners"
+ Cell "GenerateSampleERTMain"
+ Cell "GenerateTestInterfaces"
+ Cell "ModelStepFunctionPrototypeControlCompliant"
+ Cell "CPPClassGenCompliant"
+ Cell "MultiInstanceERTCode"
+ Cell "PurelyIntegerCode"
+ Cell "SupportComplex"
+ Cell "SupportAbsoluteTime"
+ Cell "SupportContinuousTime"
+ Cell "SupportNonInlinedSFcns"
+ Cell "PortableWordSizes"
+ PropName "DisabledProps"
+ }
+ TargetFcnLib "ansi_tfl_table_tmw.mat"
+ TargetLibSuffix ""
+ TargetPreCompLibLocation ""
+ TargetFunctionLibrary "ANSI_C"
+ UtilityFuncGeneration "Auto"
+ ERTMultiwordTypeDef "System defined"
+ FunctionExecutionProfile off
+ CodeExecutionProfiling off
+ ERTCodeCoverageTool "None"
+ ERTMultiwordLength 256
+ MultiwordLength 2048
+ GenerateFullHeader on
+ GenerateSampleERTMain off
+ GenerateTestInterfaces off
+ IsPILTarget off
+ ModelReferenceCompliant on
+ ParMdlRefBuildCompliant on
+ CompOptLevelCompliant on
+ IncludeMdlTerminateFcn on
+ GeneratePreprocessorConditionals "Disable all"
+ CombineOutputUpdateFcns off
+ CombineSignalStateStructs off
+ SuppressErrorStatus off
+ ERTFirstTimeCompliant off
+ IncludeFileDelimiter "Auto"
+ ERTCustomFileBanners off
+ SupportAbsoluteTime on
+ LogVarNameModifier "rt_"
+ MatFileLogging on
+ MultiInstanceERTCode off
+ SupportNonFinite on
+ SupportComplex on
+ PurelyIntegerCode off
+ SupportContinuousTime on
+ SupportNonInlinedSFcns on
+ SupportVariableSizeSignals off
+ EnableShiftOperators on
+ ParenthesesLevel "Nominal"
+ PortableWordSizes off
+ ModelStepFunctionPrototypeControlCompliant off
+ CPPClassGenCompliant off
+ AutosarCompliant off
+ UseMalloc off
+ ExtMode off
+ ExtModeStaticAlloc off
+ ExtModeTesting off
+ ExtModeStaticAllocSize 1000000
+ ExtModeTransport 0
+ ExtModeMexFile "ext_comm"
+ ExtModeIntrfLevel "Level1"
+ RTWCAPISignals off
+ RTWCAPIParams off
+ RTWCAPIStates off
+ RTWCAPIRootIO off
+ GenerateASAP2 off
+ }
+ PropName "Components"
+ }
+ }
+ hdlcoderui.hdlcc {
+ $ObjectID 13
+ Version "1.11.0"
+ Description "HDL Coder custom configuration component"
+ Name "HDL Coder"
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell ""
+ PropName "HDLConfigFile"
+ }
+ HDLCActiveTab "0"
+ }
+ PropName "Components"
+ }
+ Name "Configuration"
+ CurrentDlgPage "Solver"
+ ConfigPrmDlgPosition [ 243, 69, 1123, 699 ]
+ }
+ PropName "ConfigurationSets"
+ }
+ Simulink.ConfigSet {
+ $PropName "ActiveConfigurationSet"
+ $ObjectID 2
+ }
+ BlockDefaults {
+ ForegroundColor "black"
+ BackgroundColor "white"
+ DropShadow off
+ NamePlacement "normal"
+ FontName "Helvetica"
+ FontSize 10
+ FontWeight "normal"
+ FontAngle "normal"
+ ShowName on
+ BlockRotation 0
+ BlockMirror off
+ }
+ AnnotationDefaults {
+ HorizontalAlignment "center"
+ VerticalAlignment "middle"
+ ForegroundColor "black"
+ BackgroundColor "white"
+ DropShadow off
+ FontName "Helvetica"
+ FontSize 10
+ FontWeight "normal"
+ FontAngle "normal"
+ UseDisplayTextAsClickCallback off
+ }
+ LineDefaults {
+ FontName "Helvetica"
+ FontSize 9
+ FontWeight "normal"
+ FontAngle "normal"
+ }
+ BlockParameterDefaults {
+ Block {
+ BlockType Demux
+ Outputs "4"
+ DisplayOption "none"
+ BusSelectionMode off
+ }
+ Block {
+ BlockType Derivative
+ LinearizePole "inf"
+ }
+ 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 Inport
+ Port "1"
+ OutputFunctionCall off
+ OutMin "[]"
+ OutMax "[]"
+ OutDataTypeStr "Inherit: auto"
+ LockScale off
+ BusOutputAsStruct off
+ PortDimensions "-1"
+ VarSizeSig "Inherit"
+ SampleTime "-1"
+ SignalType "auto"
+ SamplingMode "auto"
+ LatchByDelayingOutsideSignal off
+ LatchInputForFeedbackSignals off
+ Interpolate on
+ }
+ Block {
+ BlockType Outport
+ Port "1"
+ OutMin "[]"
+ OutMax "[]"
+ OutDataTypeStr "Inherit: auto"
+ LockScale off
+ BusOutputAsStruct off
+ PortDimensions "-1"
+ VarSizeSig "Inherit"
+ SampleTime "-1"
+ SignalType "auto"
+ SamplingMode "auto"
+ SourceOfInitialOutputValue "Dialog"
+ OutputWhenDisabled "held"
+ InitialOutput "[]"
+ }
+ Block {
+ BlockType S-Function
+ FunctionName "system"
+ SFunctionModules "''"
+ PortCounts "[]"
+ SFunctionDeploymentMode off
+ }
+ Block {
+ BlockType Scope
+ ModelBased off
+ TickLabels "OneTimeTick"
+ ZoomMode "on"
+ Grid "on"
+ TimeRange "auto"
+ YMin "-5"
+ YMax "5"
+ SaveToWorkspace off
+ SaveName "ScopeData"
+ LimitDataPoints on
+ MaxDataPoints "5000"
+ Decimation "1"
+ SampleInput off
+ SampleTime "-1"
+ }
+ Block {
+ BlockType SubSystem
+ ShowPortLabels "FromPortIcon"
+ Permissions "ReadWrite"
+ PermitHierarchicalResolution "All"
+ TreatAsAtomicUnit off
+ CheckFcnCallInpInsideContextMsg off
+ SystemSampleTime "-1"
+ RTWFcnNameOpts "Auto"
+ RTWFileNameOpts "Auto"
+ RTWMemSecFuncInitTerm "Inherit from model"
+ RTWMemSecFuncExecute "Inherit from model"
+ RTWMemSecDataConstants "Inherit from model"
+ RTWMemSecDataInternal "Inherit from model"
+ RTWMemSecDataParameters "Inherit from model"
+ SimViewingDevice off
+ DataTypeOverride "UseLocalSettings"
+ DataTypeOverrideAppliesTo "AllNumericTypes"
+ MinMaxOverflowLogging "UseLocalSettings"
+ Variant off
+ GeneratePreprocessorConditionals off
+ }
+ Block {
+ BlockType Terminator
+ }
+ }
+ System {
+ Name "Cessna_6DOF"
+ Location [2, 74, 1364, 717]
+ 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"
+ ReportName "simulink-default.rpt"
+ SIDHighWatermark "22"
+ Block {
+ BlockType Reference
+ Name "6DoF (Euler Angles)"
+ SID "1"
+ Ports [2, 8]
+ Position [235, 187, 435, 388]
+ LibraryVersion "1.246"
+ SourceBlock "aerolib6dof2/6DoF (Euler Angles)"
+ SourceType "6DoF EoM (Body Axis)"
+ ShowPortLabels "FromPortIcon"
+ SystemSampleTime "-1"
+ FunctionWithSeparateData off
+ RTWMemSecFuncInitTerm "Inherit from model"
+ RTWMemSecFuncExecute "Inherit from model"
+ RTWMemSecDataConstants "Inherit from model"
+ RTWMemSecDataInternal "Inherit from model"
+ RTWMemSecDataParameters "Inherit from model"
+ GeneratePreprocessorConditionals off
+ units "Metric (MKS)"
+ mtype "Fixed"
+ rep "Euler Angles"
+ xme_0 "[x y z]"
+ Vm_0 "[u v w]"
+ eul_0 "[phi theta psi]"
+ pm_0 "[p q r]"
+ mass_0 "m"
+ mass_e "0.5"
+ mass_f "2.0"
+ inertia "diag([I_xx I_yy I_zz])"
+ inertia_e "eye(3)"
+ inertia_f "2*eye(3)"
+ k_quat "1.0"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux"
+ SID "7"
+ Ports [1, 3]
+ Position [655, 321, 660, 359]
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux1"
+ SID "12"
+ Ports [1, 3]
+ Position [485, 126, 490, 164]
+ BlockMirror on
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux2"
+ SID "15"
+ Ports [1, 3]
+ Position [485, 71, 490, 109]
+ BlockMirror on
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Derivative
+ Name "Derivative"
+ SID "6"
+ Position [615, 235, 645, 265]
+ }
+ Block {
+ BlockType Gain
+ Name "Gain"
+ SID "17"
+ Position [385, 65, 415, 95]
+ BlockMirror on
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain1"
+ SID "18"
+ Position [430, 75, 460, 105]
+ BlockMirror on
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain2"
+ SID "19"
+ Position [385, 85, 415, 115]
+ BlockMirror on
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain3"
+ SID "20"
+ Position [615, 125, 645, 155]
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Gain
+ Name "Gain4"
+ SID "21"
+ Position [700, 135, 730, 165]
+ Gain "180/pi"
+ ParamDataTypeStr "Inherit: Inherit via internal rule"
+ OutDataTypeStr "Inherit: Inherit via internal rule"
+ SaturateOnIntegerOverflow off
+ }
+ Block {
+ BlockType Reference
+ Name "Incidence, Sideslip,\n& Airspeed"
+ SID "3"
+ Ports [1, 3]
+ Position [525, 275, 585, 325]
+ LibraryVersion "1.124"
+ SourceBlock "aerolibasang/Incidence, Sideslip,\n& Airspeed"
+ SourceType "Incidence,Sideslip,&Airspeed"
+ ShowPortLabels "FromPortIcon"
+ SystemSampleTime "-1"
+ FunctionWithSeparateData off
+ RTWMemSecFuncInitTerm "Inherit from model"
+ RTWMemSecFuncExecute "Inherit from model"
+ RTWMemSecDataConstants "Inherit from model"
+ RTWMemSecDataInternal "Inherit from model"
+ RTWMemSecDataParameters "Inherit from model"
+ GeneratePreprocessorConditionals off
+ }
+ Block {
+ BlockType SubSystem
+ Name "MATLAB Function1"
+ SID "5"
+ Ports [8, 2]
+ Position [715, 189, 785, 386]
+ LibraryVersion "1.32"
+ ErrorFcn "Stateflow.Translate.translate"
+ PermitHierarchicalResolution "ExplicitOnly"
+ TreatAsAtomicUnit on
+ MinAlgLoopOccurrences off
+ PropExecContextOutsideSubsystem off
+ RTWSystemCode "Auto"
+ FunctionWithSeparateData off
+ Opaque off
+ RequestExecContextInheritance off
+ MaskHideContents off
+ MaskType "Stateflow"
+ MaskDescription "Embedded MATLAB block"
+ MaskSelfModifiable on
+ MaskDisplay "bgColor = Simulink.Root.ColorString2Rgb(get_param(gcbh, 'BackgroundColor')); image(imread('pr"
+ "ivate/eml_membrane_16.png','png','BackgroundColor',bgColor(1:3)),'center'); disp([10 10 'FM_Cessna']);"
+ MaskIconFrame on
+ MaskIconOpaque off
+ MaskIconRotate "none"
+ MaskPortRotate "default"
+ MaskIconUnits "normalized"
+ System {
+ Name "MATLAB Function1"
+ Location [257, 457, 812, 717]
+ 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"
+ SIDHighWatermark "25"
+ Block {
+ BlockType Inport
+ Name "V"
+ SID "5::1"
+ Position [20, 101, 40, 119]
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "alpha"
+ SID "5::18"
+ Position [20, 136, 40, 154]
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "alpha_dot"
+ SID "5::25"
+ Position [20, 171, 40, 189]
+ Port "3"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "beta"
+ SID "5::19"
+ Position [20, 206, 40, 224]
+ Port "4"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "p"
+ SID "5::20"
+ Position [20, 246, 40, 264]
+ Port "5"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "q"
+ SID "5::21"
+ Position [20, 281, 40, 299]
+ Port "6"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "r"
+ SID "5::22"
+ Position [20, 316, 40, 334]
+ Port "7"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "theta"
+ SID "5::23"
+ Position [20, 351, 40, 369]
+ Port "8"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Demux
+ Name " Demux "
+ SID "5::15"
+ Ports [1, 1]
+ Position [270, 285, 320, 325]
+ Outputs "1"
+ }
+ Block {
+ BlockType S-Function
+ Name " SFunction "
+ SID "5::14"
+ Tag "Stateflow S-Function Cessna_6DOF 1"
+ Ports [8, 3]
+ Position [180, 105, 230, 285]
+ FunctionName "sf_sfun"
+ PortCounts "[8 3]"
+ EnableBusSupport on
+ Port {
+ PortNumber 2
+ Name "F"
+ RTWStorageClass "Auto"
+ DataLoggingNameMode "SignalName"
+ }
+ Port {
+ PortNumber 3
+ Name "M"
+ RTWStorageClass "Auto"
+ DataLoggingNameMode "SignalName"
+ }
+ }
+ Block {
+ BlockType Terminator
+ Name " Terminator "
+ SID "5::17"
+ Position [460, 296, 480, 314]
+ }
+ Block {
+ BlockType Outport
+ Name "F"
+ SID "5::5"
+ Position [460, 101, 480, 119]
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "M"
+ SID "5::24"
+ Position [460, 136, 480, 154]
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Line {
+ SrcBlock "V"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 1
+ }
+ Line {
+ SrcBlock "alpha"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 2
+ }
+ Line {
+ SrcBlock "alpha_dot"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 3
+ }
+ Line {
+ SrcBlock "beta"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 4
+ }
+ Line {
+ SrcBlock "p"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 5
+ }
+ Line {
+ SrcBlock "q"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 6
+ }
+ Line {
+ SrcBlock "r"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 7
+ }
+ Line {
+ SrcBlock "theta"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 8
+ }
+ Line {
+ Name "F"
+ Labels [0, 0; 0, 0]
+ SrcBlock " SFunction "
+ SrcPort 2
+ DstBlock "F"
+ DstPort 1
+ }
+ Line {
+ Name "M"
+ Labels [0, 0; 0, 0]
+ SrcBlock " SFunction "
+ SrcPort 3
+ DstBlock "M"
+ DstPort 1
+ }
+ Line {
+ SrcBlock " Demux "
+ SrcPort 1
+ DstBlock " Terminator "
+ DstPort 1
+ }
+ Line {
+ SrcBlock " SFunction "
+ SrcPort 1
+ DstBlock " Demux "
+ DstPort 1
+ }
+ }
+ }
+ Block {
+ BlockType Scope
+ Name "Scope"
+ SID "13"
+ Ports [3]
+ Position [765, 124, 795, 156]
+ Floating off
+ Location [1, 48, 1367, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Scope
+ Name "Scope1"
+ SID "14"
+ Ports [3]
+ Position [410, 129, 440, 161]
+ BlockMirror on
+ Floating off
+ Location [5, 48, 1367, 737]
+ Open on
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ SaveName "ScopeData1"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Scope
+ Name "Scope2"
+ SID "16"
+ Ports [3]
+ Position [330, 74, 360, 106]
+ BlockMirror on
+ Floating off
+ Location [1, 48, 1367, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ SaveName "ScopeData2"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Scope
+ Name "Scope3"
+ SID "22"
+ Ports [3]
+ Position [755, 424, 785, 456]
+ Floating off
+ Location [1, 48, 1367, 737]
+ Open off
+ NumInputPorts "3"
+ List {
+ ListType AxesTitles
+ axes1 "%<SignalLabel>"
+ axes2 "%<SignalLabel>"
+ axes3 "%<SignalLabel>"
+ }
+ YMin "-5~-5~-5"
+ YMax "5~5~5"
+ SaveName "ScopeData3"
+ DataFormat "StructureWithTime"
+ SampleTime "0"
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator"
+ SID "8"
+ Position [475, 375, 495, 395]
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator1"
+ SID "9"
+ Position [550, 375, 570, 395]
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator2"
+ SID "10"
+ Position [460, 190, 480, 210]
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator3"
+ SID "11"
+ Position [460, 265, 480, 285]
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 5
+ DstBlock "Incidence, Sideslip,\n& Airspeed"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Incidence, Sideslip,\n& Airspeed"
+ SrcPort 3
+ Points [0, -115]
+ Branch {
+ DstBlock "MATLAB Function1"
+ DstPort 1
+ }
+ Branch {
+ Points [0, -70]
+ DstBlock "Scope"
+ DstPort 1
+ }
+ }
+ Line {
+ SrcBlock "Incidence, Sideslip,\n& Airspeed"
+ SrcPort 1
+ Points [10, 0; 0, -35]
+ Branch {
+ DstBlock "Derivative"
+ DstPort 1
+ }
+ Branch {
+ Points [0, -25]
+ Branch {
+ DstBlock "MATLAB Function1"
+ DstPort 2
+ }
+ Branch {
+ DstBlock "Gain3"
+ DstPort 1
+ }
+ }
+ }
+ Line {
+ SrcBlock "Incidence, Sideslip,\n& Airspeed"
+ SrcPort 2
+ Points [75, 0; 0, -25]
+ Branch {
+ DstBlock "MATLAB Function1"
+ DstPort 4
+ }
+ Branch {
+ Points [0, -125]
+ DstBlock "Gain4"
+ DstPort 1
+ }
+ }
+ Line {
+ SrcBlock "Derivative"
+ SrcPort 1
+ DstBlock "MATLAB Function1"
+ DstPort 3
+ }
+ Line {
+ SrcBlock "Demux"
+ SrcPort 1
+ Points [25, 0]
+ Branch {
+ Points [0, -30]
+ DstBlock "MATLAB Function1"
+ DstPort 5
+ }
+ Branch {
+ Points [0, 100]
+ DstBlock "Scope3"
+ DstPort 1
+ }
+ }
+ Line {
+ SrcBlock "Demux"
+ SrcPort 2
+ Points [35, 0]
+ Branch {
+ DstBlock "MATLAB Function1"
+ DstPort 6
+ }
+ Branch {
+ Points [0, 100]
+ DstBlock "Scope3"
+ DstPort 2
+ }
+ }
+ Line {
+ SrcBlock "Demux"
+ SrcPort 3
+ Points [15, 0]
+ Branch {
+ DstBlock "MATLAB Function1"
+ DstPort 7
+ }
+ Branch {
+ Points [0, 100]
+ DstBlock "Scope3"
+ DstPort 3
+ }
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 6
+ Points [25, 0; 0, 35; 175, 0]
+ DstBlock "Demux"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "MATLAB Function1"
+ SrcPort 1
+ Points [0, -65; -570, 0]
+ DstBlock "6DoF (Euler Angles)"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "MATLAB Function1"
+ SrcPort 2
+ Points [10, 0; 0, 70; -580, 0]
+ DstBlock "6DoF (Euler Angles)"
+ DstPort 2
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 7
+ Points [20, 0; 0, 20; 75, 0]
+ DstBlock "Terminator1"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 8
+ Points [10, 0; 0, 10]
+ DstBlock "Terminator"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 1
+ DstBlock "Terminator2"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 4
+ DstBlock "Terminator3"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Demux1"
+ SrcPort 1
+ DstBlock "Scope1"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Demux1"
+ SrcPort 2
+ DstBlock "Scope1"
+ DstPort 2
+ }
+ Line {
+ SrcBlock "Demux1"
+ SrcPort 3
+ DstBlock "Scope1"
+ DstPort 3
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 2
+ Points [0, 5; 65, 0]
+ DstBlock "Demux1"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Demux2"
+ SrcPort 1
+ DstBlock "Gain"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Demux2"
+ SrcPort 2
+ Points [-5, 0]
+ Branch {
+ Points [0, -30; 40, 0; 0, 305; 185, 0]
+ DstBlock "MATLAB Function1"
+ DstPort 8
+ }
+ Branch {
+ DstBlock "Gain1"
+ DstPort 1
+ }
+ }
+ Line {
+ SrcBlock "Demux2"
+ SrcPort 3
+ DstBlock "Gain2"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "6DoF (Euler Angles)"
+ SrcPort 3
+ Points [70, 0; 0, -160]
+ DstBlock "Demux2"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Gain"
+ SrcPort 1
+ DstBlock "Scope2"
+ DstPort 1
+ }
+ Line {
+ SrcBlock "Gain1"
+ SrcPort 1
+ DstBlock "Scope2"
+ DstPort 2
+ }
+ Line {
+ SrcBlock "Gain2"
+ SrcPort 1
+ DstBlock "Scope2"
+ DstPort 3
+ }
+ Line {
+ SrcBlock "Gain3"
+ SrcPort 1
+ DstBlock "Scope"
+ DstPort 2
+ }
+ Line {
+ SrcBlock "Gain4"
+ SrcPort 1
+ DstBlock "Scope"
+ DstPort 3
+ }
+ }
+}
+# Finite State Machines
+#
+# Stateflow Version 7.5 (R2010a) dated Mar 4 2011, 22:36:02
+#
+#
+
+
+Stateflow {
+ machine {
+ id 1
+ name "Cessna_6DOF"
+ created "20-Dec-2014 14:27:29"
+ isLibrary 0
+ firstTarget 17
+ sfVersion 75014001
+ }
+ chart {
+ id 2
+ name "MATLAB Function1"
+ windowPosition [315.747 315 200.25 189.75]
+ viewLimits [0 156.75 0 153.75]
+ screen [1 1 1366 768 1.333333333333333]
+ treeNode [0 3 0 0]
+ firstTransition 5
+ firstJunction 4
+ viewObj 2
+ machine 1
+ toolbarMode LIBRARY_TOOLBAR
+ ssIdHighWaterMark 13
+ decomposition CLUSTER_CHART
+ type EML_CHART
+ firstData 6
+ chartFileNumber 1
+ disableImplicitCasting 1
+ eml {
+ name "FM_Cessna"
+ }
+ }
+ state {
+ id 3
+ labelString "eML_blk_kernel()"
+ position [18 64.5 118 66]
+ fontSize 12
+ chart 2
+ treeNode [2 0 0 0]
+ superState SUBCHART
+ subviewer 2
+ ssIdNumber 1
+ type FUNC_STATE
+ decomposition CLUSTER_STATE
+ eml {
+ isEML 1
+ script "function [F, M] = FM_Cessna(V, alpha, alpha_dot, beta, p, q, r, theta)\n\nm = 1043.26;\nC_bar = 1"
+ ".493;\nb = 10.911;\nS_ref = 16.1651;\n\ng = 9.8;\nrho = 1.225;\n\nC_L_0 = 0.25;\nC_L_alpha = 4.47;\nC_L_q = 1.7;"
+ "\nC_L_delta_e = 0.3476;\n\nC_D_0 = 0.036;\nC_D_alpha = 0.13;\nC_D_beta = 0.17;\nC_D_delta_e = 0.06;\n\nC_Y_beta "
+ "= -0.31;\nC_Y_p = -0.037;\nC_Y_r = 0.21;\nC_Y_delta_a = 0;\n\nC_l_beta = -0.089;\nC_l_p = -0.47;\nC_l_r = 0.096;"
+ "\nC_l_delta_a = -0.09;\nC_l_delta_r = 0.0147;\n\nC_M_0 = -0.02;\nC_M_alpha = -1.8;\nC_M_alpha_dot = -12.4;\nC_M_"
+ "delta_e = -1.28;\n\nC_N_beta = 0.065;\nC_N_p = -0.03;\nC_N_r = -0.99;\nC_N_delta_a = -0.0053;\nC_N_delta_r = -0."
+ "0657;\n\ndelta_e = 0.03376; %-0.0304;\ndelta_a = 0;\ndelta_r = 0;\nthrust = 4219.6; %1397;\n\nC_L = C_L_0 + C_L_"
+ "alpha*alpha + C_L_q*(q*C_bar/(2*V)) + C_L_delta_e*delta_e;\nC_D = C_D_0 + C_D_alpha*abs(alpha) + C_D_beta*abs(be"
+ "ta) + C_D_delta_e*abs(delta_e);\nC_Y = C_Y_beta*beta + C_Y_p*(p*b/(2*V)) + C_Y_r*(r*b/(2*V)) + C_Y_delta_a*delta"
+ "_a;\n\nC_l = C_l_beta*beta + C_l_p*(p*b/(2*V)) + C_l_r*(r*b/(2*V)) + C_l_delta_a*delta_a + C_l_delta_r*delta_r;\n"
+ "C_M = C_M_0 + C_M_alpha*alpha + C_M_alpha_dot*(alpha_dot*C_bar/(2*V)) + C_M_delta_e*delta_e;\nC_N = C_N_beta*bet"
+ "a + C_N_p*(p*b/(2*V)) + C_N_r*(r*b/(2*V)) + C_N_delta_a*delta_a + C_N_delta_r*delta_r;\n\nC_X = -C_D*cos(alpha) "
+ "+ C_L*sin(alpha);\nC_Z = -C_D*sin(alpha) - C_L*cos(alpha);\n\nF = zeros(3,1);\nM = zeros(3,1);\n\nq_bar = 0.5*rh"
+ "o*V*V;\n\nF(1,1) = q_bar*S_ref*C_X - m*g*sin(theta) + thrust;\nF(2,1) = q_bar*S_ref*C_Y;\nF(3,1) = q_bar*S_ref*C"
+ "_Z + m*g*cos(theta);\n\nM(1,1) = q_bar*b*S_ref*C_l;\nM(2,1) = q_bar*C_bar*S_ref*C_M;\nM(3,1) = q_bar*b*S_ref*C_N"
+ ";"
+ editorLayout "100 M4x1[205 227 1382 754]"
+ }
+ }
+ junction {
+ id 4
+ position [23.5747 49.5747 7]
+ chart 2
+ linkNode [2 0 0]
+ subviewer 2
+ ssIdNumber 3
+ type CONNECTIVE_JUNCTION
+ }
+ transition {
+ id 5
+ labelString "{eML_blk_kernel();}"
+ labelPosition [32.125 19.875 102.544 14.964]
+ fontSize 12
+ src {
+ intersection [0 0 1 0 23.5747 14.625 0 0]
+ }
+ dst {
+ id 4
+ intersection [7 0 -1 -1 23.5747 42.5747 0 0]
+ }
+ midPoint [23.5747 24.9468]
+ chart 2
+ linkNode [2 0 0]
+ dataLimits [23.575 23.575 14.625 34.575]
+ subviewer 2
+ drawStyle SMART
+ executionOrder 1
+ ssIdNumber 2
+ }
+ data {
+ id 6
+ ssIdNumber 4
+ name "V"
+ linkNode [2 0 7]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ }
+ complexity SF_COMPLEX_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 7
+ ssIdNumber 5
+ name "F"
+ linkNode [2 6 8]
+ scope OUTPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_NO
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 8
+ ssIdNumber 6
+ name "alpha"
+ linkNode [2 7 9]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 9
+ ssIdNumber 13
+ name "alpha_dot"
+ linkNode [2 8 10]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 10
+ ssIdNumber 7
+ name "beta"
+ linkNode [2 9 11]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 11
+ ssIdNumber 8
+ name "p"
+ linkNode [2 10 12]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 12
+ ssIdNumber 9
+ name "q"
+ linkNode [2 11 13]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 13
+ ssIdNumber 10
+ name "r"
+ linkNode [2 12 14]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 14
+ ssIdNumber 11
+ name "theta"
+ linkNode [2 13 15]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 15
+ ssIdNumber 12
+ name "M"
+ linkNode [2 14 0]
+ scope OUTPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_NO
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ instance {
+ id 16
+ name "MATLAB Function1"
+ machine 1
+ chart 2
+ }
+ target {
+ id 17
+ name "sfun"
+ description "Default Simulink S-Function Target."
+ machine 1
+ linkNode [1 0 0]
+ }
+}
diff --git a/Prof_Arya/Cessna_6DOF_Wind_trim.mdl b/Prof_Arya/Cessna_6DOF_Wind_trim.mdl new file mode 100644 index 0000000..08a6980 --- /dev/null +++ b/Prof_Arya/Cessna_6DOF_Wind_trim.mdl @@ -0,0 +1,2310 @@ +Model { + Name "Cessna_6DOF_Wind_trim" + Version 8.6 + MdlSubVersion 0 + SavedCharacterEncoding "UTF-8" + GraphicalInterface { + NumRootInports 4 + Inport { + Name "In1" + BusObject "" + OutputFunctionCall "off" + } + Inport { + Name "In2" + BusObject "" + OutputFunctionCall "off" + } + Inport { + Name "In3" + BusObject "" + OutputFunctionCall "off" + } + Inport { + Name "In4" + BusObject "" + OutputFunctionCall "off" + } + NumRootOutports 12 + Outport { + Name "Out1" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out2" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out3" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out4" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out5" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out6" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out7" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out8" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out9" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out10" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out11" + BusObject "" + BusOutputAsStruct "off" + } + Outport { + Name "Out12" + BusObject "" + BusOutputAsStruct "off" + } + ParameterArgumentNames "" + ComputedModelVersion "1.6" + NumModelReferences 0 + NumTestPointedSignals 0 + } + ScopeRefreshTime 0.035000 + OverrideScopeRefreshTime on + DisableAllScopes off + DataTypeOverride "UseLocalSettings" + DataTypeOverrideAppliesTo "AllNumericTypes" + MinMaxOverflowLogging "UseLocalSettings" + MinMaxOverflowArchiveMode "Overwrite" + FPTRunName "Run 1" + MaxMDLFileLineLength 120 + Object { + $PropName "BdWindowsInfo" + $ObjectID 1 + $ClassName "Simulink.BDWindowsInfo" + Object { + $PropName "WindowsInfo" + $ObjectID 2 + $ClassName "Simulink.WindowInfo" + IsActive [1] + Location [-8.0, 27.0, 1382.0, 754.0] + Object { + $PropName "ModelBrowserInfo" + $ObjectID 3 + $ClassName "Simulink.ModelBrowserInfo" + Visible [0] + DockPosition "Left" + Width [50] + Height [50] + Filter [8] + } + Object { + $PropName "ExplorerBarInfo" + $ObjectID 4 + $ClassName "Simulink.ExplorerBarInfo" + Visible [1] + } + Object { + $PropName "EditorsInfo" + $ObjectID 5 + $ClassName "Simulink.EditorInfo" + IsActive [1] + ViewObjType "SimulinkTopLevel" + LoadSaveID "0" + Extents [1348.0, 581.0] + ZoomFactor [0.8] + Offset [118.4499999999997, -52.828571428571422] + } + } + } + Created "Tue Dec 23 15:02:08 2014" + Creator "Pranav" + UpdateHistory "UpdateHistoryNever" + ModifiedByFormat "%<Auto>" + LastModifiedBy "siddharth" + ModifiedDateFormat "%<Auto>" + LastModifiedDate "Mon Aug 06 17:12:47 2018" + RTWModifiedTimeStamp 455475849 + ModelVersionFormat "1.%<AutoIncrement:6>" + ConfigurationManager "none" + SampleTimeColors off + SampleTimeAnnotations off + LibraryLinkDisplay "none" + WideLines off + ShowLineDimensions off + ShowPortDataTypes off + ShowDesignRanges off + ShowLoopsOnError on + IgnoreBidirectionalLines off + ShowStorageClass off + ShowTestPointIcons on + ShowSignalResolutionIcons on + ShowViewerIcons on + SortedOrder off + ExecutionContextIcon off + ShowLinearizationAnnotations on + ShowVisualizeInsertedRTB on + ShowMarkup on + BlockNameDataTip off + BlockParametersDataTip off + BlockDescriptionStringDataTip off + ToolBar on + StatusBar on + BrowserShowLibraryLinks off + BrowserLookUnderMasks off + SimulationMode "normal" + PauseTimes "5" + NumberOfSteps 1 + SnapshotBufferSize 10 + SnapshotInterval 10 + NumberOfLastSnapshots 0 + LinearizationMsg "none" + Profile off + ParamWorkspaceSource "MATLABWorkspace" + AccelSystemTargetFile "accel.tlc" + AccelTemplateMakefile "accel_default_tmf" + AccelMakeCommand "make_rtw" + TryForcingSFcnDF off + Object { + $PropName "DataLoggingOverride" + $ObjectID 6 + $ClassName "Simulink.SimulationData.ModelLoggingInfo" + model_ "Cessna_6DOF_Wind_trim" + signals_ [] + overrideMode_ [0.0] + Array { + Type "Cell" + Dimension 1 + Cell "Cessna_6DOF_Wind_trim" + PropName "logAsSpecifiedByModels_" + } + Array { + Type "Cell" + Dimension 1 + Cell [] + PropName "logAsSpecifiedByModelsSSIDs_" + } + } + ExtModeBatchMode off + ExtModeEnableFloating on + ExtModeTrigType "manual" + ExtModeTrigMode "normal" + ExtModeTrigPort "1" + ExtModeTrigElement "any" + ExtModeTrigDuration 1000 + ExtModeTrigDurationFloating "auto" + ExtModeTrigHoldOff 0 + ExtModeTrigDelay 0 + ExtModeTrigDirection "rising" + ExtModeTrigLevel 0 + ExtModeArchiveMode "off" + ExtModeAutoIncOneShot off + ExtModeIncDirWhenArm off + ExtModeAddSuffixToVar off + ExtModeWriteAllDataToWs off + ExtModeArmWhenConnect on + ExtModeSkipDownloadWhenConnect off + ExtModeLogAll on + ExtModeAutoUpdateStatusClock on + ShowModelReferenceBlockVersion off + ShowModelReferenceBlockIO off + Array { + Type "Handle" + Dimension 1 + Simulink.ConfigSet { + $ObjectID 7 + Version "1.15.1" + Array { + Type "Handle" + Dimension 10 + Simulink.SolverCC { + $ObjectID 8 + Version "1.15.1" + StartTime "0.0" + StopTime "10.0" + AbsTol "auto" + FixedStep "auto" + 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 "ode45" + SolverName "ode45" + SolverJacobianMethodControl "auto" + ShapePreserveControl "DisableAll" + ZeroCrossControl "UseLocalSettings" + ZeroCrossAlgorithm "Nonadaptive" + AlgebraicLoopSolver "TrustRegion" + SolverInfoToggleStatus off + IsAutoAppliedInSIP off + SolverResetMethod "Fast" + PositivePriorityOrder off + AutoInsertRateTranBlk off + SampleTimeConstraint "Unconstrained" + InsertRTBMode "Whenever possible" + } + Simulink.DataIOCC { + $ObjectID 9 + Version "1.15.1" + Decimation "1" + ExternalInput "[t, u]" + FinalStateName "xFinal" + InitialState "xInitial" + LimitDataPoints on + 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" + LoggingIntervals "[-inf, inf]" + } + Simulink.OptimizationCC { + $ObjectID 10 + Version "1.15.1" + Array { + Type "Cell" + Dimension 8 + Cell "BooleansAsBitfields" + Cell "PassReuseOutputArgsAs" + Cell "PassReuseOutputArgsThreshold" + Cell "ZeroExternalMemoryAtStartup" + Cell "ZeroInternalMemoryAtStartup" + Cell "OptimizeModelRefInitCode" + Cell "NoFixptDivByZeroProtection" + Cell "UseSpecifiedMinMax" + PropName "DisabledProps" + } + BlockReduction on + BooleanDataType on + ConditionallyExecuteInputs on + DefaultParameterBehavior "Tunable" + UseDivisionForNetSlopeComputation "off" + UseFloatMulNetSlope off + DefaultUnderspecifiedDataType "double" + UseSpecifiedMinMax off + InlineInvariantSignals off + OptimizeBlockIOStorage on + BufferReuse on + EnhancedBackFolding off + CachingGlobalReferences off + GlobalBufferReuse on + StrengthReduction off + ExpressionFolding on + BooleansAsBitfields off + BitfieldContainerType "uint_T" + EnableMemcpy on + MemcpyThreshold 64 + PassReuseOutputArgsAs "Structure reference" + PassReuseOutputArgsThreshold 12 + ExpressionDepthLimit 2147483647 + LocalBlockOutputs on + RollThreshold 5 + StateBitsets off + DataBitsets off + ActiveStateOutputEnumStorageType "Native Integer" + ZeroExternalMemoryAtStartup on + ZeroInternalMemoryAtStartup on + InitFltsAndDblsToZero off + NoFixptDivByZeroProtection off + EfficientFloat2IntCast off + EfficientMapNaN2IntZero on + OptimizeModelRefInitCode off + LifeSpan "inf" + MaxStackSize "Inherit from target" + BufferReusableBoundary on + SimCompilerOptimization "off" + AccelVerboseBuild off + } + Simulink.DebuggingCC { + $ObjectID 11 + Version "1.15.1" + RTPrefix "error" + ConsistencyChecking "none" + ArrayBoundsChecking "none" + SignalInfNanChecking "none" + SignalRangeChecking "none" + ReadBeforeWriteMsg "UseLocalSettings" + WriteAfterWriteMsg "UseLocalSettings" + WriteAfterReadMsg "UseLocalSettings" + AlgebraicLoopMsg "warning" + ArtificialAlgebraicLoopMsg "warning" + SaveWithDisabledLinksMsg "warning" + SaveWithParameterizedLinksMsg "warning" + 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 "error" + MultiTaskCondExecSysMsg "error" + 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 "UseLocalSettings" + SignalLabelMismatchMsg "none" + UnconnectedInputMsg "warning" + UnconnectedOutputMsg "warning" + UnconnectedLineMsg "warning" + SFcnCompatibilityMsg "none" + FrameProcessingCompatibilityMsg "error" + UniqueDataStoreMsg "none" + BusObjectLabelMismatch "warning" + RootOutportRequireBusObject "warning" + AssertControl "UseLocalSettings" + AllowSymbolicDim off + 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" + BlockIODiagnostic "none" + SFUnusedDataAndEventsDiag "warning" + SFUnexpectedBacktrackingDiag "warning" + SFInvalidInputDataAccessInChartInitDiag "warning" + SFNoUnconditionalDefaultTransitionDiag "warning" + SFTransitionOutsideNaturalParentDiag "warning" + SFUnconditionalTransitionShadowingDiag "warning" + SFUndirectedBroadcastEventsDiag "warning" + SFTransitionActionBeforeConditionDiag "warning" + SFOutputUsedAsStateInMooreChartDiag "error" + IntegerSaturationMsg "warning" + } + Simulink.HardwareCC { + $ObjectID 12 + Version "1.15.1" + 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 "Specified" + TargetUnknown off + ProdEqTarget on + } + Simulink.ModelReferenceCC { + $ObjectID 13 + Version "1.15.1" + UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange" + EnableRefExpFcnMdlSchedulingChecks on + CheckModelReferenceTargetMessage "error" + EnableParallelModelReferenceBuilds off + ParallelModelReferenceErrorOnInvalidPool on + ParallelModelReferenceMATLABWorkerInit "None" + ModelReferenceNumInstancesAllowed "Multi" + PropagateVarSize "Infer from blocks in model" + ModelReferencePassRootInputsByReference on + ModelReferenceMinAlgLoopOccurrences off + PropagateSignalLabelsOutOfModel off + SupportModelReferenceSimTargetCustomCode off + } + Simulink.SFSimCC { + $ObjectID 14 + Version "1.15.1" + SFSimEcho on + SimCtrlC on + SimIntegrity on + SimUseLocalCustomCode off + SimParseCustomCode on + SimBuildMode "sf_incremental_build" + SimGenImportedTypeDefs off + } + Simulink.RTWCC { + $BackupClass "Simulink.RTWCC" + $ObjectID 15 + Version "1.15.1" + Array { + Type "Cell" + Dimension 8 + Cell "IncludeHyperlinkInReport" + Cell "GenerateTraceInfo" + Cell "GenerateTraceReport" + Cell "GenerateTraceReportSl" + Cell "GenerateTraceReportSf" + Cell "GenerateTraceReportEml" + Cell "GenerateSLWebview" + Cell "GenerateCodeMetricsReport" + PropName "DisabledProps" + } + SystemTargetFile "grt.tlc" + TLCOptions "" + GenCodeOnly off + MakeCommand "make_rtw" + GenerateMakefile on + PackageGeneratedCodeAndArtifacts off + TemplateMakefile "grt_default_tmf" + PostCodeGenCommand "" + Description "" + GenerateReport off + SaveLog off + RTWVerbose on + RetainRTWFile off + ProfileTLC off + TLCDebug off + TLCCoverage off + TLCAssert off + RTWUseLocalCustomCode off + RTWUseSimCustomCode off + Toolchain "Automatically locate an installed toolchain" + BuildConfiguration "Faster Builds" + IncludeHyperlinkInReport off + LaunchReport off + PortableWordSizes off + CreateSILPILBlock "None" + CodeExecutionProfiling off + CodeExecutionProfileVariable "executionProfile" + CodeProfilingSaveOptions "SummaryOnly" + CodeProfilingInstrumentation off + SILDebugging off + TargetLang "C" + IncludeBusHierarchyInRTWFileBlockHierarchyMap off + GenerateTraceInfo off + GenerateTraceReport off + GenerateTraceReportSl off + GenerateTraceReportSf off + GenerateTraceReportEml off + GenerateWebview off + GenerateCodeMetricsReport off + GenerateCodeReplacementReport off + GenerateMissedCodeReplacementReport off + RTWCompilerOptimization "off" + RTWCustomCompilerOptimizations "" + CheckMdlBeforeBuild "Off" + SharedConstantsCachingThreshold 1024 + Array { + Type "Handle" + Dimension 2 + Simulink.CodeAppCC { + $ObjectID 16 + Version "1.15.1" + Array { + Type "Cell" + Dimension 21 + Cell "IgnoreCustomStorageClasses" + Cell "IgnoreTestpoints" + Cell "InsertBlockDesc" + Cell "InsertPolySpaceComments" + Cell "SFDataObjDesc" + Cell "MATLABFcnDesc" + Cell "SimulinkDataObjDesc" + Cell "DefineNamingRule" + Cell "SignalNamingRule" + Cell "ParamNamingRule" + Cell "InlinedPrmAccess" + Cell "CustomSymbolStr" + Cell "CustomSymbolStrGlobalVar" + Cell "CustomSymbolStrType" + Cell "CustomSymbolStrField" + Cell "CustomSymbolStrFcn" + Cell "CustomSymbolStrFcnArg" + Cell "CustomSymbolStrBlkIO" + Cell "CustomSymbolStrTmpVar" + Cell "CustomSymbolStrMacro" + Cell "ReqsInCode" + PropName "DisabledProps" + } + ForceParamTrailComments off + GenerateComments on + CommentStyle "Auto" + IgnoreCustomStorageClasses on + IgnoreTestpoints off + IncHierarchyInIds off + MaxIdLength 31 + PreserveName off + PreserveNameWithParent off + ShowEliminatedStatement off + OperatorAnnotations off + IncAutoGenComments off + SimulinkDataObjDesc off + SFDataObjDesc off + MATLABFcnDesc off + IncDataTypeInIds off + MangleLength 1 + CustomSymbolStrGlobalVar "$R$N$M" + CustomSymbolStrType "$N$R$M_T" + CustomSymbolStrField "$N$M" + CustomSymbolStrFcn "$R$N$M$F" + CustomSymbolStrFcnArg "rt$I$N$M" + CustomSymbolStrBlkIO "rtb_$N$M" + CustomSymbolStrTmpVar "$N$M" + CustomSymbolStrMacro "$R$N$M" + CustomSymbolStrUtil "$N$C" + DefineNamingRule "None" + ParamNamingRule "None" + SignalNamingRule "None" + InsertBlockDesc off + InsertPolySpaceComments off + SimulinkBlockComments on + MATLABSourceComments off + EnableCustomComments off + InternalIdentifier "Shortened" + InlinedPrmAccess "Literals" + ReqsInCode off + UseSimReservedNames off + } + Simulink.GRTTargetCC { + $BackupClass "Simulink.TargetCC" + $ObjectID 17 + Version "1.15.1" + Array { + Type "Cell" + Dimension 15 + Cell "GeneratePreprocessorConditionals" + Cell "IncludeMdlTerminateFcn" + Cell "GenerateAllocFcn" + Cell "SuppressErrorStatus" + Cell "ERTCustomFileBanners" + Cell "GenerateSampleERTMain" + Cell "GenerateTestInterfaces" + Cell "ModelStepFunctionPrototypeControlCompliant" + Cell "CPPClassGenCompliant" + Cell "PortableWordSizes" + Cell "PurelyIntegerCode" + Cell "SupportComplex" + Cell "SupportAbsoluteTime" + Cell "SupportContinuousTime" + Cell "SupportNonInlinedSFcns" + PropName "DisabledProps" + } + TargetFcnLib "ansi_tfl_table_tmw.mat" + TargetLibSuffix "" + TargetPreCompLibLocation "" + GenFloatMathFcnCalls "NOT IN USE" + TargetLangStandard "C89/C90 (ANSI)" + CodeReplacementLibrary "None" + UtilityFuncGeneration "Auto" + ERTMultiwordTypeDef "System defined" + ERTMultiwordLength 256 + MultiwordLength 2048 + GenerateFullHeader on + InferredTypesCompatibility off + GenerateSampleERTMain off + GenerateTestInterfaces off + ModelReferenceCompliant on + ParMdlRefBuildCompliant on + CompOptLevelCompliant on + ConcurrentExecutionCompliant on + IncludeMdlTerminateFcn on + GeneratePreprocessorConditionals "Disable all" + CombineOutputUpdateFcns off + CombineSignalStateStructs off + SuppressErrorStatus off + ERTFirstTimeCompliant off + IncludeFileDelimiter "Auto" + ERTCustomFileBanners off + SupportAbsoluteTime on + LogVarNameModifier "rt_" + MatFileLogging on + MultiInstanceERTCode off + CodeInterfacePackaging "Nonreusable function" + SupportNonFinite on + SupportComplex on + PurelyIntegerCode off + SupportContinuousTime on + SupportNonInlinedSFcns on + SupportVariableSizeSignals off + ParenthesesLevel "Nominal" + CastingMode "Nominal" + MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.GRTCustomization" + ModelStepFunctionPrototypeControlCompliant off + CPPClassGenCompliant on + AutosarCompliant off + GRTInterface on + GenerateAllocFcn off + UseToolchainInfoCompliant on + GenerateSharedConstants on + UseMalloc off + ExtMode off + ExtModeStaticAlloc off + ExtModeTesting off + ExtModeStaticAllocSize 1000000 + ExtModeTransport 0 + ExtModeMexFile "ext_comm" + ExtModeIntrfLevel "Level1" + RTWCAPISignals off + RTWCAPIParams off + RTWCAPIStates off + RTWCAPIRootIO off + GenerateASAP2 off + MultiInstanceErrorCode "Error" + } + PropName "Components" + } + } + SlCovCC.ConfigComp { + $ObjectID 18 + Version "1.15.1" + Description "Simulink Coverage Configuration Component" + Name "Simulink Coverage" + RecordCoverage off + CovPath "/" + CovSaveName "covdata" + CovMetricSettings "dw" + CovNameIncrementing off + CovHtmlReporting on + CovForceBlockReductionOff on + CovEnableCumulative on + CovSaveCumulativeToWorkspaceVar on + CovSaveSingleToWorkspaceVar on + CovCumulativeVarName "covCumulativeData" + CovCumulativeReport off + CovReportOnPause on + CovModelRefEnable "Off" + CovExternalEMLEnable off + CovSFcnEnable off + CovBoundaryAbsTol 1e-05 + CovBoundaryRelTol 0.01 + CovUseTimeInterval off + CovStartTime 0 + CovStopTime 0 + } + hdlcoderui.hdlcc { + $ObjectID 19 + Version "1.15.1" + Description "HDL Coder custom configuration component" + Name "HDL Coder" + Array { + Type "Cell" + Dimension 1 + Cell "" + PropName "HDLConfigFile" + } + HDLCActiveTab "0" + } + PropName "Components" + } + Name "Configuration" + CurrentDlgPage "Solver" + ConfigPrmDlgPosition [ 243, 69, 1123, 699 ] + } + PropName "ConfigurationSets" + } + Simulink.ConfigSet { + $PropName "ActiveConfigurationSet" + $ObjectID 7 + } + Object { + $PropName "DataTransfer" + $ObjectID 20 + $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 "on" + 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 Demux + Outputs "4" + DisplayOption "none" + BusSelectionMode off + } + Block { + BlockType Derivative + CoefficientInTFapproximation "inf" + } + Block { + BlockType Fcn + Expr "sin(u[1])" + SampleTime "-1" + } + Block { + BlockType Inport + Port "1" + OutputFunctionCall off + OutMin "[]" + OutMax "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + SignalType "auto" + SamplingMode "auto" + LatchByDelayingOutsideSignal off + LatchInputForFeedbackSignals off + Interpolate on + } + Block { + BlockType Outport + Port "1" + OutMin "[]" + OutMax "[]" + OutDataTypeStr "Inherit: auto" + LockScale off + BusOutputAsStruct off + PortDimensions "-1" + VarSizeSig "Inherit" + SampleTime "-1" + SignalType "auto" + SamplingMode "auto" + SourceOfInitialOutputValue "Dialog" + OutputWhenDisabled "held" + InitialOutput "[]" + } + Block { + BlockType S-Function + FunctionName "system" + SFunctionModules "''" + PortCounts "[]" + } + 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 + ContentPreviewEnabled off + IsWebBlock off + } + Block { + BlockType Terminator + } + } + System { + Name "Cessna_6DOF_Wind_trim" + Location [-8, 27, 1374, 781] + 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" + ReportName "simulink-default.rpt" + SIDHighWatermark "33" + Block { + BlockType Inport + Name "In1" + SID "18" + Position [910, 483, 940, 497] + ZOrder -1 + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "In2" + SID "19" + Position [910, 518, 940, 532] + ZOrder -2 + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "In3" + SID "20" + Position [910, 553, 940, 567] + ZOrder -3 + Port "3" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "In4" + SID "21" + Position [910, 583, 940, 597] + ZOrder -4 + Port "4" + IconDisplay "Port number" + } + Block { + BlockType Reference + Name "6DoF Wind (Wind Angles)" + SID "1" + Ports [2, 10] + Position [335, 223, 535, 427] + ZOrder -5 + LibraryVersion "1.46" + SourceBlock "aerolibobsolete/6DoF Wind (Wind Angles)" + SourceType "6DoF EoM (Wind Axis)" + ContentPreviewEnabled off + units "Metric (MKS)" + mtype "Fixed" + rep "Wind Angles" + xme_0 "[x y z]" + Vm_0 "[V alpha beta]" + wind_0 "[0 0 0]" + pm_0 "[p q r]" + mass_0 "m" + mass_e "0.5" + mass_f "2.0" + inertia "diag([I_xx I_yy I_zz])" + inertia_e "eye(3)" + inertia_f "2*eye(3)" + } + Block { + BlockType Demux + Name "Demux" + SID "2" + Ports [1, 3] + Position [620, 236, 625, 274] + ZOrder -6 + ShowName off + Outputs "3" + DisplayOption "bar" + } + Block { + BlockType Demux + Name "Demux1" + SID "3" + Ports [1, 3] + Position [665, 256, 670, 294] + ZOrder -7 + ShowName off + Outputs "3" + DisplayOption "bar" + } + Block { + BlockType Demux + Name "Demux2" + SID "4" + Ports [1, 3] + Position [920, 356, 925, 394] + ZOrder -8 + ShowName off + Outputs "3" + DisplayOption "bar" + } + Block { + BlockType Demux + Name "Demux3" + SID "5" + Ports [1, 2] + Position [620, 336, 625, 374] + ZOrder -9 + ShowName off + Outputs "2" + DisplayOption "bar" + } + Block { + BlockType Derivative + Name "Derivative" + SID "6" + Position [905, 410, 935, 440] + ZOrder -10 + } + Block { + BlockType Fcn + Name "Fcn" + SID "7" + Position [675, 310, 735, 340] + ZOrder -11 + Expr "sin(u(1)*exp(2.3*(-u(2))))" + } + Block { + BlockType SubSystem + Name "MATLAB Function" + SID "8" + Ports [13, 2] + Position [1010, 228, 1165, 442] + ZOrder -12 + LibraryVersion "1.32" + ErrorFcn "Stateflow.Translate.translate" + PermitHierarchicalResolution "ExplicitOnly" + TreatAsAtomicUnit on + RequestExecContextInheritance off + SFBlockType "MATLAB Function" + Variant off + System { + Name "MATLAB Function" + Location [227, 345, 838, 789] + 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" + SIDHighWatermark "36" + Block { + BlockType Inport + Name "alpha" + SID "8::1" + Position [20, 101, 40, 119] + ZOrder -1 + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "beta" + SID "8::18" + Position [20, 136, 40, 154] + ZOrder -2 + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "gamma" + SID "8::19" + Position [20, 171, 40, 189] + ZOrder -3 + Port "3" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "mu" + SID "8::20" + Position [20, 206, 40, 224] + ZOrder -4 + Port "4" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "p" + SID "8::21" + Position [20, 246, 40, 264] + ZOrder -5 + Port "5" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "q" + SID "8::22" + Position [20, 281, 40, 299] + ZOrder -6 + Port "6" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "r" + SID "8::23" + Position [20, 316, 40, 334] + ZOrder -7 + Port "7" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "V" + SID "8::24" + Position [20, 351, 40, 369] + ZOrder -8 + Port "8" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "alpha_dot" + SID "8::25" + Position [20, 386, 40, 404] + ZOrder -9 + Port "9" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "delta_e" + SID "8::27" + Position [20, 426, 40, 444] + ZOrder -10 + Port "10" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "delta_a" + SID "8::28" + Position [20, 461, 40, 479] + ZOrder -11 + Port "11" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "delta_r" + SID "8::29" + Position [20, 496, 40, 514] + ZOrder -12 + Port "12" + IconDisplay "Port number" + } + Block { + BlockType Inport + Name "thrust" + SID "8::30" + Position [20, 531, 40, 549] + ZOrder -13 + Port "13" + IconDisplay "Port number" + } + Block { + BlockType Demux + Name " Demux " + SID "8::35" + Ports [1, 1] + Position [270, 230, 320, 270] + ZOrder 5 + Outputs "1" + } + Block { + BlockType S-Function + Name " SFunction " + SID "8::34" + Tag "Stateflow S-Function Cessna_6DOF_Wind_trim 2" + Ports [13, 3] + Position [180, 90, 230, 370] + ZOrder 4 + FunctionName "sf_sfun" + PortCounts "[13 3]" + SFunctionDeploymentMode off + EnableBusSupport off + Port { + PortNumber 2 + Name "F" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + Port { + PortNumber 3 + Name "M" + RTWStorageClass "Auto" + DataLoggingNameMode "SignalName" + } + } + Block { + BlockType Terminator + Name " Terminator " + SID "8::36" + Position [460, 241, 480, 259] + ZOrder 6 + } + Block { + BlockType Outport + Name "F" + SID "8::5" + Position [460, 101, 480, 119] + ZOrder -17 + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "M" + SID "8::26" + Position [460, 136, 480, 154] + ZOrder -18 + Port "2" + IconDisplay "Port number" + } + Line { + ZOrder 35 + SrcBlock "alpha" + SrcPort 1 + DstBlock " SFunction " + DstPort 1 + } + Line { + ZOrder 36 + SrcBlock "beta" + SrcPort 1 + DstBlock " SFunction " + DstPort 2 + } + Line { + ZOrder 37 + SrcBlock "gamma" + SrcPort 1 + DstBlock " SFunction " + DstPort 3 + } + Line { + ZOrder 38 + SrcBlock "mu" + SrcPort 1 + DstBlock " SFunction " + DstPort 4 + } + Line { + ZOrder 39 + SrcBlock "p" + SrcPort 1 + DstBlock " SFunction " + DstPort 5 + } + Line { + ZOrder 40 + SrcBlock "q" + SrcPort 1 + DstBlock " SFunction " + DstPort 6 + } + Line { + ZOrder 41 + SrcBlock "r" + SrcPort 1 + DstBlock " SFunction " + DstPort 7 + } + Line { + ZOrder 42 + SrcBlock "V" + SrcPort 1 + DstBlock " SFunction " + DstPort 8 + } + Line { + ZOrder 43 + SrcBlock "alpha_dot" + SrcPort 1 + DstBlock " SFunction " + DstPort 9 + } + Line { + ZOrder 44 + SrcBlock "delta_e" + SrcPort 1 + DstBlock " SFunction " + DstPort 10 + } + Line { + ZOrder 45 + SrcBlock "delta_a" + SrcPort 1 + DstBlock " SFunction " + DstPort 11 + } + Line { + ZOrder 46 + SrcBlock "delta_r" + SrcPort 1 + DstBlock " SFunction " + DstPort 12 + } + Line { + ZOrder 47 + SrcBlock "thrust" + SrcPort 1 + DstBlock " SFunction " + DstPort 13 + } + Line { + Name "F" + ZOrder 48 + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 2 + DstBlock "F" + DstPort 1 + } + Line { + Name "M" + ZOrder 49 + Labels [0, 0] + SrcBlock " SFunction " + SrcPort 3 + DstBlock "M" + DstPort 1 + } + Line { + ZOrder 50 + SrcBlock " Demux " + SrcPort 1 + DstBlock " Terminator " + DstPort 1 + } + Line { + ZOrder 51 + SrcBlock " SFunction " + SrcPort 1 + DstBlock " Demux " + DstPort 1 + } + } + } + Block { + BlockType Terminator + Name "Terminator" + SID "13" + Position [565, 225, 585, 245] + ZOrder -13 + } + Block { + BlockType Terminator + Name "Terminator1" + SID "14" + Position [565, 285, 585, 305] + ZOrder -14 + } + Block { + BlockType Terminator + Name "Terminator2" + SID "15" + Position [565, 405, 585, 425] + ZOrder -15 + } + Block { + BlockType Terminator + Name "Terminator3" + SID "16" + Position [610, 385, 630, 405] + ZOrder -16 + } + Block { + BlockType Terminator + Name "Terminator4" + SID "17" + Position [565, 345, 585, 365] + ZOrder -17 + } + Block { + BlockType Outport + Name "Out1" + SID "22" + Position [910, 113, 940, 127] + ZOrder -18 + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out2" + SID "23" + Position [910, 143, 940, 157] + ZOrder -19 + Port "2" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out3" + SID "24" + Position [910, 173, 940, 187] + ZOrder -20 + Port "3" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out4" + SID "25" + Position [655, 113, 685, 127] + ZOrder -21 + Port "4" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out5" + SID "26" + Position [655, 143, 685, 157] + ZOrder -22 + Port "5" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out6" + SID "27" + Position [655, 173, 685, 187] + ZOrder -23 + Port "6" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out7" + SID "28" + Position [705, 113, 735, 127] + ZOrder -24 + Port "7" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out8" + SID "29" + Position [720, 143, 750, 157] + ZOrder -25 + Port "8" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out9" + SID "30" + Position [720, 173, 750, 187] + ZOrder -26 + Port "9" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out10" + SID "31" + Position [775, 483, 805, 497] + ZOrder -27 + Port "10" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out11" + SID "32" + Position [810, 518, 840, 532] + ZOrder -28 + Port "11" + IconDisplay "Port number" + } + Block { + BlockType Outport + Name "Out12" + SID "33" + Position [775, 543, 805, 557] + ZOrder -29 + Port "12" + IconDisplay "Port number" + } + Line { + ZOrder 1 + SrcBlock "MATLAB Function" + SrcPort 1 + Points [9, 0; 0, -70; -859, 0] + DstBlock "6DoF Wind (Wind Angles)" + DstPort 1 + } + Line { + ZOrder 2 + SrcBlock "MATLAB Function" + SrcPort 2 + Points [9, 0; 0, 60; -859, 0] + DstBlock "6DoF Wind (Wind Angles)" + DstPort 2 + } + Line { + ZOrder 3 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 2 + DstBlock "Demux" + DstPort 1 + } + Line { + ZOrder 4 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 1 + DstBlock "Terminator" + DstPort 1 + } + Line { + ZOrder 5 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 3 + DstBlock "Demux1" + DstPort 1 + } + Line { + ZOrder 6 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 4 + DstBlock "Terminator1" + DstPort 1 + } + Line { + ZOrder 7 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 10 + DstBlock "Terminator2" + DstPort 1 + } + Line { + ZOrder 8 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 9 + DstBlock "Terminator3" + DstPort 1 + } + Line { + ZOrder 9 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 8 + DstBlock "Demux2" + DstPort 1 + } + Line { + ZOrder 10 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 7 + DstBlock "Terminator4" + DstPort 1 + } + Line { + ZOrder 11 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 6 + Points [65, 0] + DstBlock "Demux3" + DstPort 1 + } + Line { + ZOrder 12 + SrcBlock "Demux3" + SrcPort 1 + Points [165, 0] + Branch { + ZOrder 13 + Points [0, 80] + DstBlock "Derivative" + DstPort 1 + } + Branch { + ZOrder 14 + Points [0, -120] + Branch { + ZOrder 15 + Points [86, 0; 0, 20] + DstBlock "MATLAB Function" + DstPort 1 + } + Branch { + ZOrder 16 + Points [0, -75] + DstBlock "Out2" + DstPort 1 + } + } + } + Line { + ZOrder 17 + SrcBlock "Demux2" + SrcPort 1 + Points [15, 0; 0, -60] + Branch { + ZOrder 52 + Points [0, -5; -185, 0] + DstBlock "Out10" + DstPort 1 + } + Branch { + ZOrder 18 + DstBlock "MATLAB Function" + DstPort 5 + } + } + Line { + ZOrder 20 + SrcBlock "Demux2" + SrcPort 2 + Points [25, 0; 0, -55] + Branch { + ZOrder 51 + Points [0, -5; -190, 0; 0, 210] + DstBlock "Out11" + DstPort 1 + } + Branch { + ZOrder 21 + DstBlock "MATLAB Function" + DstPort 6 + } + } + Line { + ZOrder 23 + SrcBlock "Demux2" + SrcPort 3 + Points [30, 0; 0, -50] + Branch { + ZOrder 50 + Points [0, -5; -200, 0] + DstBlock "Out12" + DstPort 1 + } + Branch { + ZOrder 24 + DstBlock "MATLAB Function" + DstPort 7 + } + } + Line { + ZOrder 26 + SrcBlock "Demux3" + SrcPort 2 + Points [285, 0; 0, -115; -20, 0] + Branch { + ZOrder 27 + Points [-112, 0; 0, 10] + DstBlock "MATLAB Function" + DstPort 2 + } + Branch { + ZOrder 28 + DstBlock "Out3" + DstPort 1 + } + } + Line { + ZOrder 29 + SrcBlock "Demux1" + SrcPort 1 + Points [15, 0] + Branch { + ZOrder 30 + Points [273, 0; 0, 25] + DstBlock "MATLAB Function" + DstPort 4 + } + Branch { + ZOrder 31 + DstBlock "Out7" + DstPort 1 + } + } + Line { + ZOrder 32 + SrcBlock "Demux1" + SrcPort 2 + DstBlock "MATLAB Function" + DstPort 3 + } + Line { + ZOrder 33 + SrcBlock "6DoF Wind (Wind Angles)" + SrcPort 5 + Points [0, 10] + DstBlock "Fcn" + DstPort 1 + } + Line { + ZOrder 34 + SrcBlock "Fcn" + SrcPort 1 + Points [30, 0] + Branch { + ZOrder 35 + Points [115, 0; 0, 25] + DstBlock "MATLAB Function" + DstPort 8 + } + Branch { + ZOrder 36 + Points [0, -205] + DstBlock "Out1" + DstPort 1 + } + } + Line { + ZOrder 37 + SrcBlock "Derivative" + SrcPort 1 + Points [45, 0; 0, -60] + DstBlock "MATLAB Function" + DstPort 9 + } + Line { + ZOrder 38 + SrcBlock "In1" + SrcPort 1 + Points [28, 0; 0, -110] + DstBlock "MATLAB Function" + DstPort 10 + } + Line { + ZOrder 39 + SrcBlock "In2" + SrcPort 1 + Points [34, 0; 0, -130] + DstBlock "MATLAB Function" + DstPort 11 + } + Line { + ZOrder 40 + SrcBlock "In3" + SrcPort 1 + Points [14, 0; 0, -150] + DstBlock "MATLAB Function" + DstPort 12 + } + Line { + ZOrder 41 + SrcBlock "In4" + SrcPort 1 + Points [50, 0] + DstBlock "MATLAB Function" + DstPort 13 + } + Line { + ZOrder 42 + SrcBlock "Demux" + SrcPort 1 + Points [10, 0] + DstBlock "Out4" + DstPort 1 + } + Line { + ZOrder 43 + SrcBlock "Demux" + SrcPort 2 + Points [10, 0] + DstBlock "Out5" + DstPort 1 + } + Line { + ZOrder 44 + SrcBlock "Demux" + SrcPort 3 + Points [10, 0] + DstBlock "Out6" + DstPort 1 + } + Line { + ZOrder 45 + SrcBlock "Demux1" + SrcPort 3 + Points [30, 0; 0, -105] + Branch { + ZOrder 46 + DstBlock "Out9" + DstPort 1 + } + Branch { + ZOrder 47 + DstBlock "Out8" + DstPort 1 + } + } + } +} +#Finite State Machines +# +# Stateflow 80000006 +# +# +Stateflow { + machine { + id 1 + name "Cessna_6DOF_Wind_trim" + created "23-Dec-2014 15:02:14" + isLibrary 0 + firstTarget 22 + sfVersion 80000006 + } + chart { + id 2 + name "MATLAB Function" + windowPosition [421 52 213 385] + viewLimits [0 156.75 0 153.75] + screen [1 1 1366 768 1.333333333333333] + treeNode [0 3 0 0] + firstTransition 20 + firstJunction 19 + viewObj 2 + machine 1 + ssIdHighWaterMark 18 + decomposition CLUSTER_CHART + type EML_CHART + firstData 4 + chartFileNumber 2 + disableImplicitCasting 1 + eml { + name "Force_Cessna" + } + } + state { + id 3 + labelString "eML_blk_kernel()" + position [18 64.5 118 66] + fontSize 12 + chart 2 + treeNode [2 0 0 0] + superState SUBCHART + subviewer 2 + ssIdNumber 1 + type FUNC_STATE + decomposition CLUSTER_STATE + eml { + isEML 1 + script "function [F, M] = Force_Cessna(alpha, beta, gamma, mu, p, q, r, V, alpha_dot, delta_e, delta_a, d" + "elta_r, thrust)\n\ng = 9.8;\nrho = 1.225;\n\nm = 1043.26;\nC_bar = 1.493;\nb = 10.911;\nS_ref = 16.1651;\n\nC_L_" + "0 = 0.25;\nC_L_alpha = 4.47;\nC_L_q = 1.7;\nC_L_delta_e = 0.3476;\n\nC_D_0 = 0.036;\nC_D_alpha = 0.13;\nC_D_beta" + " = 0.17;\nC_D_delta_e = 0.06;\n\nC_Y_beta = -0.31;\nC_Y_p = -0.037;\nC_Y_r = 0.21;\nC_Y_delta_a = 0;\n\nC_l_beta" + " = -0.089;\nC_l_p = -0.47;\nC_l_r = 0.096;\nC_l_delta_a = -0.09;\nC_l_delta_r = 0.0147;\n\nC_M_0 = -0.02;\nC_M_a" + "lpha = -1.8;\nC_M_alpha_dot = -12.4;\nC_M_delta_e = -1.28;\n\nC_N_beta = 0.065;\nC_N_p = -0.03;\nC_N_r = -0.99;\n" + "C_N_delta_a = -0.0053;\nC_N_delta_r = -0.0657;\n\n% delta_e = -0.0304;\n% delta_a = 0;\n% delta_r = 0;\n% thrust" + " = 1397;\n\nC_L = C_L_0 + C_L_alpha*alpha + C_L_q*(q*C_bar/(2*V)) + C_L_delta_e*delta_e;\nC_D = C_D_0 + C_D_alph" + "a*abs(alpha) + C_D_beta*abs(beta) + C_D_delta_e*abs(delta_e);\nC_Y = C_Y_beta*beta + C_Y_p*(p*b/(2*V)) + C_Y_r*(" + "r*b/(2*V)) + C_Y_delta_a*delta_a;\n\nC_l = C_l_beta*beta + C_l_p*(p*b/(2*V)) + C_l_r*(r*b/(2*V)) + C_l_delta_a*d" + "elta_a + C_l_delta_r*delta_r;\nC_M = C_M_0 + C_M_alpha*alpha + C_M_alpha_dot*(alpha_dot*C_bar/(2*V)) + C_M_delta" + "_e*delta_e;\nC_N = C_N_beta*beta + C_N_p*(p*b/(2*V)) + C_N_r*(r*b/(2*V)) + C_N_delta_a*delta_a + C_N_delta_r*del" + "ta_r;\n\nF = zeros(3,1);\nM = zeros(3,1);\n\nq_bar = 0.5*rho*V*V;\n\nF(1,1) = q_bar*S_ref*(-C_D*cos(beta) + C_Y*" + "sin(beta)) - m*g*sin(gamma) + thrust*cos(alpha)*cos(beta);\nF(2,1) = q_bar*S_ref*(C_D*sin(beta) + C_Y*sin(beta))" + " - m*g*cos(gamma)*sin(mu) - thrust*cos(alpha)*sin(beta);\nF(3,1) = q_bar*S_ref*(-C_L) + m*g*cos(gamma)*cos(mu) -" + " thrust*sin(alpha);\n\nM(1,1) = q_bar*S_ref*b*C_l;\nM(2,1) = q_bar*S_ref*C_bar*C_M;\nM(3,1) = q_bar*S_ref*b*C_N;" + editorLayout "100 M4x1[205 227 1382 754]" + } + } + data { + id 4 + ssIdNumber 4 + name "alpha" + linkNode [2 0 5] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 5 + ssIdNumber 5 + name "F" + linkNode [2 4 6] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + data { + id 6 + ssIdNumber 6 + name "beta" + linkNode [2 5 7] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 7 + ssIdNumber 7 + name "gamma" + linkNode [2 6 8] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 8 + ssIdNumber 8 + name "mu" + linkNode [2 7 9] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 9 + ssIdNumber 9 + name "p" + linkNode [2 8 10] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 10 + ssIdNumber 10 + name "q" + linkNode [2 9 11] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 11 + ssIdNumber 11 + name "r" + linkNode [2 10 12] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 12 + ssIdNumber 12 + name "V" + linkNode [2 11 13] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 13 + ssIdNumber 13 + name "alpha_dot" + linkNode [2 12 14] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 14 + ssIdNumber 14 + name "M" + linkNode [2 13 15] + scope OUTPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_NO + } + dataType "Inherit: Same as Simulink" + } + data { + id 15 + ssIdNumber 15 + name "delta_e" + linkNode [2 14 16] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 16 + ssIdNumber 16 + name "delta_a" + linkNode [2 15 17] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 17 + ssIdNumber 17 + name "delta_r" + linkNode [2 16 18] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + data { + id 18 + ssIdNumber 18 + name "thrust" + linkNode [2 17 0] + scope INPUT_DATA + machine 1 + props { + array { + size "-1" + } + type { + method SF_INHERITED_TYPE + primitive SF_DOUBLE_TYPE + isSigned 1 + wordLength "16" + } + complexity SF_COMPLEX_INHERITED + frame SF_FRAME_INHERITED + } + dataType "Inherit: Same as Simulink" + } + junction { + id 19 + position [23.5747 49.5747 7] + chart 2 + linkNode [2 0 0] + subviewer 2 + ssIdNumber 3 + type CONNECTIVE_JUNCTION + } + transition { + id 20 + labelString "{eML_blk_kernel();}" + labelPosition [36.125 25.875 102.544 14.964] + fontSize 12 + src { + intersection [0 0 1 0 23.5747 14.625 0 0] + } + dst { + id 19 + intersection [1 0 -1 0 23.5747 42.5747 0 0] + } + midPoint [23.5747 24.9468] + chart 2 + linkNode [2 0 0] + dataLimits [21.175 25.975 14.625 42.575] + subviewer 2 + drawStyle SMART + slide { + sticky BOTH_STICK + } + executionOrder 1 + ssIdNumber 2 + } + instance { + id 21 + name "MATLAB Function" + machine 1 + chart 2 + } + target { + id 22 + name "sfun" + description "Default Simulink S-Function Target." + machine 1 + linkNode [1 0 0] + } +} diff --git a/Prof_Arya/Cessna_6DOF_Wind_trim.mdl.r2014a b/Prof_Arya/Cessna_6DOF_Wind_trim.mdl.r2014a new file mode 100644 index 0000000..22c1a49 --- /dev/null +++ b/Prof_Arya/Cessna_6DOF_Wind_trim.mdl.r2014a @@ -0,0 +1,2317 @@ +Model {
+ Name "Cessna_6DOF_Wind_trim"
+ Version 8.3
+ MdlSubVersion 0
+ SavedCharacterEncoding "windows-1252"
+ GraphicalInterface {
+ NumRootInports 4
+ Inport {
+ BusObject ""
+ Name "In1"
+ }
+ Inport {
+ BusObject ""
+ Name "In2"
+ }
+ Inport {
+ BusObject ""
+ Name "In3"
+ }
+ Inport {
+ BusObject ""
+ Name "In4"
+ }
+ NumRootOutports 12
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out1"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out2"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out3"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out4"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out5"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out6"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out7"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out8"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out9"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out10"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out11"
+ }
+ Outport {
+ BusObject ""
+ BusOutputAsStruct "off"
+ Name "Out12"
+ }
+ ParameterArgumentNames ""
+ ComputedModelVersion "1.5"
+ NumModelReferences 0
+ NumTestPointedSignals 0
+ }
+ SaveDefaultBlockParams on
+ ScopeRefreshTime 0.035000
+ OverrideScopeRefreshTime on
+ DisableAllScopes off
+ DataTypeOverride "UseLocalSettings"
+ DataTypeOverrideAppliesTo "AllNumericTypes"
+ MinMaxOverflowLogging "UseLocalSettings"
+ MinMaxOverflowArchiveMode "Overwrite"
+ FPTRunName "Run 1"
+ MaxMDLFileLineLength 120
+ Object {
+ $PropName "BdWindowsInfo"
+ $ObjectID 1
+ $ClassName "Simulink.BDWindowsInfo"
+ Object {
+ $PropName "WindowsInfo"
+ $ObjectID 2
+ $ClassName "Simulink.WindowInfo"
+ IsActive [1]
+ Location [-8.0, -8.0, 1382.0, 754.0]
+ Object {
+ $PropName "ModelBrowserInfo"
+ $ObjectID 3
+ $ClassName "Simulink.ModelBrowserInfo"
+ Visible [0]
+ DockPosition "Left"
+ Width [50]
+ Height [50]
+ Filter [8]
+ }
+ Object {
+ $PropName "ExplorerBarInfo"
+ $ObjectID 4
+ $ClassName "Simulink.ExplorerBarInfo"
+ Visible [1]
+ }
+ Object {
+ $PropName "EditorsInfo"
+ $ObjectID 5
+ $ClassName "Simulink.EditorInfo"
+ IsActive [1]
+ ViewObjType "SimulinkSubsys"
+ LoadSaveID "1"
+ Extents [1332.0, 580.0]
+ ZoomFactor [1.0]
+ Offset [-0.25, 0.0]
+ }
+ }
+ }
+ Created "Tue Dec 23 15:02:08 2014"
+ Creator "Pranav"
+ UpdateHistory "UpdateHistoryNever"
+ ModifiedByFormat "%<Auto>"
+ LastModifiedBy "Pranav"
+ ModifiedDateFormat "%<Auto>"
+ LastModifiedDate "Wed Apr 13 15:49:51 2016"
+ RTWModifiedTimeStamp 382463365
+ ModelVersionFormat "1.%<AutoIncrement:5>"
+ ConfigurationManager "none"
+ SampleTimeColors off
+ SampleTimeAnnotations off
+ LibraryLinkDisplay "none"
+ WideLines off
+ ShowLineDimensions off
+ ShowPortDataTypes off
+ ShowDesignRanges off
+ ShowLoopsOnError on
+ IgnoreBidirectionalLines off
+ ShowStorageClass off
+ ShowTestPointIcons on
+ ShowSignalResolutionIcons on
+ ShowViewerIcons on
+ SortedOrder off
+ ExecutionContextIcon off
+ ShowLinearizationAnnotations on
+ BlockNameDataTip off
+ BlockParametersDataTip off
+ BlockDescriptionStringDataTip off
+ ToolBar on
+ StatusBar on
+ BrowserShowLibraryLinks off
+ BrowserLookUnderMasks off
+ SimulationMode "normal"
+ PauseTimes "5"
+ NumberOfSteps 1
+ SnapshotBufferSize 10
+ SnapshotInterval 10
+ NumberOfLastSnapshots 0
+ LinearizationMsg "none"
+ Profile off
+ ParamWorkspaceSource "MATLABWorkspace"
+ AccelSystemTargetFile "accel.tlc"
+ AccelTemplateMakefile "accel_default_tmf"
+ AccelMakeCommand "make_rtw"
+ TryForcingSFcnDF off
+ Object {
+ $PropName "DataLoggingOverride"
+ $ObjectID 6
+ $ClassName "Simulink.SimulationData.ModelLoggingInfo"
+ model_ "Cessna_6DOF_Wind_trim"
+ signals_ []
+ overrideMode_ [0.0]
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell "Cessna_6DOF_Wind_trim"
+ PropName "logAsSpecifiedByModels_"
+ }
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell []
+ PropName "logAsSpecifiedByModelsSSIDs_"
+ }
+ }
+ RecordCoverage off
+ CovPath "/"
+ CovSaveName "covdata"
+ CovMetricSettings "dw"
+ CovNameIncrementing off
+ CovHtmlReporting on
+ CovForceBlockReductionOff on
+ CovEnableCumulative on
+ covSaveCumulativeToWorkspaceVar on
+ CovSaveSingleToWorkspaceVar on
+ CovCumulativeVarName "covCumulativeData"
+ CovCumulativeReport off
+ CovReportOnPause on
+ CovModelRefEnable "Off"
+ CovExternalEMLEnable off
+ CovSFcnEnable off
+ CovBoundaryAbsTol 0.000010
+ CovBoundaryRelTol 0.010000
+ ExtModeBatchMode off
+ ExtModeEnableFloating on
+ ExtModeTrigType "manual"
+ ExtModeTrigMode "normal"
+ ExtModeTrigPort "1"
+ ExtModeTrigElement "any"
+ ExtModeTrigDuration 1000
+ ExtModeTrigDurationFloating "auto"
+ ExtModeTrigHoldOff 0
+ ExtModeTrigDelay 0
+ ExtModeTrigDirection "rising"
+ ExtModeTrigLevel 0
+ ExtModeArchiveMode "off"
+ ExtModeAutoIncOneShot off
+ ExtModeIncDirWhenArm off
+ ExtModeAddSuffixToVar off
+ ExtModeWriteAllDataToWs off
+ ExtModeArmWhenConnect on
+ ExtModeSkipDownloadWhenConnect off
+ ExtModeLogAll on
+ ExtModeAutoUpdateStatusClock on
+ BufferReuse on
+ ShowModelReferenceBlockVersion off
+ ShowModelReferenceBlockIO off
+ Array {
+ Type "Handle"
+ Dimension 1
+ Simulink.ConfigSet {
+ $ObjectID 7
+ Version "1.14.2"
+ Array {
+ Type "Handle"
+ Dimension 9
+ Simulink.SolverCC {
+ $ObjectID 8
+ Version "1.14.2"
+ StartTime "0.0"
+ StopTime "10.0"
+ AbsTol "auto"
+ FixedStep "auto"
+ 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 "ode45"
+ SolverName "ode45"
+ SolverJacobianMethodControl "auto"
+ ShapePreserveControl "DisableAll"
+ ZeroCrossControl "UseLocalSettings"
+ ZeroCrossAlgorithm "Nonadaptive"
+ AlgebraicLoopSolver "TrustRegion"
+ SolverResetMethod "Fast"
+ PositivePriorityOrder off
+ AutoInsertRateTranBlk off
+ SampleTimeConstraint "Unconstrained"
+ InsertRTBMode "Whenever possible"
+ }
+ Simulink.DataIOCC {
+ $ObjectID 9
+ Version "1.14.2"
+ Decimation "1"
+ ExternalInput "[t, u]"
+ FinalStateName "xFinal"
+ InitialState "xInitial"
+ LimitDataPoints on
+ 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
+ SaveTime on
+ ReturnWorkspaceOutputs off
+ StateSaveName "xout"
+ TimeSaveName "tout"
+ OutputSaveName "yout"
+ SignalLoggingName "logsout"
+ DSMLoggingName "dsmout"
+ OutputOption "RefineOutputTimes"
+ OutputTimes "[]"
+ ReturnWorkspaceOutputsName "out"
+ Refine "1"
+ }
+ Simulink.OptimizationCC {
+ $ObjectID 10
+ Version "1.14.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
+ InlineParams off
+ UseIntDivNetSlope 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"
+ ExpressionDepthLimit 2147483647
+ FoldNonRolledExpr on
+ LocalBlockOutputs on
+ RollThreshold 5
+ SystemCodeInlineAuto off
+ StateBitsets off
+ DataBitsets off
+ ActiveStateOutputEnumStorageType "Native Integer"
+ UseTempVars off
+ 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
+ ParallelExecutionInRapidAccelerator on
+ }
+ Simulink.DebuggingCC {
+ $ObjectID 11
+ Version "1.14.2"
+ RTPrefix "error"
+ ConsistencyChecking "none"
+ ArrayBoundsChecking "none"
+ SignalInfNanChecking "none"
+ SignalRangeChecking "none"
+ ReadBeforeWriteMsg "UseLocalSettings"
+ WriteAfterWriteMsg "UseLocalSettings"
+ WriteAfterReadMsg "UseLocalSettings"
+ AlgebraicLoopMsg "warning"
+ ArtificialAlgebraicLoopMsg "warning"
+ SaveWithDisabledLinksMsg "warning"
+ SaveWithParameterizedLinksMsg "warning"
+ 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"
+ DiscreteInheritContinuousMsg "warning"
+ MultiTaskDSMMsg "error"
+ MultiTaskCondExecSysMsg "error"
+ 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 "UseLocalSettings"
+ SignalLabelMismatchMsg "none"
+ UnconnectedInputMsg "warning"
+ UnconnectedOutputMsg "warning"
+ UnconnectedLineMsg "warning"
+ SFcnCompatibilityMsg "none"
+ FrameProcessingCompatibilityMsg "warning"
+ UniqueDataStoreMsg "none"
+ BusObjectLabelMismatch "warning"
+ RootOutportRequireBusObject "warning"
+ AssertControl "UseLocalSettings"
+ EnableOverflowDetection off
+ ModelReferenceIOMsg "none"
+ ModelReferenceMultiInstanceNormalModeStructChecksumCheck "error"
+ ModelReferenceVersionMismatchMessage "none"
+ ModelReferenceIOMismatchMessage "none"
+ ModelReferenceCSMismatchMessage "none"
+ UnknownTsInhSupMsg "warning"
+ ModelReferenceDataLoggingMessage "warning"
+ ModelReferenceSymbolNameMessage "warning"
+ ModelReferenceExtraNoncontSigs "error"
+ StateNameClashWarn "warning"
+ SimStateInterfaceChecksumMismatchMsg "warning"
+ SimStateOlderReleaseMsg "error"
+ InitInArrayFormatMsg "warning"
+ StrictBusMsg "ErrorLevel1"
+ BusNameAdapt "WarnAndRepair"
+ NonBusSignalsTreatedAsBus "none"
+ LoggingUnavailableSignals "error"
+ BlockIODiagnostic "none"
+ SFUnusedDataAndEventsDiag "warning"
+ SFUnexpectedBacktrackingDiag "warning"
+ SFInvalidInputDataAccessInChartInitDiag "warning"
+ SFNoUnconditionalDefaultTransitionDiag "warning"
+ SFTransitionOutsideNaturalParentDiag "warning"
+ SFUnconditionalTransitionShadowingDiag "warning"
+ SFUndirectedBroadcastEventsDiag "warning"
+ SFTransitionActionBeforeConditionDiag "warning"
+ }
+ Simulink.HardwareCC {
+ $ObjectID 12
+ Version "1.14.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
+ TargetTypeEmulationWarnSuppressLevel 0
+ TargetPreprocMaxBitsSint 32
+ TargetPreprocMaxBitsUint 32
+ TargetHWDeviceType "Specified"
+ TargetUnknown off
+ ProdEqTarget on
+ }
+ Simulink.ModelReferenceCC {
+ $ObjectID 13
+ Version "1.14.2"
+ UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
+ CheckModelReferenceTargetMessage "error"
+ EnableParallelModelReferenceBuilds off
+ ParallelModelReferenceErrorOnInvalidPool on
+ ParallelModelReferenceMATLABWorkerInit "None"
+ ModelReferenceNumInstancesAllowed "Multi"
+ PropagateVarSize "Infer from blocks in model"
+ ModelReferencePassRootInputsByReference on
+ ModelReferenceMinAlgLoopOccurrences off
+ PropagateSignalLabelsOutOfModel off
+ SupportModelReferenceSimTargetCustomCode off
+ }
+ Simulink.SFSimCC {
+ $ObjectID 14
+ Version "1.14.2"
+ SFSimEnableDebug on
+ SFSimOverflowDetection on
+ SFSimEcho on
+ SimBlas on
+ SimCtrlC on
+ SimExtrinsic on
+ SimIntegrity on
+ SimUseLocalCustomCode off
+ SimParseCustomCode on
+ SimBuildMode "sf_incremental_build"
+ SimGenImportedTypeDefs off
+ }
+ Simulink.RTWCC {
+ $BackupClass "Simulink.RTWCC"
+ $ObjectID 15
+ Version "1.14.2"
+ Array {
+ Type "Cell"
+ Dimension 8
+ Cell "IncludeHyperlinkInReport"
+ Cell "GenerateTraceInfo"
+ Cell "GenerateTraceReport"
+ Cell "GenerateTraceReportSl"
+ Cell "GenerateTraceReportSf"
+ Cell "GenerateTraceReportEml"
+ Cell "GenerateSLWebview"
+ Cell "GenerateCodeMetricsReport"
+ PropName "DisabledProps"
+ }
+ SystemTargetFile "grt.tlc"
+ TLCOptions ""
+ GenCodeOnly off
+ MakeCommand "make_rtw"
+ GenerateMakefile on
+ PackageGeneratedCodeAndArtifacts off
+ PackageName ""
+ TemplateMakefile "grt_default_tmf"
+ PostCodeGenCommand ""
+ Description ""
+ GenerateReport off
+ SaveLog off
+ RTWVerbose on
+ RetainRTWFile off
+ ProfileTLC off
+ TLCDebug off
+ TLCCoverage off
+ TLCAssert off
+ ProcessScriptMode "Default"
+ ConfigurationMode "Optimized"
+ ProcessScript ""
+ ConfigurationScript ""
+ ConfigAtBuild off
+ RTWUseLocalCustomCode off
+ RTWUseSimCustomCode off
+ CustomSourceCode ""
+ CustomHeaderCode ""
+ CustomInclude ""
+ CustomSource ""
+ CustomLibrary ""
+ CustomInitializer ""
+ CustomTerminator ""
+ 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
+ IncludeERTFirstTime off
+ GenerateTraceInfo off
+ GenerateTraceReport off
+ GenerateTraceReportSl off
+ GenerateTraceReportSf off
+ GenerateTraceReportEml off
+ GenerateCodeInfo off
+ GenerateWebview off
+ GenerateCodeMetricsReport off
+ GenerateCodeReplacementReport off
+ RTWCompilerOptimization "Off"
+ RTWCustomCompilerOptimizations ""
+ CheckMdlBeforeBuild "Off"
+ CustomRebuildMode "OnUpdate"
+ DataInitializer ""
+ SharedConstantsCachingThreshold 1024
+ Array {
+ Type "Handle"
+ Dimension 2
+ Simulink.CodeAppCC {
+ $ObjectID 16
+ Version "1.14.2"
+ Array {
+ Type "Cell"
+ Dimension 21
+ Cell "IgnoreCustomStorageClasses"
+ Cell "IgnoreTestpoints"
+ Cell "InsertBlockDesc"
+ Cell "InsertPolySpaceComments"
+ Cell "SFDataObjDesc"
+ Cell "MATLABFcnDesc"
+ Cell "SimulinkDataObjDesc"
+ Cell "DefineNamingRule"
+ Cell "SignalNamingRule"
+ Cell "ParamNamingRule"
+ Cell "InlinedPrmAccess"
+ Cell "CustomSymbolStr"
+ Cell "CustomSymbolStrGlobalVar"
+ Cell "CustomSymbolStrType"
+ Cell "CustomSymbolStrField"
+ Cell "CustomSymbolStrFcn"
+ Cell "CustomSymbolStrFcnArg"
+ Cell "CustomSymbolStrBlkIO"
+ Cell "CustomSymbolStrTmpVar"
+ Cell "CustomSymbolStrMacro"
+ Cell "ReqsInCode"
+ PropName "DisabledProps"
+ }
+ ForceParamTrailComments off
+ GenerateComments on
+ CommentStyle "Auto"
+ IgnoreCustomStorageClasses on
+ IgnoreTestpoints off
+ IncHierarchyInIds off
+ MaxIdLength 31
+ PreserveName off
+ PreserveNameWithParent off
+ ShowEliminatedStatement off
+ OperatorAnnotations off
+ IncAutoGenComments off
+ SimulinkDataObjDesc off
+ SFDataObjDesc off
+ MATLABFcnDesc off
+ IncDataTypeInIds off
+ MangleLength 1
+ CustomSymbolStrGlobalVar "$R$N$M"
+ CustomSymbolStrType "$N$R$M_T"
+ CustomSymbolStrField "$N$M"
+ CustomSymbolStrFcn "$R$N$M$F"
+ CustomSymbolStrFcnArg "rt$I$N$M"
+ CustomSymbolStrBlkIO "rtb_$N$M"
+ CustomSymbolStrTmpVar "$N$M"
+ CustomSymbolStrMacro "$R$N$M"
+ CustomSymbolStrUtil "$N$C"
+ DefineNamingRule "None"
+ ParamNamingRule "None"
+ SignalNamingRule "None"
+ InsertBlockDesc off
+ InsertPolySpaceComments off
+ SimulinkBlockComments on
+ MATLABSourceComments off
+ EnableCustomComments off
+ InternalIdentifier "Shortened"
+ InlinedPrmAccess "Literals"
+ ReqsInCode off
+ UseSimReservedNames off
+ }
+ Simulink.GRTTargetCC {
+ $BackupClass "Simulink.TargetCC"
+ $ObjectID 17
+ Version "1.14.2"
+ Array {
+ Type "Cell"
+ Dimension 16
+ Cell "GeneratePreprocessorConditionals"
+ Cell "IncludeMdlTerminateFcn"
+ Cell "CombineOutputUpdateFcns"
+ Cell "SuppressErrorStatus"
+ Cell "ERTCustomFileBanners"
+ Cell "GenerateSampleERTMain"
+ Cell "GenerateTestInterfaces"
+ Cell "ModelStepFunctionPrototypeControlCompliant"
+ Cell "CPPClassGenCompliant"
+ Cell "PortableWordSizes"
+ Cell "PurelyIntegerCode"
+ Cell "SupportComplex"
+ Cell "SupportAbsoluteTime"
+ Cell "SupportContinuousTime"
+ Cell "SupportNonInlinedSFcns"
+ Cell "GenerateAllocFcn"
+ PropName "DisabledProps"
+ }
+ TargetFcnLib "ansi_tfl_table_tmw.mat"
+ TargetLibSuffix ""
+ TargetPreCompLibLocation ""
+ GenFloatMathFcnCalls "NOT IN USE"
+ TargetLangStandard "C89/C90 (ANSI)"
+ CodeReplacementLibrary "None"
+ UtilityFuncGeneration "Auto"
+ ERTMultiwordTypeDef "System defined"
+ ERTMultiwordLength 256
+ MultiwordLength 2048
+ GenerateFullHeader on
+ 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
+ EnableShiftOperators on
+ ParenthesesLevel "Nominal"
+ MATLABClassNameForMDSCustomization "Simulink.SoftwareTarget.GRTCustomization"
+ ModelStepFunctionPrototypeControlCompliant off
+ CPPClassGenCompliant on
+ AutosarCompliant off
+ GRTInterface on
+ GenerateAllocFcn off
+ 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"
+ }
+ }
+ hdlcoderui.hdlcc {
+ $ObjectID 18
+ Version "1.14.2"
+ Description "HDL Coder custom configuration component"
+ Name "HDL Coder"
+ Array {
+ Type "Cell"
+ Dimension 1
+ Cell ""
+ PropName "HDLConfigFile"
+ }
+ HDLCActiveTab "0"
+ }
+ PropName "Components"
+ }
+ Name "Configuration"
+ CurrentDlgPage "Solver"
+ ConfigPrmDlgPosition [ 243, 69, 1123, 699 ]
+ }
+ PropName "ConfigurationSets"
+ }
+ Simulink.ConfigSet {
+ $PropName "ActiveConfigurationSet"
+ $ObjectID 7
+ }
+ Object {
+ $PropName "DataTransfer"
+ $ObjectID 19
+ $ClassName "Simulink.GlobalDataTransfer"
+ DefaultTransitionBetweenSyncTasks "Ensure deterministic transfer (maximum delay)"
+ DefaultTransitionBetweenAsyncTasks "Ensure data integrity only"
+ DefaultTransitionBetweenContTasks "Ensure deterministic transfer (minimum delay)"
+ DefaultExtrapolationMethodBetweenContTasks "None"
+ AutoInsertRateTranBlk [0]
+ }
+ ExplicitPartitioning off
+ BlockDefaults {
+ ForegroundColor "black"
+ BackgroundColor "white"
+ DropShadow off
+ NamePlacement "normal"
+ FontName "Helvetica"
+ FontSize 10
+ FontWeight "normal"
+ FontAngle "normal"
+ ShowName on
+ BlockRotation 0
+ BlockMirror off
+ }
+ AnnotationDefaults {
+ HorizontalAlignment "center"
+ VerticalAlignment "middle"
+ ForegroundColor "black"
+ BackgroundColor "white"
+ DropShadow off
+ FontName "Helvetica"
+ FontSize 10
+ FontWeight "normal"
+ FontAngle "normal"
+ UseDisplayTextAsClickCallback off
+ }
+ LineDefaults {
+ FontName "Helvetica"
+ FontSize 9
+ FontWeight "normal"
+ FontAngle "normal"
+ }
+ MaskDefaults {
+ SelfModifiable "off"
+ IconFrame "on"
+ IconOpaque "on"
+ 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 Demux
+ Outputs "4"
+ DisplayOption "none"
+ BusSelectionMode off
+ }
+ Block {
+ BlockType Derivative
+ CoefficientInTFapproximation "inf"
+ }
+ Block {
+ BlockType Fcn
+ Expr "sin(u[1])"
+ SampleTime "-1"
+ }
+ Block {
+ BlockType Inport
+ Port "1"
+ OutputFunctionCall off
+ OutMin "[]"
+ OutMax "[]"
+ OutDataTypeStr "Inherit: auto"
+ LockScale off
+ BusOutputAsStruct off
+ PortDimensions "-1"
+ VarSizeSig "Inherit"
+ SampleTime "-1"
+ SignalType "auto"
+ SamplingMode "auto"
+ LatchByDelayingOutsideSignal off
+ LatchInputForFeedbackSignals off
+ Interpolate on
+ }
+ Block {
+ BlockType Outport
+ Port "1"
+ OutMin "[]"
+ OutMax "[]"
+ OutDataTypeStr "Inherit: auto"
+ LockScale off
+ BusOutputAsStruct off
+ PortDimensions "-1"
+ VarSizeSig "Inherit"
+ SampleTime "-1"
+ SignalType "auto"
+ SamplingMode "auto"
+ SourceOfInitialOutputValue "Dialog"
+ OutputWhenDisabled "held"
+ InitialOutput "[]"
+ }
+ Block {
+ BlockType S-Function
+ FunctionName "system"
+ SFunctionModules "''"
+ PortCounts "[]"
+ SFunctionDeploymentMode off
+ }
+ 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"
+ Variant off
+ GeneratePreprocessorConditionals off
+ ContentPreviewEnabled off
+ }
+ Block {
+ BlockType Terminator
+ }
+ }
+ System {
+ Name "Cessna_6DOF_Wind_trim"
+ Location [-8, -8, 1374, 746]
+ 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"
+ ReportName "simulink-default.rpt"
+ SIDHighWatermark "33"
+ Block {
+ BlockType Inport
+ Name "In1"
+ SID "18"
+ Position [910, 483, 940, 497]
+ ZOrder -1
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "In2"
+ SID "19"
+ Position [910, 518, 940, 532]
+ ZOrder -2
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "In3"
+ SID "20"
+ Position [910, 553, 940, 567]
+ ZOrder -3
+ Port "3"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "In4"
+ SID "21"
+ Position [910, 583, 940, 597]
+ ZOrder -4
+ Port "4"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Reference
+ Name "6DoF Wind (Wind Angles)"
+ SID "1"
+ Ports [2, 10]
+ Position [335, 223, 535, 427]
+ ZOrder -5
+ LibraryVersion "1.44"
+ SourceBlock "aerolibobsolete/6DoF Wind (Wind Angles)"
+ SourceType "6DoF EoM (Wind Axis)"
+ ContentPreviewEnabled off
+ units "Metric (MKS)"
+ mtype "Fixed"
+ rep "Wind Angles"
+ xme_0 "[x y z]"
+ Vm_0 "[V alpha beta]"
+ wind_0 "[0 0 0]"
+ pm_0 "[p q r]"
+ mass_0 "m"
+ mass_e "0.5"
+ mass_f "2.0"
+ inertia "diag([I_xx I_yy I_zz])"
+ inertia_e "eye(3)"
+ inertia_f "2*eye(3)"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux"
+ SID "2"
+ Ports [1, 3]
+ Position [620, 236, 625, 274]
+ ZOrder -6
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux1"
+ SID "3"
+ Ports [1, 3]
+ Position [665, 256, 670, 294]
+ ZOrder -7
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux2"
+ SID "4"
+ Ports [1, 3]
+ Position [920, 356, 925, 394]
+ ZOrder -8
+ ShowName off
+ Outputs "3"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Demux
+ Name "Demux3"
+ SID "5"
+ Ports [1, 2]
+ Position [620, 336, 625, 374]
+ ZOrder -9
+ ShowName off
+ Outputs "2"
+ DisplayOption "bar"
+ }
+ Block {
+ BlockType Derivative
+ Name "Derivative"
+ SID "6"
+ Position [905, 410, 935, 440]
+ ZOrder -10
+ }
+ Block {
+ BlockType Fcn
+ Name "Fcn"
+ SID "7"
+ Position [675, 310, 735, 340]
+ ZOrder -11
+ Expr "sin(u(1)*exp(2.3*(-u(2))))"
+ }
+ Block {
+ BlockType SubSystem
+ Name "MATLAB Function"
+ SID "8"
+ Ports [13, 2]
+ Position [975, 223, 1045, 437]
+ ZOrder -12
+ LibraryVersion "1.32"
+ ErrorFcn "Stateflow.Translate.translate"
+ PermitHierarchicalResolution "ExplicitOnly"
+ TreatAsAtomicUnit on
+ RequestExecContextInheritance off
+ SFBlockType "MATLAB Function"
+ System {
+ Name "MATLAB Function"
+ Location [227, 345, 838, 789]
+ 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"
+ SIDHighWatermark "33"
+ Block {
+ BlockType Inport
+ Name "alpha"
+ SID "8::1"
+ Position [20, 101, 40, 119]
+ ZOrder -1
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "beta"
+ SID "8::18"
+ Position [20, 136, 40, 154]
+ ZOrder -2
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "gamma"
+ SID "8::19"
+ Position [20, 171, 40, 189]
+ ZOrder -3
+ Port "3"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "mu"
+ SID "8::20"
+ Position [20, 206, 40, 224]
+ ZOrder -4
+ Port "4"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "p"
+ SID "8::21"
+ Position [20, 246, 40, 264]
+ ZOrder -5
+ Port "5"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "q"
+ SID "8::22"
+ Position [20, 281, 40, 299]
+ ZOrder -6
+ Port "6"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "r"
+ SID "8::23"
+ Position [20, 316, 40, 334]
+ ZOrder -7
+ Port "7"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "V"
+ SID "8::24"
+ Position [20, 351, 40, 369]
+ ZOrder -8
+ Port "8"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "alpha_dot"
+ SID "8::25"
+ Position [20, 386, 40, 404]
+ ZOrder -9
+ Port "9"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "delta_e"
+ SID "8::27"
+ Position [20, 426, 40, 444]
+ ZOrder -10
+ Port "10"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "delta_a"
+ SID "8::28"
+ Position [20, 461, 40, 479]
+ ZOrder -11
+ Port "11"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "delta_r"
+ SID "8::29"
+ Position [20, 496, 40, 514]
+ ZOrder -12
+ Port "12"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Inport
+ Name "thrust"
+ SID "8::30"
+ Position [20, 531, 40, 549]
+ ZOrder -13
+ Port "13"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Demux
+ Name " Demux "
+ SID "8::32"
+ Ports [1, 1]
+ Position [270, 230, 320, 270]
+ ZOrder 2
+ Outputs "1"
+ }
+ Block {
+ BlockType S-Function
+ Name " SFunction "
+ SID "8::31"
+ Tag "Stateflow S-Function Cessna_6DOF_Wind_trim 2"
+ Ports [13, 3]
+ Position [180, 90, 230, 370]
+ ZOrder 1
+ FunctionName "sf_sfun"
+ PortCounts "[13 3]"
+ EnableBusSupport on
+ Port {
+ PortNumber 2
+ Name "F"
+ RTWStorageClass "Auto"
+ DataLoggingNameMode "SignalName"
+ }
+ Port {
+ PortNumber 3
+ Name "M"
+ RTWStorageClass "Auto"
+ DataLoggingNameMode "SignalName"
+ }
+ }
+ Block {
+ BlockType Terminator
+ Name " Terminator "
+ SID "8::33"
+ Position [460, 241, 480, 259]
+ ZOrder 3
+ }
+ Block {
+ BlockType Outport
+ Name "F"
+ SID "8::5"
+ Position [460, 101, 480, 119]
+ ZOrder -17
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "M"
+ SID "8::26"
+ Position [460, 136, 480, 154]
+ ZOrder -18
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Line {
+ ZOrder 18
+ SrcBlock "alpha"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 1
+ }
+ Line {
+ ZOrder 19
+ SrcBlock "beta"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 2
+ }
+ Line {
+ ZOrder 20
+ SrcBlock "gamma"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 3
+ }
+ Line {
+ ZOrder 21
+ SrcBlock "mu"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 4
+ }
+ Line {
+ ZOrder 22
+ SrcBlock "p"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 5
+ }
+ Line {
+ ZOrder 23
+ SrcBlock "q"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 6
+ }
+ Line {
+ ZOrder 24
+ SrcBlock "r"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 7
+ }
+ Line {
+ ZOrder 25
+ SrcBlock "V"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 8
+ }
+ Line {
+ ZOrder 26
+ SrcBlock "alpha_dot"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 9
+ }
+ Line {
+ ZOrder 27
+ SrcBlock "delta_e"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 10
+ }
+ Line {
+ ZOrder 28
+ SrcBlock "delta_a"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 11
+ }
+ Line {
+ ZOrder 29
+ SrcBlock "delta_r"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 12
+ }
+ Line {
+ ZOrder 30
+ SrcBlock "thrust"
+ SrcPort 1
+ DstBlock " SFunction "
+ DstPort 13
+ }
+ Line {
+ Name "F"
+ ZOrder 31
+ Labels [0, 0]
+ SrcBlock " SFunction "
+ SrcPort 2
+ DstBlock "F"
+ DstPort 1
+ }
+ Line {
+ Name "M"
+ ZOrder 32
+ Labels [0, 0]
+ SrcBlock " SFunction "
+ SrcPort 3
+ DstBlock "M"
+ DstPort 1
+ }
+ Line {
+ ZOrder 33
+ SrcBlock " Demux "
+ SrcPort 1
+ DstBlock " Terminator "
+ DstPort 1
+ }
+ Line {
+ ZOrder 34
+ SrcBlock " SFunction "
+ SrcPort 1
+ DstBlock " Demux "
+ DstPort 1
+ }
+ }
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator"
+ SID "13"
+ Position [565, 225, 585, 245]
+ ZOrder -13
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator1"
+ SID "14"
+ Position [565, 285, 585, 305]
+ ZOrder -14
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator2"
+ SID "15"
+ Position [565, 405, 585, 425]
+ ZOrder -15
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator3"
+ SID "16"
+ Position [610, 385, 630, 405]
+ ZOrder -16
+ }
+ Block {
+ BlockType Terminator
+ Name "Terminator4"
+ SID "17"
+ Position [565, 345, 585, 365]
+ ZOrder -17
+ }
+ Block {
+ BlockType Outport
+ Name "Out1"
+ SID "22"
+ Position [910, 113, 940, 127]
+ ZOrder -18
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out2"
+ SID "23"
+ Position [910, 143, 940, 157]
+ ZOrder -19
+ Port "2"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out3"
+ SID "24"
+ Position [910, 173, 940, 187]
+ ZOrder -20
+ Port "3"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out4"
+ SID "25"
+ Position [655, 113, 685, 127]
+ ZOrder -21
+ Port "4"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out5"
+ SID "26"
+ Position [655, 143, 685, 157]
+ ZOrder -22
+ Port "5"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out6"
+ SID "27"
+ Position [655, 173, 685, 187]
+ ZOrder -23
+ Port "6"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out7"
+ SID "28"
+ Position [705, 113, 735, 127]
+ ZOrder -24
+ Port "7"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out8"
+ SID "29"
+ Position [705, 143, 735, 157]
+ ZOrder -25
+ Port "8"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out9"
+ SID "30"
+ Position [705, 173, 735, 187]
+ ZOrder -26
+ Port "9"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out10"
+ SID "31"
+ Position [775, 483, 805, 497]
+ ZOrder -27
+ Port "10"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out11"
+ SID "32"
+ Position [775, 513, 805, 527]
+ ZOrder -28
+ Port "11"
+ IconDisplay "Port number"
+ }
+ Block {
+ BlockType Outport
+ Name "Out12"
+ SID "33"
+ Position [775, 543, 805, 557]
+ ZOrder -29
+ Port "12"
+ IconDisplay "Port number"
+ }
+ Line {
+ ZOrder 1
+ SrcBlock "MATLAB Function"
+ SrcPort 1
+ Points [0, -65; -730, 0]
+ DstBlock "6DoF Wind (Wind Angles)"
+ DstPort 1
+ }
+ Line {
+ ZOrder 2
+ SrcBlock "MATLAB Function"
+ SrcPort 2
+ Points [0, 65; -730, 0]
+ DstBlock "6DoF Wind (Wind Angles)"
+ DstPort 2
+ }
+ Line {
+ ZOrder 3
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 2
+ DstBlock "Demux"
+ DstPort 1
+ }
+ Line {
+ ZOrder 4
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 1
+ DstBlock "Terminator"
+ DstPort 1
+ }
+ Line {
+ ZOrder 5
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 3
+ DstBlock "Demux1"
+ DstPort 1
+ }
+ Line {
+ ZOrder 6
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 4
+ DstBlock "Terminator1"
+ DstPort 1
+ }
+ Line {
+ ZOrder 7
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 10
+ DstBlock "Terminator2"
+ DstPort 1
+ }
+ Line {
+ ZOrder 8
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 9
+ DstBlock "Terminator3"
+ DstPort 1
+ }
+ Line {
+ ZOrder 9
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 8
+ DstBlock "Demux2"
+ DstPort 1
+ }
+ Line {
+ ZOrder 10
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 7
+ DstBlock "Terminator4"
+ DstPort 1
+ }
+ Line {
+ ZOrder 11
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 6
+ Points [65, 0]
+ DstBlock "Demux3"
+ DstPort 1
+ }
+ Line {
+ ZOrder 12
+ SrcBlock "Demux3"
+ SrcPort 1
+ Points [165, 0]
+ Branch {
+ ZOrder 13
+ Points [0, 80]
+ DstBlock "Derivative"
+ DstPort 1
+ }
+ Branch {
+ ZOrder 14
+ Points [0, -120]
+ Branch {
+ ZOrder 15
+ Points [165, 0]
+ DstBlock "MATLAB Function"
+ DstPort 1
+ }
+ Branch {
+ ZOrder 16
+ Points [0, -75]
+ DstBlock "Out2"
+ DstPort 1
+ }
+ }
+ }
+ Line {
+ ZOrder 17
+ SrcBlock "Demux2"
+ SrcPort 1
+ Points [15, 0; 0, -65]
+ Branch {
+ ZOrder 18
+ DstBlock "MATLAB Function"
+ DstPort 5
+ }
+ Branch {
+ ZOrder 19
+ Points [-185, 0]
+ DstBlock "Out10"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 20
+ SrcBlock "Demux2"
+ SrcPort 2
+ Points [25, 0; 0, -60]
+ Branch {
+ ZOrder 21
+ DstBlock "MATLAB Function"
+ DstPort 6
+ }
+ Branch {
+ ZOrder 22
+ Points [-195, 0]
+ DstBlock "Out11"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 23
+ SrcBlock "Demux2"
+ SrcPort 3
+ Points [30, 0; 0, -55]
+ Branch {
+ ZOrder 24
+ DstBlock "MATLAB Function"
+ DstPort 7
+ }
+ Branch {
+ ZOrder 25
+ Points [-200, 0]
+ DstBlock "Out12"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 26
+ SrcBlock "Demux3"
+ SrcPort 2
+ Points [285, 0; 0, -115]
+ Branch {
+ ZOrder 27
+ Points [45, 0]
+ DstBlock "MATLAB Function"
+ DstPort 2
+ }
+ Branch {
+ ZOrder 28
+ Points [-20, 0]
+ DstBlock "Out3"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 29
+ SrcBlock "Demux1"
+ SrcPort 1
+ Points [15, 0]
+ Branch {
+ ZOrder 30
+ Points [270, 0]
+ DstBlock "MATLAB Function"
+ DstPort 4
+ }
+ Branch {
+ ZOrder 31
+ DstBlock "Out7"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 32
+ SrcBlock "Demux1"
+ SrcPort 2
+ Points [285, 0]
+ DstBlock "MATLAB Function"
+ DstPort 3
+ }
+ Line {
+ ZOrder 33
+ SrcBlock "6DoF Wind (Wind Angles)"
+ SrcPort 5
+ Points [0, 10]
+ DstBlock "Fcn"
+ DstPort 1
+ }
+ Line {
+ ZOrder 34
+ SrcBlock "Fcn"
+ SrcPort 1
+ Points [30, 0]
+ Branch {
+ ZOrder 35
+ Points [115, 0; 0, 20]
+ DstBlock "MATLAB Function"
+ DstPort 8
+ }
+ Branch {
+ ZOrder 36
+ Points [0, -205]
+ DstBlock "Out1"
+ DstPort 1
+ }
+ }
+ Line {
+ ZOrder 37
+ SrcBlock "Derivative"
+ SrcPort 1
+ Points [20, 0]
+ DstBlock "MATLAB Function"
+ DstPort 9
+ }
+ Line {
+ ZOrder 38
+ SrcBlock "In1"
+ SrcPort 1
+ Points [15, 0]
+ DstBlock "MATLAB Function"
+ DstPort 10
+ }
+ Line {
+ ZOrder 39
+ SrcBlock "In2"
+ SrcPort 1
+ Points [15, 0]
+ DstBlock "MATLAB Function"
+ DstPort 11
+ }
+ Line {
+ ZOrder 40
+ SrcBlock "In3"
+ SrcPort 1
+ Points [15, 0]
+ DstBlock "MATLAB Function"
+ DstPort 12
+ }
+ Line {
+ ZOrder 41
+ SrcBlock "In4"
+ SrcPort 1
+ Points [15, 0]
+ DstBlock "MATLAB Function"
+ DstPort 13
+ }
+ Line {
+ ZOrder 42
+ SrcBlock "Demux"
+ SrcPort 1
+ Points [10, 0]
+ DstBlock "Out4"
+ DstPort 1
+ }
+ Line {
+ ZOrder 43
+ SrcBlock "Demux"
+ SrcPort 2
+ Points [10, 0]
+ DstBlock "Out5"
+ DstPort 1
+ }
+ Line {
+ ZOrder 44
+ SrcBlock "Demux"
+ SrcPort 3
+ Points [10, 0]
+ DstBlock "Out6"
+ DstPort 1
+ }
+ Line {
+ ZOrder 45
+ SrcBlock "Demux1"
+ SrcPort 3
+ Points [15, 0; 0, -105]
+ Branch {
+ ZOrder 46
+ DstBlock "Out9"
+ DstPort 1
+ }
+ Branch {
+ ZOrder 47
+ DstBlock "Out8"
+ DstPort 1
+ }
+ }
+ }
+}
+#Finite State Machines
+#
+# Stateflow Version 8.1 (R2014a) dated Feb 8 2014, 02:29:12
+#
+#
+Stateflow {
+ machine {
+ id 1
+ name "Cessna_6DOF_Wind_trim"
+ created "23-Dec-2014 15:02:14"
+ isLibrary 0
+ firstTarget 22
+ sfVersion 76014001.002
+ }
+ chart {
+ id 2
+ name "MATLAB Function"
+ windowPosition [421 52 213 385]
+ viewLimits [0 156.75 0 153.75]
+ screen [1 1 1366 768 1.333333333333333]
+ treeNode [0 3 0 0]
+ firstTransition 20
+ firstJunction 19
+ viewObj 2
+ visible 1
+ machine 1
+ subviewS {
+ }
+ ssIdHighWaterMark 18
+ decomposition CLUSTER_CHART
+ type EML_CHART
+ firstData 4
+ chartFileNumber 2
+ disableImplicitCasting 1
+ eml {
+ name "Force_Cessna"
+ }
+ }
+ state {
+ id 3
+ labelString "eML_blk_kernel()"
+ position [18 64.5 118 66]
+ fontSize 12
+ chart 2
+ treeNode [2 0 0 0]
+ superState SUBCHART
+ subviewer 2
+ ssIdNumber 1
+ type FUNC_STATE
+ decomposition CLUSTER_STATE
+ eml {
+ isEML 1
+ script "function [F, M] = Force_Cessna(alpha, beta, gamma, mu, p, q, r, V, alpha_dot, delta_e, delta_a, d"
+ "elta_r, thrust)\n\ng = 9.8;\nrho = 1.225;\n\nm = 1043.26;\nC_bar = 1.493;\nb = 10.911;\nS_ref = 16.1651;\n\nC_L_"
+ "0 = 0.25;\nC_L_alpha = 4.47;\nC_L_q = 1.7;\nC_L_delta_e = 0.3476;\n\nC_D_0 = 0.036;\nC_D_alpha = 0.13;\nC_D_beta"
+ " = 0.17;\nC_D_delta_e = 0.06;\n\nC_Y_beta = -0.31;\nC_Y_p = -0.037;\nC_Y_r = 0.21;\nC_Y_delta_a = 0;\n\nC_l_beta"
+ " = -0.089;\nC_l_p = -0.47;\nC_l_r = 0.096;\nC_l_delta_a = -0.09;\nC_l_delta_r = 0.0147;\n\nC_M_0 = -0.02;\nC_M_a"
+ "lpha = -1.8;\nC_M_alpha_dot = -12.4;\nC_M_delta_e = -1.28;\n\nC_N_beta = 0.065;\nC_N_p = -0.03;\nC_N_r = -0.99;\n"
+ "C_N_delta_a = -0.0053;\nC_N_delta_r = -0.0657;\n\n% delta_e = -0.0304;\n% delta_a = 0;\n% delta_r = 0;\n% thrust"
+ " = 1397;\n\nC_L = C_L_0 + C_L_alpha*alpha + C_L_q*(q*C_bar/(2*V)) + C_L_delta_e*delta_e;\nC_D = C_D_0 + C_D_alph"
+ "a*abs(alpha) + C_D_beta*abs(beta) + C_D_delta_e*abs(delta_e);\nC_Y = C_Y_beta*beta + C_Y_p*(p*b/(2*V)) + C_Y_r*("
+ "r*b/(2*V)) + C_Y_delta_a*delta_a;\n\nC_l = C_l_beta*beta + C_l_p*(p*b/(2*V)) + C_l_r*(r*b/(2*V)) + C_l_delta_a*d"
+ "elta_a + C_l_delta_r*delta_r;\nC_M = C_M_0 + C_M_alpha*alpha + C_M_alpha_dot*(alpha_dot*C_bar/(2*V)) + C_M_delta"
+ "_e*delta_e;\nC_N = C_N_beta*beta + C_N_p*(p*b/(2*V)) + C_N_r*(r*b/(2*V)) + C_N_delta_a*delta_a + C_N_delta_r*del"
+ "ta_r;\n\nF = zeros(3,1);\nM = zeros(3,1);\n\nq_bar = 0.5*rho*V*V;\n\nF(1,1) = q_bar*S_ref*(-C_D*cos(beta) + C_Y*"
+ "sin(beta)) - m*g*sin(gamma) + thrust*cos(alpha)*cos(beta);\nF(2,1) = q_bar*S_ref*(C_D*sin(beta) + C_Y*sin(beta))"
+ " - m*g*cos(gamma)*sin(mu) - thrust*cos(alpha)*sin(beta);\nF(3,1) = q_bar*S_ref*(-C_L) + m*g*cos(gamma)*cos(mu) -"
+ " thrust*sin(alpha);\n\nM(1,1) = q_bar*S_ref*b*C_l;\nM(2,1) = q_bar*S_ref*C_bar*C_M;\nM(3,1) = q_bar*S_ref*b*C_N;"
+ editorLayout "100 M4x1[205 227 1382 754]"
+ }
+ }
+ data {
+ id 4
+ ssIdNumber 4
+ name "alpha"
+ linkNode [2 0 5]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ }
+ complexity SF_COMPLEX_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 5
+ ssIdNumber 5
+ name "F"
+ linkNode [2 4 6]
+ scope OUTPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_NO
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 6
+ ssIdNumber 6
+ name "beta"
+ linkNode [2 5 7]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 7
+ ssIdNumber 7
+ name "gamma"
+ linkNode [2 6 8]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 8
+ ssIdNumber 8
+ name "mu"
+ linkNode [2 7 9]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 9
+ ssIdNumber 9
+ name "p"
+ linkNode [2 8 10]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 10
+ ssIdNumber 10
+ name "q"
+ linkNode [2 9 11]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 11
+ ssIdNumber 11
+ name "r"
+ linkNode [2 10 12]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 12
+ ssIdNumber 12
+ name "V"
+ linkNode [2 11 13]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 13
+ ssIdNumber 13
+ name "alpha_dot"
+ linkNode [2 12 14]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 14
+ ssIdNumber 14
+ name "M"
+ linkNode [2 13 15]
+ scope OUTPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_NO
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 15
+ ssIdNumber 15
+ name "delta_e"
+ linkNode [2 14 16]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 16
+ ssIdNumber 16
+ name "delta_a"
+ linkNode [2 15 17]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 17
+ ssIdNumber 17
+ name "delta_r"
+ linkNode [2 16 18]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ data {
+ id 18
+ ssIdNumber 18
+ name "thrust"
+ linkNode [2 17 0]
+ scope INPUT_DATA
+ machine 1
+ props {
+ array {
+ size "-1"
+ }
+ type {
+ method SF_INHERITED_TYPE
+ primitive SF_DOUBLE_TYPE
+ isSigned 1
+ wordLength "16"
+ }
+ complexity SF_COMPLEX_INHERITED
+ frame SF_FRAME_INHERITED
+ }
+ dataType "Inherit: Same as Simulink"
+ }
+ junction {
+ id 19
+ position [23.5747 49.5747 7]
+ chart 2
+ linkNode [2 0 0]
+ subviewer 2
+ ssIdNumber 3
+ type CONNECTIVE_JUNCTION
+ }
+ transition {
+ id 20
+ labelString "{eML_blk_kernel();}"
+ labelPosition [36.125 25.875 102.544 14.964]
+ fontSize 12
+ src {
+ intersection [0 0 1 0 23.5747 14.625 0 0]
+ }
+ dst {
+ id 19
+ intersection [1 0 -1 0 23.5747 42.5747 0 0]
+ }
+ midPoint [23.5747 24.9468]
+ chart 2
+ linkNode [2 0 0]
+ dataLimits [21.175 25.975 14.625 42.575]
+ subviewer 2
+ drawStyle SMART
+ slide {
+ sticky BOTH_STICK
+ }
+ executionOrder 1
+ ssIdNumber 2
+ }
+ instance {
+ id 21
+ name "MATLAB Function"
+ machine 1
+ chart 2
+ }
+ target {
+ id 22
+ name "sfun"
+ description "Default Simulink S-Function Target."
+ machine 1
+ linkNode [1 0 0]
+ }
+}
diff --git a/Prof_Arya/Cessna_6DOF_sfun.mexw64 b/Prof_Arya/Cessna_6DOF_sfun.mexw64 new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Prof_Arya/Cessna_6DOF_sfun.mexw64 diff --git a/Prof_Arya/Cessna_6DOF_trim_ha.slx b/Prof_Arya/Cessna_6DOF_trim_ha.slx Binary files differnew file mode 100644 index 0000000..77111ea --- /dev/null +++ b/Prof_Arya/Cessna_6DOF_trim_ha.slx diff --git a/Prof_Arya/Comp_LinMod.m b/Prof_Arya/Comp_LinMod.m new file mode 100644 index 0000000..861e759 --- /dev/null +++ b/Prof_Arya/Comp_LinMod.m @@ -0,0 +1,32 @@ +[A, B, C, D] = linmod('Cessna_6DOF_trim');
+
+A = [A(1,1) A(1,3) A(1,5) A(1,11);
+ A(3,1) A(3,3) A(3,5) A(3,11);
+ A(5,1) A(5,3) A(5,5) A(5,11);
+ A(11,1) A(11,3) A(11,5) A(11,11)];
+
+B = [B(1,1) B(1,4);
+ B(3,1) B(3,4);
+ B(5,1) B(5,4);
+ B(11,1) B(11,4)];
+
+X(1:4,1) = [u, w, theta, q];
+
+for kk = 1:10/0.001
+
+ X(:,kk+1) = X(:,kk) + (A*(X(:,kk) - X(:,1)) + B*[(U(kk,1) + 0.0303) 0]')*0.001;
+
+end
+
+plot(X(1,:))
+hold on
+plot(V_arr.*cos(alpha_arr),'--')
+legend('Linearized','Nonlinear')
+xlabel('u (m/s)')
+
+figure
+plot(X(2,:))
+hold on
+plot(alpha_arr*180/pi,'--')
+legend('Linearized','Nonlinear')
+xlabel('alpha (degree)')
\ No newline at end of file diff --git a/Prof_Arya/Initial_Cessna.m b/Prof_Arya/Initial_Cessna.m new file mode 100644 index 0000000..3fd510d --- /dev/null +++ b/Prof_Arya/Initial_Cessna.m @@ -0,0 +1,93 @@ +clear all
+close all
+clc
+
+global C_L_0 C_L_alpha C_L_q C_L_delta_e
+global C_D_0 C_D_alpha C_D_beta C_D_delta_e k
+global C_Y_beta C_Y_p C_Y_r C_Y_delta_a
+global C_l_beta C_l_p C_l_r C_l_delta_a C_l_delta_r
+global C_M_0 C_M_alpha C_M_alpha_dot C_M_delta_e
+global C_N_beta C_N_p C_N_r C_N_delta_a C_N_delta_r
+
+global m C_bar b S_ref
+global I_xx I_yy I_zz I_xy I_yz I_xz
+
+g = 9.8;
+rho = 1.225;
+
+m = 1043.26;
+C_bar = 1.493;
+b = 10.911;
+S_ref = 16.1651;
+
+I_xx = 1285.31;
+I_yy = 1824.93;
+I_zz = 2666.893;
+I_xz = 0;
+I_yz = 0;
+I_xy = 0;
+
+C_L_0 = 0.25;
+C_L_alpha = 4.47;
+C_L_q = 1.7;
+C_L_delta_e = 0.3476;
+
+C_D_0 = 0.036;
+k = 0.3;
+% C_D_alpha = 0.13;
+% C_D_beta = 0.17;
+% C_D_delta_e = 0.06;
+
+C_Y_beta = -0.31;
+C_Y_p = -0.037;
+C_Y_r = 0.21;
+C_Y_delta_a = 0;
+
+C_l_beta = -0.089;
+C_l_p = -0.47;
+C_l_r = 0.096;
+C_l_delta_a = -0.09;
+C_l_delta_r = 0.0147;
+
+C_M_0 = -0.02;
+C_M_alpha = -1.8;
+C_M_alpha_dot = -12.4;
+C_M_delta_e = -1.28;
+
+C_N_beta = 0.065;
+C_N_p = -0.03;
+C_N_r = -0.99;
+C_N_delta_a = -0.0053;
+C_N_delta_r = -0.0657;
+
+V_trim = 60;
+V = 60;
+
+alpha_delta_e_thrust = fsolve(@Trim_Cessna_Body, [0.035 -0.065 1500]);
+
+alpha = alpha_delta_e_thrust(1,1);
+delta_e = alpha_delta_e_thrust(1,2);
+thrust = alpha_delta_e_thrust(1,3);
+
+x = 0;
+y = 0;
+z = 0;
+
+delta_a = 0;
+delta_r = 0;
+beta = 0;
+
+u = V_trim*cos(alpha)*cos(beta);
+v = V_trim*sin(beta);
+w = V_trim*sin(alpha)*cos(beta);
+
+phi = 0;
+theta = alpha;
+psi = 0;
+
+p = 0;
+q = 0;
+r = 0;
+
+statenames = getstatenames('Cessna_6DOF_trim_ha');
+display(statenames)
\ No newline at end of file diff --git a/Prof_Arya/Linearisation_LinMod.m b/Prof_Arya/Linearisation_LinMod.m new file mode 100644 index 0000000..05123d9 --- /dev/null +++ b/Prof_Arya/Linearisation_LinMod.m @@ -0,0 +1,16 @@ +[A, B, C, D] = linmod('Cessna_6DOF_Wind_trim'); % V gamma q alpha
+
+A_lon = [A(1,1) A(1,8) A(1,11) A(1,2);
+ A(8,1) A(8,8) A(8,11) A(8,2);
+ A(11,1) A(11,8) A(11,11) A(11,2);
+ A(2,1) A(2,8) A(2,11) A(2,2)];
+
+A_phug = [A(1,1) A(1,8);
+ A(8,1) A(8,8)];
+
+A_short = [A(11,11) A(11,2);
+ A(2,11) A(2,2)];
+
+%display(eig(A_lon))
+%display(eig(A_phug))
+%display(eig(A_short))
\ No newline at end of file diff --git a/Prof_Arya/Trim_Cessna_Body.m b/Prof_Arya/Trim_Cessna_Body.m new file mode 100644 index 0000000..79be1d0 --- /dev/null +++ b/Prof_Arya/Trim_Cessna_Body.m @@ -0,0 +1,28 @@ +function F = Trim_Cessna_Body(x)
+
+m = 1043.26;
+S_ref = 16.1651;
+d = 1.225;
+V = 60;
+g = 9.8;
+
+C_L_0 = 0.25;
+C_L_alpha = 4.47;
+C_L_delta_e = 0.3476;
+
+C_D_0 = 0.036;
+C_D_alpha = 0.13;
+C_D_delta_e = 0.06;
+
+C_M_0 = -0.02;
+C_M_alpha = -1.8;
+C_M_delta_e = -1.28;
+
+C_L = C_L_0 + C_L_alpha*x(1) + C_L_delta_e*x(2);
+% C_D = C_D_0 + C_D_alpha*abs(x(1)) + C_D_delta_e*abs(x(2));
+C_D = C_D_0 + 0.3*C_L^2;
+C_M = C_M_0 + C_M_alpha*x(1) + C_M_delta_e*x(2);
+
+F = [C_M;
+ 0.5*d*V*V*S_ref*(-C_D*cos(x(1)) + C_L*sin(x(1))) - m*g*sin(x(1)) + x(3);
+ 0.5*d*V*V*S_ref*(-C_D*sin(x(1)) - C_L*cos(x(1))) + m*g*cos(x(1))];
\ No newline at end of file diff --git a/Prof_Arya/Trim_Function_Cessna.m b/Prof_Arya/Trim_Function_Cessna.m new file mode 100644 index 0000000..dea77e3 --- /dev/null +++ b/Prof_Arya/Trim_Function_Cessna.m @@ -0,0 +1,26 @@ + % u v w phi theta psi x y z p q r
+ % 1 2 3 4 5 6 7 8 9 10 11 12
+X_Guess = [60 0 0 0 0 0 0 0 0 0 0 0]';
+
+ % e a r thrust
+ % 1 2 3 4
+U_guess = [0 0 0 1000]';
+
+ % V alpha beta phi theta psi x y z p q r gamma
+ % 1 2 3 4 5 6 7 8 9 10 11 12 13
+Y_guess = [60 0 0 0 0 0 0 0 0 0 0 0 0]';
+
+Dx_guess = [0 0 0 0 0 0 0 0 0 0 0 0]';
+
+Ix = [2 4 6 10 11 12]';
+Iu = [2 3]';
+Iy = [1 3 4 6 10 11 12 13]';
+
+Idx = [1 2 3 4 5 6 8 9 10 11 12]';
+
+[x1,u1,y1,dx1] = trim('Cessna_6DOF_trim',X_Guess,U_guess,Y_guess,Ix,Iu,Iy,Dx_guess,Idx);
+
+display(x1)
+display(y1)
+display(u1)
+display(dx1)
\ No newline at end of file diff --git a/Prof_Arya/[Content_Types].xml b/Prof_Arya/[Content_Types].xml new file mode 100644 index 0000000..91db7d6 --- /dev/null +++ b/Prof_Arya/[Content_Types].xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default ContentType="image/png" Extension="png"/><Default ContentType="application/vnd.openxmlformats-package.relationships+xml" Extension="rels"/><Default ContentType="application/vnd.mathworks.simulink.mdl+xml" Extension="xml"/><Override ContentType="application/vnd.openxmlformats-package.core-properties+xml" PartName="/metadata/coreProperties.xml"/></Types>
\ No newline at end of file diff --git a/Prof_Arya/_rels/.rels b/Prof_Arya/_rels/.rels new file mode 100644 index 0000000..2269369 --- /dev/null +++ b/Prof_Arya/_rels/.rels @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="Thumbnail" Target="metadata/thumbnail.png" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/thumbnail"/><Relationship Id="blockDiagram" Target="simulink/blockdiagram.xml" Type="http://schemas.mathworks.com/simulink/2010/relationships/blockDiagram"/><Relationship Id="coreprops" Target="metadata/coreProperties.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties"/></Relationships>
\ No newline at end of file diff --git a/Prof_Arya/getstatenames.m b/Prof_Arya/getstatenames.m new file mode 100644 index 0000000..a98493f --- /dev/null +++ b/Prof_Arya/getstatenames.m @@ -0,0 +1,47 @@ +function [statenames, stateblocks] = getstatenames(mdl)
+%% GETSTATENAMES
+%
+% This function will identify the states of a given simulink model. A mapping
+% to blockname will be assumed for this example. It is up to the user to map
+% states as they would wish or simply to use Simulink's definition of full block
+% path if they would like.
+%
+% Simulink uses full block path as a manner to assure uniqueness, allow
+% for scalability, and always have clear meaning. It is realized that
+% long block paths can result from large, highly nested models,
+% yet if automated scripting is used for manipulation, then
+% this is seen as an effective, consistant, and error resistant approach.
+% Especially when combined with a user defined mapping to things that are
+% shorter and can comply with company model styleguides and conventions.
+%
+% This file will additionally remove any new line characters in the
+% statename and blockpath.
+
+% Copyright 2004 - 2010 The MathWorks, Inc.
+
+%% Extract State Information
+% extract the state information (see <http://www.mathworks.com/access/helpdesk/help/toolbox/simulink/slref/model_cmd.html MODEL command>
+% for more info)
+% This is one main command that can be leveraged by users in their own
+% scripts. If you walk away with anything remember this one, and bookmark
+% the above page in your help browsers.
+%
+% It is important to realize that Simulink uses complete block path
+% to identify unique states within a Simulink model. It is the stateblocks
+% variable that is returned by the following command the shows what
+% Simulink sees as the continuous and discrete states in a model.
+[sys,x0,stateblocks]=feval(mdl,[],[],[],0);
+
+%% Example of State Mapping to Block Name
+% Here is one example of user defined state mapping.
+% Let's extract the block name from the handle to the block
+% This assumes you name the block what you would name the state. Also note
+% that this may not be unique (ie blocks with state within libraries will all
+% return the same thing for each instance).
+statenames = get_param(stateblocks,'Name');
+
+%% Remove New Linesn within names
+% lets remove the newline characters for ease on the eyes
+statenames = regexprep(statenames,'\n',' ');
+stateblocks = regexprep(stateblocks,'\n',' ');
+
diff --git a/Prof_Arya/lineariz.zip b/Prof_Arya/lineariz.zip Binary files differnew file mode 100644 index 0000000..8da4868 --- /dev/null +++ b/Prof_Arya/lineariz.zip diff --git a/Prof_Arya/metadata/coreProperties.xml b/Prof_Arya/metadata/coreProperties.xml new file mode 100644 index 0000000..3383789 --- /dev/null +++ b/Prof_Arya/metadata/coreProperties.xml @@ -0,0 +1 @@ +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><cp:category>Model</cp:category><dcterms:created xsi:type="dcterms:W3CDTF">2014-12-18T10:03:47Z</dcterms:created><dc:creator>Pranav</dc:creator><dc:description></dc:description><cp:lastModifiedBy>Prof.H.Arya</cp:lastModifiedBy><dcterms:modified xsi:type="dcterms:W3CDTF">2016-04-20T12:05:18Z</dcterms:modified><cp:revision>1.107</cp:revision><cp:version>R2012b</cp:version></cp:coreProperties>
\ No newline at end of file diff --git a/Prof_Arya/metadata/thumbnail.png b/Prof_Arya/metadata/thumbnail.png Binary files differnew file mode 100644 index 0000000..976194d --- /dev/null +++ b/Prof_Arya/metadata/thumbnail.png diff --git a/Prof_Arya/simulink/blockdiagram.xml b/Prof_Arya/simulink/blockdiagram.xml new file mode 100644 index 0000000..500a237 --- /dev/null +++ b/Prof_Arya/simulink/blockdiagram.xml @@ -0,0 +1,1840 @@ +<?xml version="1.0" encoding="utf-8"?>
+<ModelInformation Version="0.9">
+ <Model>
+ <GraphicalInterface>
+ <P Name="NumRootInports">4</P>
+ <Inport>
+ <P Name="BusObject"></P>
+ <P Name="Name">In1</P>
+ </Inport>
+ <Inport>
+ <P Name="BusObject"></P>
+ <P Name="Name">In2</P>
+ </Inport>
+ <Inport>
+ <P Name="BusObject"></P>
+ <P Name="Name">In3</P>
+ </Inport>
+ <Inport>
+ <P Name="BusObject"></P>
+ <P Name="Name">In4</P>
+ </Inport>
+ <P Name="NumRootOutports">13</P>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out1</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out2</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out3</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out4</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out5</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out6</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out7</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out8</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out9</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out10</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out11</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out12</P>
+ </Outport>
+ <Outport>
+ <P Name="BusObject"></P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="Name">Out13</P>
+ </Outport>
+ <P Name="ParameterArgumentNames"></P>
+ <P Name="ComputedModelVersion">1.107</P>
+ <P Name="NumModelReferences">0</P>
+ <P Name="NumTestPointedSignals">0</P>
+ </GraphicalInterface>
+ <P Name="SavedCharacterEncoding">windows-1252</P>
+ <Object PropName="HDLParams" ObjectID="1" ClassName="slprops.hdlmdlprops">
+ <Array PropName="mdlProps" Type="Cell" Dimension="1*2">
+ <Cell Class="char">HDLSubsystem</Cell>
+ <Cell Class="char">Cessna_6DOF_trim</Cell>
+ </Array>
+ </Object>
+ <P Name="SaveDefaultBlockParams">on</P>
+ <P Name="ScopeRefreshTime">0.035000</P>
+ <P Name="OverrideScopeRefreshTime">on</P>
+ <P Name="DisableAllScopes">off</P>
+ <P Name="DataTypeOverride">UseLocalSettings</P>
+ <P Name="DataTypeOverrideAppliesTo">AllNumericTypes</P>
+ <P Name="MinMaxOverflowLogging">UseLocalSettings</P>
+ <P Name="MinMaxOverflowArchiveMode">Overwrite</P>
+ <P Name="FPTRunName">Run 1</P>
+ <P Name="MaxMDLFileLineLength">120</P>
+ <Object PropName="BdWindowsInfo" ObjectID="2" ClassName="Simulink.BDWindowsInfo">
+ <Object PropName="WindowsInfo" ObjectID="3" ClassName="Simulink.WindowInfo">
+ <P Name="IsActive" Class="logical">1</P>
+ <P Name="Location" Class="double">[-8.0, -8.0, 1378.0, 754.0]</P>
+ <Object PropName="ModelBrowserInfo" ObjectID="4" ClassName="Simulink.ModelBrowserInfo">
+ <P Name="Visible" Class="logical">0</P>
+ <P Name="DockPosition" Class="char">Left</P>
+ <P Name="Width" Class="int32">50</P>
+ <P Name="Height" Class="int32">50</P>
+ <P Name="Filter" Class="int32">9</P>
+ </Object>
+ <Object PropName="ExplorerBarInfo" ObjectID="5" ClassName="Simulink.ExplorerBarInfo">
+ <P Name="Visible" Class="logical">1</P>
+ </Object>
+ <Object PropName="EditorsInfo" ObjectID="6" ClassName="Simulink.EditorInfo">
+ <P Name="IsActive" Class="logical">1</P>
+ <P Name="ViewObjType" Class="char">SimulinkTopLevel</P>
+ <P Name="LoadSaveID" Class="char">0</P>
+ <P Name="Extents" Class="double">[1326.0, 578.0]</P>
+ <P Name="ZoomFactor" Class="double">1.0</P>
+ <P Name="Offset" Class="double">[0.0, 0.0]</P>
+ </Object>
+ </Object>
+ </Object>
+ <ConfigManagerSettings>
+ <P Name="UpdateHistory">UpdateHistoryNever</P>
+ <P Name="ModifiedByFormat">%<Auto></P>
+ <P Name="ModifiedDateFormat">%<Auto></P>
+ <P Name="RTWModifiedTimeStamp">383054472</P>
+ <P Name="ModelVersionFormat">1.%<AutoIncrement:107></P>
+ <P Name="ConfigurationManager">none</P>
+ </ConfigManagerSettings>
+ <EditorSettings>
+ <P Name="SampleTimeColors">off</P>
+ <P Name="SampleTimeAnnotations">off</P>
+ <P Name="LibraryLinkDisplay">none</P>
+ <P Name="WideLines">off</P>
+ <P Name="ShowLineDimensions">off</P>
+ <P Name="ShowPortDataTypes">off</P>
+ <P Name="ShowDesignRanges">off</P>
+ <P Name="ShowLoopsOnError">on</P>
+ <P Name="IgnoreBidirectionalLines">off</P>
+ <P Name="ShowStorageClass">off</P>
+ <P Name="ShowTestPointIcons">on</P>
+ <P Name="ShowSignalResolutionIcons">on</P>
+ <P Name="ShowViewerIcons">on</P>
+ <P Name="SortedOrder">off</P>
+ <P Name="ExecutionContextIcon">off</P>
+ <P Name="ShowLinearizationAnnotations">on</P>
+ <P Name="BlockNameDataTip">off</P>
+ <P Name="BlockParametersDataTip">off</P>
+ <P Name="BlockDescriptionStringDataTip">off</P>
+ <P Name="ToolBar">on</P>
+ <P Name="StatusBar">on</P>
+ <P Name="BrowserShowLibraryLinks">off</P>
+ <P Name="BrowserLookUnderMasks">off</P>
+ </EditorSettings>
+ <SimulationSettings>
+ <P Name="SimulationMode">normal</P>
+ <P Name="LinearizationMsg">none</P>
+ <P Name="Profile">off</P>
+ <P Name="ParamWorkspaceSource">MATLABWorkspace</P>
+ <P Name="AccelSystemTargetFile">accel.tlc</P>
+ <P Name="AccelTemplateMakefile">accel_default_tmf</P>
+ <P Name="AccelMakeCommand">make_rtw</P>
+ <P Name="TryForcingSFcnDF">off</P>
+ <Object PropName="DataLoggingOverride" ObjectID="7" ClassName="Simulink.SimulationData.ModelLoggingInfo">
+ <P Name="model_" Class="char">Cessna_6DOF_trim_ha</P>
+ <P Name="signals_" Class="double">[]</P>
+ <P Name="overrideMode_" Class="double">0.0</P>
+ <Array PropName="logAsSpecifiedByModels_" Type="Cell" Dimension="1*1">
+ <Cell Class="char">Cessna_6DOF_trim_ha</Cell>
+ </Array>
+ <Array PropName="logAsSpecifiedByModelsSSIDs_" Type="Cell" Dimension="1*1">
+ <Cell>[]</Cell>
+ </Array>
+ </Object>
+ </SimulationSettings>
+ <Verification>
+ <P Name="RecordCoverage">off</P>
+ <P Name="CovPath">/</P>
+ <P Name="CovSaveName">covdata</P>
+ <P Name="CovMetricSettings">dw</P>
+ <P Name="CovNameIncrementing">off</P>
+ <P Name="CovHtmlReporting">on</P>
+ <P Name="CovForceBlockReductionOff">on</P>
+ <P Name="covSaveCumulativeToWorkspaceVar">on</P>
+ <P Name="CovSaveSingleToWorkspaceVar">on</P>
+ <P Name="CovCumulativeVarName">covCumulativeData</P>
+ <P Name="CovCumulativeReport">off</P>
+ <P Name="CovReportOnPause">on</P>
+ <P Name="CovModelRefEnable">Off</P>
+ <P Name="CovExternalEMLEnable">off</P>
+ </Verification>
+ <ExternalMode>
+ <P Name="ExtModeBatchMode">off</P>
+ <P Name="ExtModeEnableFloating">on</P>
+ <P Name="ExtModeTrigType">manual</P>
+ <P Name="ExtModeTrigMode">normal</P>
+ <P Name="ExtModeTrigPort">1</P>
+ <P Name="ExtModeTrigElement">any</P>
+ <P Name="ExtModeTrigDuration">1000</P>
+ <P Name="ExtModeTrigDurationFloating">auto</P>
+ <P Name="ExtModeTrigHoldOff">0</P>
+ <P Name="ExtModeTrigDelay">0</P>
+ <P Name="ExtModeTrigDirection">rising</P>
+ <P Name="ExtModeTrigLevel">0</P>
+ <P Name="ExtModeArchiveMode">off</P>
+ <P Name="ExtModeAutoIncOneShot">off</P>
+ <P Name="ExtModeIncDirWhenArm">off</P>
+ <P Name="ExtModeAddSuffixToVar">off</P>
+ <P Name="ExtModeWriteAllDataToWs">off</P>
+ <P Name="ExtModeArmWhenConnect">on</P>
+ <P Name="ExtModeSkipDownloadWhenConnect">off</P>
+ <P Name="ExtModeLogAll">on</P>
+ <P Name="ExtModeAutoUpdateStatusClock">on</P>
+ </ExternalMode>
+ <EngineSettings>
+ <P Name="BufferReuse">on</P>
+ </EngineSettings>
+ <ModelReferenceSettings>
+ <P Name="ShowModelReferenceBlockVersion">off</P>
+ <P Name="ShowModelReferenceBlockIO">off</P>
+ </ModelReferenceSettings>
+ <ConfigurationSet>
+ <Array PropName="ConfigurationSets" Type="Handle" Dimension="1*1">
+ <Object ObjectID="8" Version="1.12.1" ClassName="Simulink.ConfigSet">
+ <Array PropName="Components" Type="Handle" Dimension="1*9">
+ <Object ObjectID="9" Version="1.12.1" ClassName="Simulink.SolverCC">
+ <P Name="StartTime">0.0</P>
+ <P Name="StopTime">1000</P>
+ <P Name="AbsTol">auto</P>
+ <P Name="FixedStep">auto</P>
+ <P Name="InitialStep">auto</P>
+ <P Name="MaxNumMinSteps">-1</P>
+ <P Name="MaxOrder">5</P>
+ <P Name="ZcThreshold">auto</P>
+ <P Name="ConsecutiveZCsStepRelTol">10*128*eps</P>
+ <P Name="MaxConsecutiveZCs">1000</P>
+ <P Name="ExtrapolationOrder">4</P>
+ <P Name="NumberNewtonIterations">1</P>
+ <P Name="MaxStep">auto</P>
+ <P Name="MinStep">auto</P>
+ <P Name="MaxConsecutiveMinStep">1</P>
+ <P Name="RelTol">1e-5</P>
+ <P Name="SolverMode">Auto</P>
+ <P Name="EnableConcurrentExecution">off</P>
+ <P Name="ConcurrentTasks">off</P>
+ <P Name="Solver">ode45</P>
+ <P Name="SolverName">ode45</P>
+ <P Name="SolverJacobianMethodControl">auto</P>
+ <P Name="ShapePreserveControl">DisableAll</P>
+ <P Name="ZeroCrossControl">UseLocalSettings</P>
+ <P Name="ZeroCrossAlgorithm">Nonadaptive</P>
+ <P Name="AlgebraicLoopSolver">TrustRegion</P>
+ <P Name="SolverResetMethod">Fast</P>
+ <P Name="PositivePriorityOrder">off</P>
+ <P Name="AutoInsertRateTranBlk">off</P>
+ <P Name="SampleTimeConstraint">Unconstrained</P>
+ <P Name="InsertRTBMode">Whenever possible</P>
+ </Object>
+ <Object ObjectID="10" Version="1.12.1" ClassName="Simulink.DataIOCC">
+ <P Name="Decimation">1</P>
+ <P Name="ExternalInput">[t, u]</P>
+ <P Name="FinalStateName">xFinal</P>
+ <P Name="InitialState">xInitial</P>
+ <P Name="LimitDataPoints">on</P>
+ <P Name="MaxDataPoints">1000</P>
+ <P Name="LoadExternalInput">off</P>
+ <P Name="LoadInitialState">off</P>
+ <P Name="SaveFinalState">off</P>
+ <P Name="SaveCompleteFinalSimState">off</P>
+ <P Name="SaveFormat">Array</P>
+ <P Name="SignalLoggingSaveFormat">ModelDataLogs</P>
+ <P Name="SaveOutput">on</P>
+ <P Name="SaveState">off</P>
+ <P Name="SignalLogging">on</P>
+ <P Name="DSMLogging">on</P>
+ <P Name="InspectSignalLogs">off</P>
+ <P Name="SaveTime">on</P>
+ <P Name="ReturnWorkspaceOutputs">off</P>
+ <P Name="StateSaveName">xout</P>
+ <P Name="TimeSaveName">tout</P>
+ <P Name="OutputSaveName">yout</P>
+ <P Name="SignalLoggingName">logsout</P>
+ <P Name="DSMLoggingName">dsmout</P>
+ <P Name="OutputOption">RefineOutputTimes</P>
+ <P Name="OutputTimes">[]</P>
+ <P Name="ReturnWorkspaceOutputsName">out</P>
+ <P Name="Refine">1</P>
+ </Object>
+ <Object ObjectID="11" Version="1.12.1" ClassName="Simulink.OptimizationCC">
+ <Array PropName="DisabledProps" Type="Cell" Dimension="1*8">
+ <Cell Class="char">BooleansAsBitfields</Cell>
+ <Cell Class="char">PassReuseOutputArgsAs</Cell>
+ <Cell Class="char">PassReuseOutputArgsThreshold</Cell>
+ <Cell Class="char">ZeroExternalMemoryAtStartup</Cell>
+ <Cell Class="char">ZeroInternalMemoryAtStartup</Cell>
+ <Cell Class="char">OptimizeModelRefInitCode</Cell>
+ <Cell Class="char">NoFixptDivByZeroProtection</Cell>
+ <Cell Class="char">UseSpecifiedMinMax</Cell>
+ </Array>
+ <P Name="BlockReduction">on</P>
+ <P Name="BooleanDataType">on</P>
+ <P Name="ConditionallyExecuteInputs">on</P>
+ <P Name="InlineParams">off</P>
+ <P Name="UseIntDivNetSlope">off</P>
+ <P Name="UseFloatMulNetSlope">off</P>
+ <P Name="UseSpecifiedMinMax">off</P>
+ <P Name="InlineInvariantSignals">off</P>
+ <P Name="OptimizeBlockIOStorage">on</P>
+ <P Name="BufferReuse">on</P>
+ <P Name="EnhancedBackFolding">off</P>
+ <P Name="StrengthReduction">off</P>
+ <P Name="ExpressionFolding">on</P>
+ <P Name="BooleansAsBitfields">off</P>
+ <P Name="BitfieldContainerType">uint_T</P>
+ <P Name="EnableMemcpy">on</P>
+ <P Name="MemcpyThreshold">64</P>
+ <P Name="PassReuseOutputArgsAs">Structure reference</P>
+ <P Name="ExpressionDepthLimit">2147483647</P>
+ <P Name="FoldNonRolledExpr">on</P>
+ <P Name="LocalBlockOutputs">on</P>
+ <P Name="RollThreshold">5</P>
+ <P Name="SystemCodeInlineAuto">off</P>
+ <P Name="StateBitsets">off</P>
+ <P Name="DataBitsets">off</P>
+ <P Name="UseTempVars">off</P>
+ <P Name="ZeroExternalMemoryAtStartup">on</P>
+ <P Name="ZeroInternalMemoryAtStartup">on</P>
+ <P Name="InitFltsAndDblsToZero">off</P>
+ <P Name="NoFixptDivByZeroProtection">off</P>
+ <P Name="EfficientFloat2IntCast">off</P>
+ <P Name="EfficientMapNaN2IntZero">on</P>
+ <P Name="OptimizeModelRefInitCode">off</P>
+ <P Name="LifeSpan">inf</P>
+ <P Name="MaxStackSize">Inherit from target</P>
+ <P Name="BufferReusableBoundary">on</P>
+ <P Name="SimCompilerOptimization">Off</P>
+ <P Name="AccelVerboseBuild">off</P>
+ <P Name="ParallelExecutionInRapidAccelerator">on</P>
+ </Object>
+ <Object ObjectID="12" Version="1.12.1" ClassName="Simulink.DebuggingCC">
+ <P Name="RTPrefix">error</P>
+ <P Name="ConsistencyChecking">none</P>
+ <P Name="ArrayBoundsChecking">none</P>
+ <P Name="SignalInfNanChecking">none</P>
+ <P Name="SignalRangeChecking">none</P>
+ <P Name="ReadBeforeWriteMsg">UseLocalSettings</P>
+ <P Name="WriteAfterWriteMsg">UseLocalSettings</P>
+ <P Name="WriteAfterReadMsg">UseLocalSettings</P>
+ <P Name="AlgebraicLoopMsg">warning</P>
+ <P Name="ArtificialAlgebraicLoopMsg">warning</P>
+ <P Name="SaveWithDisabledLinksMsg">warning</P>
+ <P Name="SaveWithParameterizedLinksMsg">warning</P>
+ <P Name="CheckSSInitialOutputMsg">on</P>
+ <P Name="UnderspecifiedInitializationDetection">Classic</P>
+ <P Name="MergeDetectMultiDrivingBlocksExec">none</P>
+ <P Name="CheckExecutionContextPreStartOutputMsg">off</P>
+ <P Name="CheckExecutionContextRuntimeOutputMsg">off</P>
+ <P Name="SignalResolutionControl">UseLocalSettings</P>
+ <P Name="BlockPriorityViolationMsg">warning</P>
+ <P Name="MinStepSizeMsg">warning</P>
+ <P Name="TimeAdjustmentMsg">none</P>
+ <P Name="MaxConsecutiveZCsMsg">error</P>
+ <P Name="MaskedZcDiagnostic">warning</P>
+ <P Name="IgnoredZcDiagnostic">warning</P>
+ <P Name="SolverPrmCheckMsg">warning</P>
+ <P Name="InheritedTsInSrcMsg">warning</P>
+ <P Name="DiscreteInheritContinuousMsg">warning</P>
+ <P Name="MultiTaskDSMMsg">error</P>
+ <P Name="MultiTaskCondExecSysMsg">error</P>
+ <P Name="MultiTaskRateTransMsg">error</P>
+ <P Name="SingleTaskRateTransMsg">none</P>
+ <P Name="TasksWithSamePriorityMsg">warning</P>
+ <P Name="SigSpecEnsureSampleTimeMsg">warning</P>
+ <P Name="CheckMatrixSingularityMsg">none</P>
+ <P Name="IntegerOverflowMsg">warning</P>
+ <P Name="Int32ToFloatConvMsg">warning</P>
+ <P Name="ParameterDowncastMsg">error</P>
+ <P Name="ParameterOverflowMsg">error</P>
+ <P Name="ParameterUnderflowMsg">none</P>
+ <P Name="ParameterPrecisionLossMsg">warning</P>
+ <P Name="ParameterTunabilityLossMsg">warning</P>
+ <P Name="FixptConstUnderflowMsg">none</P>
+ <P Name="FixptConstOverflowMsg">none</P>
+ <P Name="FixptConstPrecisionLossMsg">none</P>
+ <P Name="UnderSpecifiedDataTypeMsg">none</P>
+ <P Name="UnnecessaryDatatypeConvMsg">none</P>
+ <P Name="VectorMatrixConversionMsg">none</P>
+ <P Name="InvalidFcnCallConnMsg">error</P>
+ <P Name="FcnCallInpInsideContextMsg">UseLocalSettings</P>
+ <P Name="SignalLabelMismatchMsg">none</P>
+ <P Name="UnconnectedInputMsg">warning</P>
+ <P Name="UnconnectedOutputMsg">warning</P>
+ <P Name="UnconnectedLineMsg">warning</P>
+ <P Name="SFcnCompatibilityMsg">none</P>
+ <P Name="FrameProcessingCompatibilityMsg">warning</P>
+ <P Name="UniqueDataStoreMsg">none</P>
+ <P Name="BusObjectLabelMismatch">warning</P>
+ <P Name="RootOutportRequireBusObject">warning</P>
+ <P Name="AssertControl">UseLocalSettings</P>
+ <P Name="EnableOverflowDetection">off</P>
+ <P Name="ModelReferenceIOMsg">none</P>
+ <P Name="ModelReferenceMultiInstanceNormalModeStructChecksumCheck">error</P>
+ <P Name="ModelReferenceVersionMismatchMessage">none</P>
+ <P Name="ModelReferenceIOMismatchMessage">none</P>
+ <P Name="ModelReferenceCSMismatchMessage">none</P>
+ <P Name="UnknownTsInhSupMsg">warning</P>
+ <P Name="ModelReferenceDataLoggingMessage">warning</P>
+ <P Name="ModelReferenceSymbolNameMessage">warning</P>
+ <P Name="ModelReferenceExtraNoncontSigs">error</P>
+ <P Name="StateNameClashWarn">warning</P>
+ <P Name="SimStateInterfaceChecksumMismatchMsg">warning</P>
+ <P Name="SimStateOlderReleaseMsg">error</P>
+ <P Name="InitInArrayFormatMsg">warning</P>
+ <P Name="StrictBusMsg">ErrorLevel1</P>
+ <P Name="BusNameAdapt">WarnAndRepair</P>
+ <P Name="NonBusSignalsTreatedAsBus">none</P>
+ <P Name="LoggingUnavailableSignals">error</P>
+ <P Name="BlockIODiagnostic">none</P>
+ <P Name="SFUnusedDataAndEventsDiag">warning</P>
+ <P Name="SFUnexpectedBacktrackingDiag">warning</P>
+ <P Name="SFInvalidInputDataAccessInChartInitDiag">warning</P>
+ <P Name="SFNoUnconditionalDefaultTransitionDiag">warning</P>
+ <P Name="SFTransitionOutsideNaturalParentDiag">warning</P>
+ <P Name="SFUnconditionalTransitionShadowingDiag">warning</P>
+ <P Name="SFUndirectedBroadcastEventsDiag">warning</P>
+ <P Name="SFTransitionActionBeforeConditionDiag">warning</P>
+ </Object>
+ <Object ObjectID="13" Version="1.12.1" ClassName="Simulink.HardwareCC">
+ <P Name="ProdBitPerChar">8</P>
+ <P Name="ProdBitPerShort">16</P>
+ <P Name="ProdBitPerInt">32</P>
+ <P Name="ProdBitPerLong">32</P>
+ <P Name="ProdBitPerFloat">32</P>
+ <P Name="ProdBitPerDouble">64</P>
+ <P Name="ProdBitPerPointer">32</P>
+ <P Name="ProdLargestAtomicInteger">Char</P>
+ <P Name="ProdLargestAtomicFloat">None</P>
+ <P Name="ProdIntDivRoundTo">Undefined</P>
+ <P Name="ProdEndianess">Unspecified</P>
+ <P Name="ProdWordSize">32</P>
+ <P Name="ProdShiftRightIntArith">on</P>
+ <P Name="ProdHWDeviceType">32-bit Generic</P>
+ <P Name="TargetBitPerChar">8</P>
+ <P Name="TargetBitPerShort">16</P>
+ <P Name="TargetBitPerInt">32</P>
+ <P Name="TargetBitPerLong">32</P>
+ <P Name="TargetBitPerFloat">32</P>
+ <P Name="TargetBitPerDouble">64</P>
+ <P Name="TargetBitPerPointer">32</P>
+ <P Name="TargetLargestAtomicInteger">Char</P>
+ <P Name="TargetLargestAtomicFloat">None</P>
+ <P Name="TargetShiftRightIntArith">on</P>
+ <P Name="TargetIntDivRoundTo">Undefined</P>
+ <P Name="TargetEndianess">Unspecified</P>
+ <P Name="TargetWordSize">32</P>
+ <P Name="TargetTypeEmulationWarnSuppressLevel">0</P>
+ <P Name="TargetPreprocMaxBitsSint">32</P>
+ <P Name="TargetPreprocMaxBitsUint">32</P>
+ <P Name="TargetHWDeviceType">Specified</P>
+ <P Name="TargetUnknown">off</P>
+ <P Name="ProdEqTarget">on</P>
+ </Object>
+ <Object ObjectID="14" Version="1.12.1" ClassName="Simulink.ModelReferenceCC">
+ <P Name="UpdateModelReferenceTargets">IfOutOfDateOrStructuralChange</P>
+ <P Name="CheckModelReferenceTargetMessage">error</P>
+ <P Name="EnableParallelModelReferenceBuilds">off</P>
+ <P Name="ParallelModelReferenceErrorOnInvalidPool">on</P>
+ <P Name="ParallelModelReferenceMATLABWorkerInit">None</P>
+ <P Name="ModelReferenceNumInstancesAllowed">Multi</P>
+ <P Name="PropagateVarSize">Infer from blocks in model</P>
+ <P Name="ModelReferencePassRootInputsByReference">on</P>
+ <P Name="ModelReferenceMinAlgLoopOccurrences">off</P>
+ <P Name="PropagateSignalLabelsOutOfModel">off</P>
+ <P Name="SupportModelReferenceSimTargetCustomCode">off</P>
+ </Object>
+ <Object ObjectID="15" Version="1.12.1" ClassName="Simulink.SFSimCC">
+ <P Name="SFSimEnableDebug">on</P>
+ <P Name="SFSimOverflowDetection">on</P>
+ <P Name="SFSimEcho">on</P>
+ <P Name="SimBlas">on</P>
+ <P Name="SimCtrlC">on</P>
+ <P Name="SimExtrinsic">on</P>
+ <P Name="SimIntegrity">on</P>
+ <P Name="SimUseLocalCustomCode">off</P>
+ <P Name="SimParseCustomCode">on</P>
+ <P Name="SimBuildMode">sf_incremental_build</P>
+ </Object>
+ <Object BackupClass="Simulink.RTWCC" ObjectID="16" Version="1.12.1" ClassName="Simulink.RTWCC">
+ <Array PropName="DisabledProps" Type="Cell" Dimension="1*8">
+ <Cell Class="char">IncludeHyperlinkInReport</Cell>
+ <Cell Class="char">GenerateTraceInfo</Cell>
+ <Cell Class="char">GenerateTraceReport</Cell>
+ <Cell Class="char">GenerateTraceReportSl</Cell>
+ <Cell Class="char">GenerateTraceReportSf</Cell>
+ <Cell Class="char">GenerateTraceReportEml</Cell>
+ <Cell Class="char">GenerateSLWebview</Cell>
+ <Cell Class="char">GenerateCodeMetricsReport</Cell>
+ </Array>
+ <P Name="SystemTargetFile">grt.tlc</P>
+ <P Name="GenCodeOnly">off</P>
+ <P Name="MakeCommand">make_rtw</P>
+ <P Name="GenerateMakefile">on</P>
+ <P Name="PackageGeneratedCodeAndArtifacts">off</P>
+ <P Name="TemplateMakefile">grt_default_tmf</P>
+ <P Name="GenerateReport">off</P>
+ <P Name="SaveLog">off</P>
+ <P Name="RTWVerbose">on</P>
+ <P Name="RetainRTWFile">off</P>
+ <P Name="ProfileTLC">off</P>
+ <P Name="TLCDebug">off</P>
+ <P Name="TLCCoverage">off</P>
+ <P Name="TLCAssert">off</P>
+ <P Name="ProcessScriptMode">Default</P>
+ <P Name="ConfigurationMode">Optimized</P>
+ <P Name="ConfigAtBuild">off</P>
+ <P Name="RTWUseLocalCustomCode">off</P>
+ <P Name="RTWUseSimCustomCode">off</P>
+ <P Name="IncludeHyperlinkInReport">off</P>
+ <P Name="LaunchReport">off</P>
+ <P Name="PortableWordSizes">off</P>
+ <P Name="GenerateErtSFunction">off</P>
+ <P Name="CreateSILPILBlock">None</P>
+ <P Name="CodeExecutionProfiling">off</P>
+ <P Name="CodeExecutionProfileVariable">executionProfile</P>
+ <P Name="CodeProfilingSaveOptions">SummaryOnly</P>
+ <P Name="CodeProfilingInstrumentation">off</P>
+ <P Name="TargetLang">C</P>
+ <P Name="IncludeBusHierarchyInRTWFileBlockHierarchyMap">off</P>
+ <P Name="IncludeERTFirstTime">off</P>
+ <P Name="GenerateTraceInfo">off</P>
+ <P Name="GenerateTraceReport">off</P>
+ <P Name="GenerateTraceReportSl">off</P>
+ <P Name="GenerateTraceReportSf">off</P>
+ <P Name="GenerateTraceReportEml">off</P>
+ <P Name="GenerateCodeInfo">off</P>
+ <P Name="GenerateWebview">off</P>
+ <P Name="GenerateCodeMetricsReport">off</P>
+ <P Name="GenerateCodeReplacementReport">off</P>
+ <P Name="RTWCompilerOptimization">Off</P>
+ <P Name="CheckMdlBeforeBuild">Off</P>
+ <P Name="CustomRebuildMode">OnUpdate</P>
+ <Array PropName="Components" Type="Handle" Dimension="1*2">
+ <Object ObjectID="17" Version="1.12.1" ClassName="Simulink.CodeAppCC">
+ <Array PropName="DisabledProps" Type="Cell" Dimension="1*21">
+ <Cell Class="char">IgnoreCustomStorageClasses</Cell>
+ <Cell Class="char">IgnoreTestpoints</Cell>
+ <Cell Class="char">InsertBlockDesc</Cell>
+ <Cell Class="char">InsertPolySpaceComments</Cell>
+ <Cell Class="char">SFDataObjDesc</Cell>
+ <Cell Class="char">MATLABFcnDesc</Cell>
+ <Cell Class="char">SimulinkDataObjDesc</Cell>
+ <Cell Class="char">DefineNamingRule</Cell>
+ <Cell Class="char">SignalNamingRule</Cell>
+ <Cell Class="char">ParamNamingRule</Cell>
+ <Cell Class="char">InlinedPrmAccess</Cell>
+ <Cell Class="char">CustomSymbolStr</Cell>
+ <Cell Class="char">CustomSymbolStrGlobalVar</Cell>
+ <Cell Class="char">CustomSymbolStrType</Cell>
+ <Cell Class="char">CustomSymbolStrField</Cell>
+ <Cell Class="char">CustomSymbolStrFcn</Cell>
+ <Cell Class="char">CustomSymbolStrFcnArg</Cell>
+ <Cell Class="char">CustomSymbolStrBlkIO</Cell>
+ <Cell Class="char">CustomSymbolStrTmpVar</Cell>
+ <Cell Class="char">CustomSymbolStrMacro</Cell>
+ <Cell Class="char">ReqsInCode</Cell>
+ </Array>
+ <P Name="ForceParamTrailComments">off</P>
+ <P Name="GenerateComments">on</P>
+ <P Name="IgnoreCustomStorageClasses">on</P>
+ <P Name="IgnoreTestpoints">off</P>
+ <P Name="IncHierarchyInIds">off</P>
+ <P Name="MaxIdLength">31</P>
+ <P Name="PreserveName">off</P>
+ <P Name="PreserveNameWithParent">off</P>
+ <P Name="ShowEliminatedStatement">off</P>
+ <P Name="OperatorAnnotations">off</P>
+ <P Name="IncAutoGenComments">off</P>
+ <P Name="SimulinkDataObjDesc">off</P>
+ <P Name="SFDataObjDesc">off</P>
+ <P Name="MATLABFcnDesc">off</P>
+ <P Name="IncDataTypeInIds">off</P>
+ <P Name="MangleLength">1</P>
+ <P Name="CustomSymbolStrGlobalVar">$R$N$M</P>
+ <P Name="CustomSymbolStrType">$N$R$M_T</P>
+ <P Name="CustomSymbolStrField">$N$M</P>
+ <P Name="CustomSymbolStrFcn">$R$N$M$F</P>
+ <P Name="CustomSymbolStrFcnArg">rt$I$N$M</P>
+ <P Name="CustomSymbolStrBlkIO">rtb_$N$M</P>
+ <P Name="CustomSymbolStrTmpVar">$N$M</P>
+ <P Name="CustomSymbolStrMacro">$R$N$M</P>
+ <P Name="DefineNamingRule">None</P>
+ <P Name="ParamNamingRule">None</P>
+ <P Name="SignalNamingRule">None</P>
+ <P Name="InsertBlockDesc">off</P>
+ <P Name="InsertPolySpaceComments">off</P>
+ <P Name="SimulinkBlockComments">on</P>
+ <P Name="MATLABSourceComments">off</P>
+ <P Name="EnableCustomComments">off</P>
+ <P Name="InternalIdentifier">Shortened</P>
+ <P Name="InlinedPrmAccess">Literals</P>
+ <P Name="ReqsInCode">off</P>
+ <P Name="UseSimReservedNames">off</P>
+ </Object>
+ <Object BackupClass="Simulink.TargetCC" ObjectID="18" Version="1.12.1" ClassName="Simulink.GRTTargetCC">
+ <Array PropName="DisabledProps" Type="Cell" Dimension="1*16">
+ <Cell Class="char">GeneratePreprocessorConditionals</Cell>
+ <Cell Class="char">IncludeMdlTerminateFcn</Cell>
+ <Cell Class="char">CombineOutputUpdateFcns</Cell>
+ <Cell Class="char">SuppressErrorStatus</Cell>
+ <Cell Class="char">ERTCustomFileBanners</Cell>
+ <Cell Class="char">GenerateSampleERTMain</Cell>
+ <Cell Class="char">GenerateTestInterfaces</Cell>
+ <Cell Class="char">ModelStepFunctionPrototypeControlCompliant</Cell>
+ <Cell Class="char">CPPClassGenCompliant</Cell>
+ <Cell Class="char">PortableWordSizes</Cell>
+ <Cell Class="char">PurelyIntegerCode</Cell>
+ <Cell Class="char">SupportComplex</Cell>
+ <Cell Class="char">SupportAbsoluteTime</Cell>
+ <Cell Class="char">SupportContinuousTime</Cell>
+ <Cell Class="char">SupportNonInlinedSFcns</Cell>
+ <Cell Class="char">GenerateAllocFcn</Cell>
+ </Array>
+ <P Name="TargetFcnLib">ansi_tfl_table_tmw.mat</P>
+ <P Name="TargetLibSuffix"></P>
+ <P Name="TargetPreCompLibLocation"></P>
+ <P Name="CodeReplacementLibrary">None</P>
+ <P Name="UtilityFuncGeneration">Auto</P>
+ <P Name="ERTMultiwordTypeDef">System defined</P>
+ <P Name="ERTMultiwordLength">256</P>
+ <P Name="MultiwordLength">2048</P>
+ <P Name="GenerateFullHeader">on</P>
+ <P Name="GenerateSampleERTMain">off</P>
+ <P Name="GenerateTestInterfaces">off</P>
+ <P Name="IsPILTarget">off</P>
+ <P Name="ModelReferenceCompliant">on</P>
+ <P Name="ParMdlRefBuildCompliant">on</P>
+ <P Name="CompOptLevelCompliant">on</P>
+ <P Name="ConcurrentExecutionCompliant">on</P>
+ <P Name="IncludeMdlTerminateFcn">on</P>
+ <P Name="GeneratePreprocessorConditionals">Disable all</P>
+ <P Name="CombineOutputUpdateFcns">off</P>
+ <P Name="CombineSignalStateStructs">off</P>
+ <P Name="SuppressErrorStatus">off</P>
+ <P Name="ERTFirstTimeCompliant">off</P>
+ <P Name="IncludeFileDelimiter">Auto</P>
+ <P Name="ERTCustomFileBanners">off</P>
+ <P Name="SupportAbsoluteTime">on</P>
+ <P Name="LogVarNameModifier">rt_</P>
+ <P Name="MatFileLogging">on</P>
+ <P Name="MultiInstanceERTCode">off</P>
+ <P Name="SupportNonFinite">on</P>
+ <P Name="SupportComplex">on</P>
+ <P Name="PurelyIntegerCode">off</P>
+ <P Name="SupportContinuousTime">on</P>
+ <P Name="SupportNonInlinedSFcns">on</P>
+ <P Name="SupportVariableSizeSignals">off</P>
+ <P Name="EnableShiftOperators">on</P>
+ <P Name="ParenthesesLevel">Nominal</P>
+ <P Name="ModelStepFunctionPrototypeControlCompliant">off</P>
+ <P Name="CPPClassGenCompliant">on</P>
+ <P Name="AutosarCompliant">off</P>
+ <P Name="GRTInterface">on</P>
+ <P Name="UseMalloc">off</P>
+ <P Name="ExtMode">off</P>
+ <P Name="ExtModeStaticAlloc">off</P>
+ <P Name="ExtModeTesting">off</P>
+ <P Name="ExtModeStaticAllocSize">1000000</P>
+ <P Name="ExtModeTransport">0</P>
+ <P Name="ExtModeMexFile">ext_comm</P>
+ <P Name="ExtModeIntrfLevel">Level1</P>
+ <P Name="RTWCAPISignals">off</P>
+ <P Name="RTWCAPIParams">off</P>
+ <P Name="RTWCAPIStates">off</P>
+ <P Name="RTWCAPIRootIO">off</P>
+ <P Name="GenerateASAP2">off</P>
+ </Object>
+ </Array>
+ </Object>
+ <Object ObjectID="19" Version="1.12.1" ClassName="hdlcoderui.hdlcc">
+ <P Name="Description">HDL Coder custom configuration component</P>
+ <P Name="Name">HDL Coder</P>
+ <Array PropName="HDLConfigFile" Type="Cell" Dimension="1*1">
+ <Cell Class="char"></Cell>
+ </Array>
+ <P Name="HDLCActiveTab">0</P>
+ </Object>
+ </Array>
+ <P Name="Name">Configuration</P>
+ <P Name="CurrentDlgPage">Solver</P>
+ <P Name="ConfigPrmDlgPosition"> [ 243, 69, 1123, 699 ] </P>
+ </Object>
+ </Array>
+ <Object Reference="true" PropName="ActiveConfigurationSet" ObjectID="8" ClassName="Simulink.ConfigSet">
+ </Object>
+ </ConfigurationSet>
+ <ConcurrentExecutionSettings>
+ <Object PropName="DataTransfer" ObjectID="20" ClassName="Simulink.GlobalDataTransfer">
+ <P Name="DefaultTransitionBetweenSyncTasks" Class="char">Ensure deterministic transfer (maximum delay)</P>
+ <P Name="DefaultTransitionBetweenAsyncTasks" Class="char">Ensure data integrity only</P>
+ <P Name="DefaultTransitionBetweenContTasks" Class="char">Ensure deterministic transfer (minimum delay)</P>
+ <P Name="DefaultExtrapolationMethodBetweenContTasks" Class="char">None</P>
+ <P Name="AutoInsertRateTranBlk" Class="logical">0</P>
+ </Object>
+ <P Name="ExplicitPartitioning">off</P>
+ </ConcurrentExecutionSettings>
+ <SystemDefaults>
+ <P Name="PaperOrientation">landscape</P>
+ <P Name="PaperPositionMode">auto</P>
+ <P Name="PaperType">A4</P>
+ <P Name="PaperUnits">centimeters</P>
+ <P Name="TiledPaperMargins">[1.270000, 1.270000, 1.270000, 1.270000]</P>
+ <P Name="TiledPageScale">1</P>
+ <P Name="ShowPageBoundaries">off</P>
+ <P Name="ModelBrowserVisibility">off</P>
+ <P Name="ModelBrowserWidth">200</P>
+ <P Name="ScreenColor">white</P>
+ </SystemDefaults>
+ <BlockDefaults>
+ <P Name="ForegroundColor">black</P>
+ <P Name="BackgroundColor">white</P>
+ <P Name="DropShadow">off</P>
+ <P Name="NamePlacement">normal</P>
+ <P Name="FontName">Helvetica</P>
+ <P Name="FontSize">10</P>
+ <P Name="FontWeight">normal</P>
+ <P Name="FontAngle">normal</P>
+ <P Name="ShowName">on</P>
+ <P Name="BlockRotation">0</P>
+ <P Name="BlockMirror">off</P>
+ </BlockDefaults>
+ <AnnotationDefaults>
+ <P Name="HorizontalAlignment">center</P>
+ <P Name="VerticalAlignment">middle</P>
+ <P Name="ForegroundColor">black</P>
+ <P Name="BackgroundColor">white</P>
+ <P Name="DropShadow">off</P>
+ <P Name="FontName">Helvetica</P>
+ <P Name="FontSize">10</P>
+ <P Name="FontWeight">normal</P>
+ <P Name="FontAngle">normal</P>
+ <P Name="UseDisplayTextAsClickCallback">off</P>
+ </AnnotationDefaults>
+ <LineDefaults>
+ <P Name="FontName">Helvetica</P>
+ <P Name="FontSize">9</P>
+ <P Name="FontWeight">normal</P>
+ <P Name="FontAngle">normal</P>
+ </LineDefaults>
+ <MaskDefaults>
+ <P Name="SelfModifiable">off</P>
+ <P Name="IconFrame">on</P>
+ <P Name="IconOpaque">on</P>
+ <P Name="RunInitForIconRedraw">off</P>
+ <P Name="IconRotate">none</P>
+ <P Name="PortRotate">default</P>
+ <P Name="IconUnits">autoscale</P>
+ </MaskDefaults>
+ <MaskParameterDefaults>
+ <P Name="Evaluate">on</P>
+ <P Name="Tunable">on</P>
+ <P Name="NeverSave">off</P>
+ <P Name="Internal">off</P>
+ <P Name="ReadOnly">off</P>
+ <P Name="Enabled">on</P>
+ <P Name="Visible">on</P>
+ <P Name="ToolTip">on</P>
+ </MaskParameterDefaults>
+ <BlockParameterDefaults>
+ <Block BlockType="Demux">
+ <P Name="Outputs">4</P>
+ <P Name="DisplayOption">none</P>
+ <P Name="BusSelectionMode">off</P>
+ </Block>
+ <Block BlockType="Derivative">
+ <P Name="CoefficientInTFapproximation">inf</P>
+ </Block>
+ <Block BlockType="Inport">
+ <P Name="Port">1</P>
+ <P Name="OutputFunctionCall">off</P>
+ <P Name="OutMin">[]</P>
+ <P Name="OutMax">[]</P>
+ <P Name="OutDataTypeStr">Inherit: auto</P>
+ <P Name="LockScale">off</P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="PortDimensions">-1</P>
+ <P Name="VarSizeSig">Inherit</P>
+ <P Name="SampleTime">-1</P>
+ <P Name="SignalType">auto</P>
+ <P Name="SamplingMode">auto</P>
+ <P Name="LatchByDelayingOutsideSignal">off</P>
+ <P Name="LatchInputForFeedbackSignals">off</P>
+ <P Name="Interpolate">on</P>
+ </Block>
+ <Block BlockType="Outport">
+ <P Name="Port">1</P>
+ <P Name="OutMin">[]</P>
+ <P Name="OutMax">[]</P>
+ <P Name="OutDataTypeStr">Inherit: auto</P>
+ <P Name="LockScale">off</P>
+ <P Name="BusOutputAsStruct">off</P>
+ <P Name="PortDimensions">-1</P>
+ <P Name="VarSizeSig">Inherit</P>
+ <P Name="SampleTime">-1</P>
+ <P Name="SignalType">auto</P>
+ <P Name="SamplingMode">auto</P>
+ <P Name="SourceOfInitialOutputValue">Dialog</P>
+ <P Name="OutputWhenDisabled">held</P>
+ <P Name="InitialOutput">[]</P>
+ </Block>
+ <Block BlockType="S-Function">
+ <P Name="FunctionName">system</P>
+ <P Name="SFunctionModules">''</P>
+ <P Name="PortCounts">[]</P>
+ <P Name="SFunctionDeploymentMode">off</P>
+ </Block>
+ <Block BlockType="SubSystem">
+ <P Name="ShowPortLabels">FromPortIcon</P>
+ <P Name="Permissions">ReadWrite</P>
+ <P Name="PermitHierarchicalResolution">All</P>
+ <P Name="TreatAsAtomicUnit">off</P>
+ <P Name="CheckFcnCallInpInsideContextMsg">off</P>
+ <P Name="SystemSampleTime">-1</P>
+ <P Name="RTWFcnNameOpts">Auto</P>
+ <P Name="RTWFileNameOpts">Auto</P>
+ <P Name="RTWMemSecFuncInitTerm">Inherit from model</P>
+ <P Name="RTWMemSecFuncExecute">Inherit from model</P>
+ <P Name="RTWMemSecDataConstants">Inherit from model</P>
+ <P Name="RTWMemSecDataInternal">Inherit from model</P>
+ <P Name="RTWMemSecDataParameters">Inherit from model</P>
+ <P Name="SimViewingDevice">off</P>
+ <P Name="DataTypeOverride">UseLocalSettings</P>
+ <P Name="DataTypeOverrideAppliesTo">AllNumericTypes</P>
+ <P Name="MinMaxOverflowLogging">UseLocalSettings</P>
+ <P Name="SFBlockType">NONE</P>
+ <P Name="Variant">off</P>
+ <P Name="GeneratePreprocessorConditionals">off</P>
+ </Block>
+ <Block BlockType="Sum">
+ <P Name="IconShape">rectangular</P>
+ <P Name="Inputs">++</P>
+ <P Name="CollapseMode">All dimensions</P>
+ <P Name="CollapseDim">1</P>
+ <P Name="InputSameDT">on</P>
+ <P Name="AccumDataTypeStr">Inherit: Inherit via internal rule</P>
+ <P Name="OutMin">[]</P>
+ <P Name="OutMax">[]</P>
+ <P Name="OutDataTypeStr">Inherit: Same as first input</P>
+ <P Name="LockScale">off</P>
+ <P Name="RndMeth">Floor</P>
+ <P Name="SaturateOnIntegerOverflow">on</P>
+ <P Name="SampleTime">-1</P>
+ </Block>
+ <Block BlockType="Terminator">
+ </Block>
+ </BlockParameterDefaults>
+ <System>
+ <P Name="Location">[-8, -8, 1370, 746]</P>
+ <P Name="Open">on</P>
+ <P Name="ZoomFactor">100</P>
+ <P Name="ReportName">simulink-default.rpt</P>
+ <P Name="SIDHighWatermark">148</P>
+ <Block BlockType="Inport" Name="In1" SID="131">
+ <P Name="Position">[115, 283, 145, 297]</P>
+ <P Name="ZOrder">-1</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="In2" SID="132">
+ <P Name="Position">[145, 298, 175, 312]</P>
+ <P Name="ZOrder">-2</P>
+ <P Name="Port">2</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="In3" SID="133">
+ <P Name="Position">[115, 313, 145, 327]</P>
+ <P Name="ZOrder">-3</P>
+ <P Name="Port">3</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="In4" SID="134">
+ <P Name="Position">[145, 328, 175, 342]</P>
+ <P Name="ZOrder">-4</P>
+ <P Name="Port">4</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Reference" Name="6DoF (Euler Angles)" SID="148">
+ <P Name="Ports">[2, 8]</P>
+ <P Name="Position">[480, 132, 680, 333]</P>
+ <P Name="ZOrder">1</P>
+ <P Name="LibraryVersion">1.251</P>
+ <P Name="SourceBlock">aerolib6dof2/6DoF (Euler Angles)</P>
+ <P Name="SourceType">6DoF EoM (Body Axis)</P>
+ <P Name="units">Metric (MKS)</P>
+ <P Name="mtype">Fixed</P>
+ <P Name="rep">Euler Angles</P>
+ <P Name="xme_0">[0 0 0]</P>
+ <P Name="Vm_0">[u v w]</P>
+ <P Name="eul_0">[0 0 0]</P>
+ <P Name="pm_0">[0 0 0]</P>
+ <P Name="mass_0">m</P>
+ <P Name="mass_e">0.5</P>
+ <P Name="mass_f">2.0</P>
+ <P Name="inertia">diag([I_xx I_yy I_zz])</P>
+ <P Name="inertia_e">eye(3)</P>
+ <P Name="inertia_f">2*eye(3)</P>
+ <P Name="k_quat">1.0</P>
+ </Block>
+ <Block BlockType="Demux" Name="Demux" SID="12">
+ <P Name="Ports">[1, 3]</P>
+ <P Name="Position">[730, 301, 735, 339]</P>
+ <P Name="ZOrder">-6</P>
+ <P Name="ShowName">off</P>
+ <P Name="Outputs">3</P>
+ <P Name="DisplayOption">bar</P>
+ </Block>
+ <Block BlockType="Demux" Name="Demux1" SID="49">
+ <P Name="Ports">[1, 3]</P>
+ <P Name="Position">[975, 96, 980, 134]</P>
+ <P Name="ZOrder">-7</P>
+ <P Name="ShowName">off</P>
+ <P Name="Outputs">3</P>
+ <P Name="DisplayOption">bar</P>
+ </Block>
+ <Block BlockType="Demux" Name="Demux3" SID="63">
+ <P Name="Ports">[1, 3]</P>
+ <P Name="Position">[1015, 151, 1020, 189]</P>
+ <P Name="ZOrder">-8</P>
+ <P Name="ShowName">off</P>
+ <P Name="Outputs">3</P>
+ <P Name="DisplayOption">bar</P>
+ </Block>
+ <Block BlockType="Derivative" Name="Derivative" SID="25">
+ <P Name="Position">[885, 215, 915, 245]</P>
+ <P Name="ZOrder">-9</P>
+ </Block>
+ <Block BlockType="Reference" Name="Incidence, Sideslip,
& Airspeed" SID="2">
+ <P Name="Ports">[1, 3]</P>
+ <P Name="Position">[765, 220, 825, 270]</P>
+ <P Name="ZOrder">-10</P>
+ <P Name="LibraryVersion">1.127</P>
+ <P Name="SourceBlock">aerolibasang/Incidence, Sideslip,
+& Airspeed</P>
+ <P Name="SourceType">Incidence,Sideslip,&Airspeed</P>
+ </Block>
+ <Block BlockType="SubSystem" Name="MATLAB Function" SID="20">
+ <P Name="Ports">[12, 2]</P>
+ <P Name="Position">[310, 145, 420, 360]</P>
+ <P Name="ZOrder">-11</P>
+ <P Name="LibraryVersion">1.32</P>
+ <P Name="ErrorFcn">Stateflow.Translate.translate</P>
+ <P Name="PermitHierarchicalResolution">ExplicitOnly</P>
+ <P Name="TreatAsAtomicUnit">on</P>
+ <P Name="MinAlgLoopOccurrences">off</P>
+ <P Name="PropExecContextOutsideSubsystem">off</P>
+ <P Name="RTWSystemCode">Auto</P>
+ <P Name="FunctionWithSeparateData">off</P>
+ <P Name="Opaque">off</P>
+ <P Name="RequestExecContextInheritance">off</P>
+ <P Name="MaskHideContents">off</P>
+ <P Name="SFBlockType">MATLAB Function</P>
+ <Object PropName="MaskObject" ObjectID="21" ClassName="Simulink.Mask">
+ <P Name="SelfModifiable" Class="char">on</P>
+ <P Name="Display" Class="char">bgColor = Simulink.Root.ColorString2Rgb(get_param(gcbh, 'BackgroundColor')); image(imread('private/eml_membrane_16.png','png','BackgroundColor',bgColor(1:3)),'center'); disp([10 10 'Force_Cessna']);</P>
+ <P Name="IconUnits" Class="char">normalized</P>
+ </Object>
+ <System>
+ <P Name="Location">[227, 345, 838, 789]</P>
+ <P Name="Open">off</P>
+ <P Name="ZoomFactor">100</P>
+ <P Name="SIDHighWatermark">147</P>
+ <Block BlockType="Inport" Name="alpha" SID="20::1">
+ <P Name="Position">[20, 101, 40, 119]</P>
+ <P Name="ZOrder">-1</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="beta" SID="20::18">
+ <P Name="Position">[20, 136, 40, 154]</P>
+ <P Name="ZOrder">-2</P>
+ <P Name="Port">2</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="p" SID="20::19">
+ <P Name="Position">[20, 171, 40, 189]</P>
+ <P Name="ZOrder">-3</P>
+ <P Name="Port">3</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="q" SID="20::20">
+ <P Name="Position">[20, 206, 40, 224]</P>
+ <P Name="ZOrder">-4</P>
+ <P Name="Port">4</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="r" SID="20::21">
+ <P Name="Position">[20, 246, 40, 264]</P>
+ <P Name="ZOrder">-5</P>
+ <P Name="Port">5</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="theta" SID="20::24">
+ <P Name="Position">[20, 281, 40, 299]</P>
+ <P Name="ZOrder">-6</P>
+ <P Name="Port">6</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="V" SID="20::22">
+ <P Name="Position">[20, 316, 40, 334]</P>
+ <P Name="ZOrder">-7</P>
+ <P Name="Port">7</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="alpha_dot" SID="20::27">
+ <P Name="Position">[20, 351, 40, 369]</P>
+ <P Name="ZOrder">-8</P>
+ <P Name="Port">8</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="delta_e" SID="20::36">
+ <P Name="Position">[20, 386, 40, 404]</P>
+ <P Name="ZOrder">-9</P>
+ <P Name="Port">9</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="delta_a" SID="20::37">
+ <P Name="Position">[20, 426, 40, 444]</P>
+ <P Name="ZOrder">-10</P>
+ <P Name="Port">10</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="delta_r" SID="20::38">
+ <P Name="Position">[20, 461, 40, 479]</P>
+ <P Name="ZOrder">-11</P>
+ <P Name="Port">11</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Inport" Name="thrust" SID="20::39">
+ <P Name="Position">[20, 496, 40, 514]</P>
+ <P Name="ZOrder">-12</P>
+ <P Name="Port">12</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Demux" Name=" Demux " SID="20::41">
+ <P Name="Ports">[1, 1]</P>
+ <P Name="Position">[270, 230, 320, 270]</P>
+ <P Name="ZOrder">2</P>
+ <P Name="Outputs">1</P>
+ </Block>
+ <Block BlockType="S-Function" Name=" SFunction " SID="20::40">
+ <P Name="Tag">Stateflow S-Function Cessna_6DOF_trim_ha 2</P>
+ <P Name="Ports">[12, 3]</P>
+ <P Name="Position">[180, 95, 230, 355]</P>
+ <P Name="ZOrder">1</P>
+ <P Name="FunctionName">sf_sfun</P>
+ <P Name="PortCounts">[12 3]</P>
+ <P Name="EnableBusSupport">on</P>
+ <Port>
+ <P Name="PortNumber">2</P>
+ <P Name="Name">F</P>
+ <P Name="RTWStorageClass">Auto</P>
+ <P Name="DataLoggingNameMode">SignalName</P>
+ </Port>
+ <Port>
+ <P Name="PortNumber">3</P>
+ <P Name="Name">M</P>
+ <P Name="RTWStorageClass">Auto</P>
+ <P Name="DataLoggingNameMode">SignalName</P>
+ </Port>
+ </Block>
+ <Block BlockType="Terminator" Name=" Terminator " SID="20::42">
+ <P Name="Position">[460, 241, 480, 259]</P>
+ <P Name="ZOrder">3</P>
+ </Block>
+ <Block BlockType="Outport" Name="F" SID="20::5">
+ <P Name="Position">[460, 101, 480, 119]</P>
+ <P Name="ZOrder">-16</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="M" SID="20::26">
+ <P Name="Position">[460, 136, 480, 154]</P>
+ <P Name="ZOrder">-17</P>
+ <P Name="Port">2</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Line>
+ <P Name="Src">20::1#out:1</P>
+ <P Name="Dst">20::40#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::18#out:1</P>
+ <P Name="Dst">20::40#in:2</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::19#out:1</P>
+ <P Name="Dst">20::40#in:3</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::20#out:1</P>
+ <P Name="Dst">20::40#in:4</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::21#out:1</P>
+ <P Name="Dst">20::40#in:5</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::24#out:1</P>
+ <P Name="Dst">20::40#in:6</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::22#out:1</P>
+ <P Name="Dst">20::40#in:7</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::27#out:1</P>
+ <P Name="Dst">20::40#in:8</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::36#out:1</P>
+ <P Name="Dst">20::40#in:9</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::37#out:1</P>
+ <P Name="Dst">20::40#in:10</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::38#out:1</P>
+ <P Name="Dst">20::40#in:11</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::39#out:1</P>
+ <P Name="Dst">20::40#in:12</P>
+ </Line>
+ <Line>
+ <P Name="Name">F</P>
+ <P Name="Labels">[0, 0]</P>
+ <P Name="Src">20::40#out:2</P>
+ <P Name="Dst">20::5#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Name">M</P>
+ <P Name="Labels">[0, 0]</P>
+ <P Name="Src">20::40#out:3</P>
+ <P Name="Points">[0, -165]</P>
+ <P Name="Dst">20::26#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::41#out:1</P>
+ <P Name="Dst">20::42#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">20::40#out:1</P>
+ <P Name="Dst">20::41#in:1</P>
+ </Line>
+ </System>
+ </Block>
+ <Block BlockType="Sum" Name="Sum" SID="116">
+ <P Name="Ports">[2, 1]</P>
+ <P Name="Position">[975, 300, 995, 320]</P>
+ <P Name="ZOrder">-12</P>
+ <P Name="ShowName">off</P>
+ <P Name="IconShape">round</P>
+ <P Name="Inputs">|+-</P>
+ <P Name="InputSameDT">off</P>
+ <P Name="OutDataTypeStr">Inherit: Inherit via internal rule</P>
+ <P Name="SaturateOnIntegerOverflow">off</P>
+ </Block>
+ <Block BlockType="Terminator" Name="Terminator" SID="43">
+ <P Name="Position">[715, 135, 735, 155]</P>
+ <P Name="ZOrder">-13</P>
+ </Block>
+ <Block BlockType="Terminator" Name="Terminator2" SID="45">
+ <P Name="Position">[715, 210, 735, 230]</P>
+ <P Name="ZOrder">-14</P>
+ </Block>
+ <Block BlockType="Terminator" Name="Terminator3" SID="46">
+ <P Name="Position">[785, 300, 805, 320]</P>
+ <P Name="ZOrder">-15</P>
+ </Block>
+ <Block BlockType="Terminator" Name="Terminator4" SID="47">
+ <P Name="Position">[830, 360, 850, 380]</P>
+ <P Name="ZOrder">-16</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out1" SID="135">
+ <P Name="Position">[1000, 198, 1030, 212]</P>
+ <P Name="ZOrder">-17</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out2" SID="136">
+ <P Name="Position">[1000, 258, 1030, 272]</P>
+ <P Name="ZOrder">-18</P>
+ <P Name="Port">2</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out3" SID="137">
+ <P Name="Position">[1000, 243, 1030, 257]</P>
+ <P Name="ZOrder">-19</P>
+ <P Name="Port">3</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out4" SID="138">
+ <P Name="Position">[1040, 98, 1070, 112]</P>
+ <P Name="ZOrder">-20</P>
+ <P Name="Port">4</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out5" SID="139">
+ <P Name="Position">[1245, 108, 1275, 122]</P>
+ <P Name="ZOrder">-21</P>
+ <P Name="Port">5</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out6" SID="140">
+ <P Name="Position">[1115, 118, 1145, 132]</P>
+ <P Name="ZOrder">-22</P>
+ <P Name="Port">6</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out7" SID="141">
+ <P Name="Position">[1080, 153, 1110, 167]</P>
+ <P Name="ZOrder">-23</P>
+ <P Name="Port">7</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out8" SID="142">
+ <P Name="Position">[1040, 163, 1070, 177]</P>
+ <P Name="ZOrder">-24</P>
+ <P Name="Port">8</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out9" SID="143">
+ <P Name="Position">[1115, 173, 1145, 187]</P>
+ <P Name="ZOrder">-25</P>
+ <P Name="Port">9</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out10" SID="144">
+ <P Name="Position">[885, 398, 915, 412]</P>
+ <P Name="ZOrder">-26</P>
+ <P Name="Port">10</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out11" SID="145">
+ <P Name="Position">[825, 418, 855, 432]</P>
+ <P Name="ZOrder">-27</P>
+ <P Name="Port">11</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out12" SID="146">
+ <P Name="Position">[780, 433, 810, 447]</P>
+ <P Name="ZOrder">-28</P>
+ <P Name="Port">12</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Block BlockType="Outport" Name="Out13" SID="147">
+ <P Name="Position">[1025, 303, 1055, 317]</P>
+ <P Name="ZOrder">-29</P>
+ <P Name="Port">13</P>
+ <P Name="IconDisplay">Port number</P>
+ </Block>
+ <Line>
+ <P Name="Src">148#out:5</P>
+ <P Name="Dst">2#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:6</P>
+ <P Name="Points">[20, 0; 0, 50]</P>
+ <P Name="Dst">12#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">20#out:1</P>
+ <P Name="Points">[25, 0; 0, -15]</P>
+ <P Name="Dst">148#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">2#out:1</P>
+ <P Name="Points">[0, 0]</P>
+ <Branch>
+ <P Name="Points">[0, -115; -495, 0; 0, 12; -166, 0; 0, 43]</P>
+ <P Name="Dst">20#in:1</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[30, 0]</P>
+ <Branch>
+ <P Name="Dst">25#in:1</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[0, 35]</P>
+ <Branch>
+ <P Name="Dst">136#in:1</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[0, 70]</P>
+ <P Name="Dst">116#in:2</P>
+ </Branch>
+ </Branch>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">2#out:2</P>
+ <P Name="Points">[5, 0]</P>
+ <Branch>
+ <P Name="Points">[0, -135; -680, 0; 0, 75]</P>
+ <P Name="Dst">20#in:2</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[0, 5]</P>
+ <P Name="Dst">137#in:1</P>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">12#out:1</P>
+ <P Name="Points">[5, 0; 0, 35; -30, 0; 0, 57]</P>
+ <Branch>
+ <P Name="Points">[-614, 0; 0, -202]</P>
+ <P Name="Dst">20#in:3</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[0, 3]</P>
+ <P Name="Dst">144#in:1</P>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">12#out:2</P>
+ <P Name="Points">[10, 0; 0, 105]</P>
+ <Branch>
+ <P Name="Points">[0, 27; -663, 0; 0, -237]</P>
+ <P Name="Dst">20#in:4</P>
+ </Branch>
+ <Branch>
+ <P Name="Dst">145#in:1</P>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">12#out:3</P>
+ <P Name="Points">[0, 87]</P>
+ <Branch>
+ <P Name="Points">[-632, 0; 0, -187]</P>
+ <P Name="Dst">20#in:5</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[0, 23]</P>
+ <P Name="Dst">146#in:1</P>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">2#out:3</P>
+ <P Name="Points">[15, 0; 0, -50]</P>
+ <Branch>
+ <P Name="Points">[0, -115; -683, 0; 0, 165]</P>
+ <P Name="Dst">20#in:7</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[135, 0; 0, -5]</P>
+ <P Name="Dst">135#in:1</P>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:1</P>
+ <P Name="Dst">43#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:2</P>
+ <P Name="Points">[7, 0; 0, 12; 293, 0; 0, -12]</P>
+ <P Name="Dst">63#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:4</P>
+ <P Name="Dst">45#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:7</P>
+ <P Name="Points">[65, 0; 0, 15]</P>
+ <P Name="Dst">46#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:8</P>
+ <P Name="Points">[13, 0; 0, 50]</P>
+ <P Name="Dst">47#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">148#out:3</P>
+ <P Name="Points">[270, 0; 0, -80]</P>
+ <P Name="Dst">49#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">49#out:2</P>
+ <P Name="Points">[5, 0]</P>
+ <Branch>
+ <P Name="Points">[0, -25; -55, 0]</P>
+ <Branch>
+ <P Name="Points">[-585, 0; 0, 376; -277, 0; 0, -221]</P>
+ <P Name="Dst">20#in:6</P>
+ </Branch>
+ <Branch>
+ <P Name="Points">[0, 220]</P>
+ <P Name="Dst">116#in:1</P>
+ </Branch>
+ </Branch>
+ <Branch>
+ <P Name="Dst">139#in:1</P>
+ </Branch>
+ </Line>
+ <Line>
+ <P Name="Src">49#out:1</P>
+ <P Name="Dst">138#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">49#out:3</P>
+ <P Name="Dst">140#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">63#out:1</P>
+ <P Name="Dst">141#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">63#out:2</P>
+ <P Name="Dst">142#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">63#out:3</P>
+ <P Name="Dst">143#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">20#out:2</P>
+ <P Name="Points">[25, 0; 0, -20]</P>
+ <P Name="Dst">148#in:2</P>
+ </Line>
+ <Line>
+ <P Name="Src">25#out:1</P>
+ <P Name="Points">[10, 0; 0, 160; -836, 0; 0, -115]</P>
+ <P Name="Dst">20#in:8</P>
+ </Line>
+ <Line>
+ <P Name="Src">116#out:1</P>
+ <P Name="Dst">147#in:1</P>
+ </Line>
+ <Line>
+ <P Name="Src">131#out:1</P>
+ <P Name="Dst">20#in:9</P>
+ </Line>
+ <Line>
+ <P Name="Src">132#out:1</P>
+ <P Name="Dst">20#in:10</P>
+ </Line>
+ <Line>
+ <P Name="Src">133#out:1</P>
+ <P Name="Dst">20#in:11</P>
+ </Line>
+ <Line>
+ <P Name="Src">134#out:1</P>
+ <P Name="Dst">20#in:12</P>
+ </Line>
+ </System>
+ </Model>
+ <Stateflow>
+ <machine id="28">
+ <P Name="created">18-Dec-2014 10:58:31</P>
+ <P Name="isLibrary">0</P>
+ <P Name="sfVersion">76014001.001</P>
+ <Children>
+ <target id="48" name="sfun">
+ <P Name="description">Default Simulink S-Function Target.</P>
+ </target>
+ <chart id="29">
+ <P Name="name">MATLAB Function</P>
+ <P Name="windowPosition">[401 52 213 385]</P>
+ <P Name="viewLimits">[0 156.75 0 153.75]</P>
+ <P Name="screen">[1 1 1366 768 1.333333333333333]</P>
+ <P Name="viewObj">29</P>
+ <P Name="visible">1</P>
+ <subviewS>
+ </subviewS>
+ <P Name="ssIdHighWaterMark">27</P>
+ <P Name="decomposition">CLUSTER_CHART</P>
+ <P Name="type">EML_CHART</P>
+ <P Name="chartFileNumber">2</P>
+ <P Name="disableImplicitCasting">1</P>
+ <eml>
+ <P Name="name">Force_Cessna</P>
+ </eml>
+ <Children>
+ <state SSID="1">
+ <P Name="labelString">eML_blk_kernel()</P>
+ <P Name="position">[18 64.5 118 66]</P>
+ <P Name="fontSize">12</P>
+ <P Name="superState">SUBCHART</P>
+ <P Name="subviewer">29</P>
+ <P Name="type">FUNC_STATE</P>
+ <P Name="decomposition">CLUSTER_STATE</P>
+ <eml>
+ <P Name="isEML">1</P>
+ <P Name="script">function [F, M] = Force_Cessna(alpha, beta, p, q, r, theta, V, alpha_dot, delta_e, delta_a, delta_r, thrust)
+
+g = 9.8;
+rho = 1.225;
+
+m = 1043.26;
+C_bar = 1.493;
+b = 10.911;
+S_ref = 16.1651;
+
+C_L_0 = 0.25;
+C_L_alpha = 4.47;
+C_L_q = 1.7;
+C_L_delta_e = 0.3476;
+
+% Ignore all other C_D derivatives excluding C_D_0
+% Use C_D = C_D_0 + k*C_L^2
+
+C_D_0 = 0.036;
+k = 0.3;
+
+C_Y_beta = -0.31;
+C_Y_p = -0.037;
+C_Y_r = 0.21;
+C_Y_delta_a = 0;
+
+C_l_beta = -0.089;
+C_l_p = -0.47;
+C_l_r = 0.096;
+C_l_delta_a = -0.09;
+C_l_delta_r = 0.0147;
+
+C_M_0 = -0.02;
+C_M_alpha = -1.8;
+C_M_alpha_dot = -12.4;
+C_M_delta_e = -1.28;
+
+C_N_beta = 0.065;
+C_N_p = -0.03;
+C_N_r = -0.99;
+C_N_delta_a = -0.0053;
+C_N_delta_r = -0.0657;
+
+C_L = C_L_0 + C_L_alpha*alpha + C_L_q*(q*C_bar/(2*V)) + C_L_delta_e*delta_e;
+C_D = C_D_0 + k*C_L^2;
+C_Y = C_Y_beta*beta + C_Y_p*(p*b/(2*V)) + C_Y_r*(r*b/(2*V)) + C_Y_delta_a*delta_a;
+
+C_l = C_l_beta*beta + C_l_p*(p*b/(2*V)) + C_l_r*(r*b/(2*V)) + C_l_delta_a*delta_a + C_l_delta_r*delta_r;
+C_M = C_M_0 + C_M_alpha*alpha + C_M_alpha_dot*(alpha_dot*C_bar/(2*V)) + C_M_delta_e*delta_e;
+C_N = C_N_beta*beta + C_N_p*(p*b/(2*V)) + C_N_r*(r*b/(2*V)) + C_N_delta_a*delta_a + C_N_delta_r*delta_r;
+
+C_X = -C_D*cos(alpha) + C_L*sin(alpha);
+C_Z = -C_D*sin(alpha) - C_L*cos(alpha);
+
+F = zeros(3,1);
+M = zeros(3,1);
+
+q_bar = 0.5*rho*V*V;
+
+F(1,1) = q_bar*S_ref*C_X - m*g*sin(theta) + thrust;
+F(2,1) = q_bar*S_ref*C_Y;
+F(3,1) = q_bar*S_ref*C_Z + m*g*cos(theta);
+
+M(1,1) = q_bar*b*S_ref*C_l;
+M(2,1) = q_bar*C_bar*S_ref*C_M;
+M(3,1) = q_bar*b*S_ref*C_N;</P>
+ <P Name="editorLayout" Class="double">Matrix(4,1)
+[[10.0]; [5.0]; [700.0]; [500.0]]</P>
+ </eml>
+ </state>
+ <data SSID="4" name="alpha">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="5" name="F">
+ <P Name="scope">OUTPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_NO</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="6" name="beta">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="7" name="p">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="8" name="q">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="9" name="r">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="12" name="theta">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="10" name="V">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="14" name="M">
+ <P Name="scope">OUTPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_NO</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="15" name="alpha_dot">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="24" name="delta_e">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="25" name="delta_a">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="26" name="delta_r">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <data SSID="27" name="thrust">
+ <P Name="scope">INPUT_DATA</P>
+ <props>
+ <array>
+ <P Name="size">-1</P>
+ </array>
+ <type>
+ <P Name="method">SF_INHERITED_TYPE</P>
+ <P Name="primitive">SF_DOUBLE_TYPE</P>
+ <P Name="isSigned">1</P>
+ <P Name="wordLength">16</P>
+ </type>
+ <P Name="complexity">SF_COMPLEX_INHERITED</P>
+ <P Name="frame">SF_FRAME_INHERITED</P>
+ </props>
+ <P Name="dataType">Inherit: Same as Simulink</P>
+ </data>
+ <transition SSID="2">
+ <P Name="labelString">{eML_blk_kernel();}</P>
+ <P Name="labelPosition">[36.125 25.875 102.544 14.964]</P>
+ <P Name="fontSize">12</P>
+ <src>
+ <P Name="intersection">[0 0 1 0 23.5747 14.625 0 0]</P>
+ </src>
+ <dst>
+ <P Name="SSID">3</P>
+ <P Name="intersection">[1 0 -1 0 23.5747 42.5747 0 0]</P>
+ </dst>
+ <P Name="midPoint">[23.5747 24.9468]</P>
+ <P Name="dataLimits">[21.175 25.975 14.625 42.575]</P>
+ <P Name="subviewer">29</P>
+ <P Name="drawStyle">SMART</P>
+ <slide>
+ <P Name="sticky">BOTH_STICK</P>
+ </slide>
+ <P Name="executionOrder">1</P>
+ </transition>
+ <junction SSID="3">
+ <P Name="position">[23.5747 49.5747 7]</P>
+ <P Name="subviewer">29</P>
+ <P Name="type">CONNECTIVE_JUNCTION</P>
+ </junction>
+ </Children>
+ </chart>
+ </Children>
+ </machine>
+ <instance id="47">
+ <P Name="name">MATLAB Function</P>
+ <P Name="machine">28</P>
+ <P Name="chart">29</P>
+ </instance>
+ </Stateflow>
+</ModelInformation>
diff --git a/Prof_Arya/slprj/_jitprj/jitEngineAccessInfo.mat b/Prof_Arya/slprj/_jitprj/jitEngineAccessInfo.mat Binary files differnew file mode 100644 index 0000000..2e6b0d8 --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/jitEngineAccessInfo.mat diff --git a/Prof_Arya/slprj/_jitprj/sEI9p49izcHUxn63CWpG2IC.l b/Prof_Arya/slprj/_jitprj/sEI9p49izcHUxn63CWpG2IC.l Binary files differnew file mode 100644 index 0000000..a912364 --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/sEI9p49izcHUxn63CWpG2IC.l diff --git a/Prof_Arya/slprj/_jitprj/sEI9p49izcHUxn63CWpG2IC.mat b/Prof_Arya/slprj/_jitprj/sEI9p49izcHUxn63CWpG2IC.mat Binary files differnew file mode 100644 index 0000000..72066f3 --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/sEI9p49izcHUxn63CWpG2IC.mat diff --git a/Prof_Arya/slprj/_jitprj/sjLZixcOZskMJeeDfIb93hH.l b/Prof_Arya/slprj/_jitprj/sjLZixcOZskMJeeDfIb93hH.l Binary files differnew file mode 100644 index 0000000..27def57 --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/sjLZixcOZskMJeeDfIb93hH.l diff --git a/Prof_Arya/slprj/_jitprj/sjLZixcOZskMJeeDfIb93hH.mat b/Prof_Arya/slprj/_jitprj/sjLZixcOZskMJeeDfIb93hH.mat Binary files differnew file mode 100644 index 0000000..a01f6bf --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/sjLZixcOZskMJeeDfIb93hH.mat diff --git a/Prof_Arya/slprj/_jitprj/sywZUtpLbJvZ7sNRSY4m9bG.l b/Prof_Arya/slprj/_jitprj/sywZUtpLbJvZ7sNRSY4m9bG.l Binary files differnew file mode 100644 index 0000000..27def57 --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/sywZUtpLbJvZ7sNRSY4m9bG.l diff --git a/Prof_Arya/slprj/_jitprj/sywZUtpLbJvZ7sNRSY4m9bG.mat b/Prof_Arya/slprj/_jitprj/sywZUtpLbJvZ7sNRSY4m9bG.mat Binary files differnew file mode 100644 index 0000000..14499df --- /dev/null +++ b/Prof_Arya/slprj/_jitprj/sywZUtpLbJvZ7sNRSY4m9bG.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/binfo.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/binfo.mat Binary files differnew file mode 100644 index 0000000..8c3d4c4 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/binfo.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_61lDY9MbzCSyk6tMTxmxsG.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_61lDY9MbzCSyk6tMTxmxsG.mat Binary files differnew file mode 100644 index 0000000..96112df --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_61lDY9MbzCSyk6tMTxmxsG.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_jFM61yZv4AZtAtyV4ewisH.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_jFM61yZv4AZtAtyV4ewisH.mat Binary files differnew file mode 100644 index 0000000..3e61301 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_jFM61yZv4AZtAtyV4ewisH.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_v045JFXizl4FQXSha8a34C.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_v045JFXizl4FQXSha8a34C.mat Binary files differnew file mode 100644 index 0000000..cd926a4 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/info/chart1_v045JFXizl4FQXSha8a34C.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.c b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.c new file mode 100644 index 0000000..cbd0534 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.c @@ -0,0 +1,2330 @@ +/* Include files */
+
+#include <stddef.h>
+#include "blas.h"
+#include "Cessna_6DOF_sfun.h"
+#include "c1_Cessna_6DOF.h"
+#include "mwmathutil.h"
+#define CHARTINSTANCE_CHARTNUMBER (chartInstance->chartNumber)
+#define CHARTINSTANCE_INSTANCENUMBER (chartInstance->instanceNumber)
+#include "Cessna_6DOF_sfun_debug_macros.h"
+#define _SF_MEX_LISTEN_FOR_CTRL_C(S) sf_mex_listen_for_ctrl_c(sfGlobalDebugInstanceStruct,S);
+
+/* Type Definitions */
+
+/* Named Constants */
+#define CALL_EVENT (-1)
+
+/* Variable Declarations */
+
+/* Variable Definitions */
+static real_T _sfTime_;
+static const char * c1_debug_family_names[55] = { "g", "rho", "m", "C_bar", "b",
+ "S_ref", "C_L_0", "C_L_alpha", "C_L_q", "C_L_delta_e", "C_D_0", "k",
+ "C_Y_beta", "C_Y_p", "C_Y_r", "C_Y_delta_a", "C_l_beta", "C_l_p", "C_l_r",
+ "C_l_delta_a", "C_l_delta_r", "C_M_0", "C_M_alpha", "C_M_alpha_dot",
+ "C_M_delta_e", "C_N_beta", "C_N_p", "C_N_r", "C_N_delta_a", "C_N_delta_r",
+ "delta_e", "delta_a", "delta_r", "thrust", "C_L", "C_D", "C_Y", "C_l", "C_M",
+ "C_N", "C_X", "C_Z", "q_bar", "nargin", "nargout", "V", "alpha", "alpha_dot",
+ "beta", "p", "q", "r", "theta", "F", "M" };
+
+/* Function Declarations */
+static void initialize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void initialize_params_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void enable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static void disable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static void c1_update_debugger_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static const mxArray *get_sim_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static void set_sim_state_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_st);
+static void finalize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void sf_gateway_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void c1_chartstep_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void initSimStructsc1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance);
+static void init_script_number_translation(uint32_T c1_machineNumber, uint32_T
+ c1_chartNumber, uint32_T c1_instanceNumber);
+static const mxArray *c1_sf_marshallOut(void *chartInstanceVoid, void *c1_inData);
+static void c1_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_M, const char_T *c1_identifier, real_T c1_y[3]);
+static void c1_b_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, real_T c1_y[3]);
+static void c1_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData);
+static const mxArray *c1_b_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData);
+static real_T c1_c_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId);
+static void c1_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData);
+static void c1_info_helper(const mxArray **c1_info);
+static const mxArray *c1_emlrt_marshallOut(const char * c1_u);
+static const mxArray *c1_b_emlrt_marshallOut(const uint32_T c1_u);
+static real_T c1_mpower(SFc1_Cessna_6DOFInstanceStruct *chartInstance, real_T
+ c1_a);
+static void c1_eml_scalar_eg(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+static const mxArray *c1_c_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData);
+static int32_T c1_d_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId);
+static void c1_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData);
+static uint8_T c1_e_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_b_is_active_c1_Cessna_6DOF, const char_T
+ *c1_identifier);
+static uint8_T c1_f_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId);
+static void init_dsm_address_info(SFc1_Cessna_6DOFInstanceStruct *chartInstance);
+
+/* Function Definitions */
+static void initialize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ chartInstance->c1_sfEvent = CALL_EVENT;
+ _sfTime_ = sf_get_time(chartInstance->S);
+ chartInstance->c1_is_active_c1_Cessna_6DOF = 0U;
+}
+
+static void initialize_params_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static void enable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ _sfTime_ = sf_get_time(chartInstance->S);
+}
+
+static void disable_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ _sfTime_ = sf_get_time(chartInstance->S);
+}
+
+static void c1_update_debugger_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static const mxArray *get_sim_state_c1_Cessna_6DOF
+ (SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ const mxArray *c1_st;
+ const mxArray *c1_y = NULL;
+ int32_T c1_i0;
+ real_T c1_u[3];
+ const mxArray *c1_b_y = NULL;
+ int32_T c1_i1;
+ real_T c1_b_u[3];
+ const mxArray *c1_c_y = NULL;
+ uint8_T c1_hoistedGlobal;
+ uint8_T c1_c_u;
+ const mxArray *c1_d_y = NULL;
+ real_T (*c1_M)[3];
+ real_T (*c1_F)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_st = NULL;
+ c1_st = NULL;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_createcellmatrix(3, 1), false);
+ for (c1_i0 = 0; c1_i0 < 3; c1_i0++) {
+ c1_u[c1_i0] = (*c1_F)[c1_i0];
+ }
+
+ c1_b_y = NULL;
+ sf_mex_assign(&c1_b_y, sf_mex_create("y", c1_u, 0, 0U, 1U, 0U, 1, 3), false);
+ sf_mex_setcell(c1_y, 0, c1_b_y);
+ for (c1_i1 = 0; c1_i1 < 3; c1_i1++) {
+ c1_b_u[c1_i1] = (*c1_M)[c1_i1];
+ }
+
+ c1_c_y = NULL;
+ sf_mex_assign(&c1_c_y, sf_mex_create("y", c1_b_u, 0, 0U, 1U, 0U, 1, 3), false);
+ sf_mex_setcell(c1_y, 1, c1_c_y);
+ c1_hoistedGlobal = chartInstance->c1_is_active_c1_Cessna_6DOF;
+ c1_c_u = c1_hoistedGlobal;
+ c1_d_y = NULL;
+ sf_mex_assign(&c1_d_y, sf_mex_create("y", &c1_c_u, 3, 0U, 0U, 0U, 0), false);
+ sf_mex_setcell(c1_y, 2, c1_d_y);
+ sf_mex_assign(&c1_st, c1_y, false);
+ return c1_st;
+}
+
+static void set_sim_state_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_st)
+{
+ const mxArray *c1_u;
+ real_T c1_dv0[3];
+ int32_T c1_i2;
+ real_T c1_dv1[3];
+ int32_T c1_i3;
+ real_T (*c1_F)[3];
+ real_T (*c1_M)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ chartInstance->c1_doneDoubleBufferReInit = true;
+ c1_u = sf_mex_dup(c1_st);
+ c1_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 0)), "F",
+ c1_dv0);
+ for (c1_i2 = 0; c1_i2 < 3; c1_i2++) {
+ (*c1_F)[c1_i2] = c1_dv0[c1_i2];
+ }
+
+ c1_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 1)), "M",
+ c1_dv1);
+ for (c1_i3 = 0; c1_i3 < 3; c1_i3++) {
+ (*c1_M)[c1_i3] = c1_dv1[c1_i3];
+ }
+
+ chartInstance->c1_is_active_c1_Cessna_6DOF = c1_e_emlrt_marshallIn
+ (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 2)),
+ "is_active_c1_Cessna_6DOF");
+ sf_mex_destroy(&c1_u);
+ c1_update_debugger_state_c1_Cessna_6DOF(chartInstance);
+ sf_mex_destroy(&c1_st);
+}
+
+static void finalize_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static void sf_gateway_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ int32_T c1_i4;
+ int32_T c1_i5;
+ real_T *c1_V;
+ real_T *c1_alpha;
+ real_T *c1_alpha_dot;
+ real_T *c1_beta;
+ real_T *c1_p;
+ real_T *c1_q;
+ real_T *c1_r;
+ real_T *c1_theta;
+ real_T (*c1_M)[3];
+ real_T (*c1_F)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 7);
+ c1_r = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);
+ c1_q = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);
+ c1_p = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
+ c1_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
+ c1_alpha_dot = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
+ c1_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
+ _SFD_SYMBOL_SCOPE_PUSH(0U, 0U);
+ _sfTime_ = sf_get_time(chartInstance->S);
+ _SFD_CC_CALL(CHART_ENTER_SFUNCTION_TAG, 0U, chartInstance->c1_sfEvent);
+ _SFD_DATA_RANGE_CHECK(*c1_V, 0U);
+ chartInstance->c1_sfEvent = CALL_EVENT;
+ c1_chartstep_c1_Cessna_6DOF(chartInstance);
+ _SFD_SYMBOL_SCOPE_POP();
+ _SFD_CHECK_FOR_STATE_INCONSISTENCY(_Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber, chartInstance->instanceNumber);
+ for (c1_i4 = 0; c1_i4 < 3; c1_i4++) {
+ _SFD_DATA_RANGE_CHECK((*c1_F)[c1_i4], 1U);
+ }
+
+ _SFD_DATA_RANGE_CHECK(*c1_alpha, 2U);
+ _SFD_DATA_RANGE_CHECK(*c1_alpha_dot, 3U);
+ _SFD_DATA_RANGE_CHECK(*c1_beta, 4U);
+ _SFD_DATA_RANGE_CHECK(*c1_p, 5U);
+ _SFD_DATA_RANGE_CHECK(*c1_q, 6U);
+ _SFD_DATA_RANGE_CHECK(*c1_r, 7U);
+ _SFD_DATA_RANGE_CHECK(*c1_theta, 8U);
+ for (c1_i5 = 0; c1_i5 < 3; c1_i5++) {
+ _SFD_DATA_RANGE_CHECK((*c1_M)[c1_i5], 9U);
+ }
+}
+
+static void c1_chartstep_c1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ real_T c1_hoistedGlobal;
+ real_T c1_b_hoistedGlobal;
+ real_T c1_c_hoistedGlobal;
+ real_T c1_d_hoistedGlobal;
+ real_T c1_e_hoistedGlobal;
+ real_T c1_f_hoistedGlobal;
+ real_T c1_g_hoistedGlobal;
+ real_T c1_h_hoistedGlobal;
+ real_T c1_V;
+ real_T c1_alpha;
+ real_T c1_alpha_dot;
+ real_T c1_beta;
+ real_T c1_p;
+ real_T c1_q;
+ real_T c1_r;
+ real_T c1_theta;
+ uint32_T c1_debug_family_var_map[55];
+ real_T c1_g;
+ real_T c1_rho;
+ real_T c1_m;
+ real_T c1_C_bar;
+ real_T c1_b;
+ real_T c1_S_ref;
+ real_T c1_C_L_0;
+ real_T c1_C_L_alpha;
+ real_T c1_C_L_q;
+ real_T c1_C_L_delta_e;
+ real_T c1_C_D_0;
+ real_T c1_k;
+ real_T c1_C_Y_beta;
+ real_T c1_C_Y_p;
+ real_T c1_C_Y_r;
+ real_T c1_C_Y_delta_a;
+ real_T c1_C_l_beta;
+ real_T c1_C_l_p;
+ real_T c1_C_l_r;
+ real_T c1_C_l_delta_a;
+ real_T c1_C_l_delta_r;
+ real_T c1_C_M_0;
+ real_T c1_C_M_alpha;
+ real_T c1_C_M_alpha_dot;
+ real_T c1_C_M_delta_e;
+ real_T c1_C_N_beta;
+ real_T c1_C_N_p;
+ real_T c1_C_N_r;
+ real_T c1_C_N_delta_a;
+ real_T c1_C_N_delta_r;
+ real_T c1_delta_e;
+ real_T c1_delta_a;
+ real_T c1_delta_r;
+ real_T c1_thrust;
+ real_T c1_C_L;
+ real_T c1_C_D;
+ real_T c1_C_Y;
+ real_T c1_C_l;
+ real_T c1_C_M;
+ real_T c1_C_N;
+ real_T c1_C_X;
+ real_T c1_C_Z;
+ real_T c1_q_bar;
+ real_T c1_nargin = 8.0;
+ real_T c1_nargout = 2.0;
+ real_T c1_F[3];
+ real_T c1_M[3];
+ real_T c1_A;
+ real_T c1_B;
+ real_T c1_x;
+ real_T c1_y;
+ real_T c1_b_x;
+ real_T c1_b_y;
+ real_T c1_c_x;
+ real_T c1_c_y;
+ real_T c1_d_y;
+ real_T c1_b_A;
+ real_T c1_b_B;
+ real_T c1_d_x;
+ real_T c1_e_y;
+ real_T c1_e_x;
+ real_T c1_f_y;
+ real_T c1_f_x;
+ real_T c1_g_y;
+ real_T c1_h_y;
+ real_T c1_c_A;
+ real_T c1_c_B;
+ real_T c1_g_x;
+ real_T c1_i_y;
+ real_T c1_h_x;
+ real_T c1_j_y;
+ real_T c1_i_x;
+ real_T c1_k_y;
+ real_T c1_l_y;
+ real_T c1_d_A;
+ real_T c1_d_B;
+ real_T c1_j_x;
+ real_T c1_m_y;
+ real_T c1_k_x;
+ real_T c1_n_y;
+ real_T c1_l_x;
+ real_T c1_o_y;
+ real_T c1_p_y;
+ real_T c1_e_A;
+ real_T c1_e_B;
+ real_T c1_m_x;
+ real_T c1_q_y;
+ real_T c1_n_x;
+ real_T c1_r_y;
+ real_T c1_o_x;
+ real_T c1_s_y;
+ real_T c1_t_y;
+ real_T c1_f_A;
+ real_T c1_f_B;
+ real_T c1_p_x;
+ real_T c1_u_y;
+ real_T c1_q_x;
+ real_T c1_v_y;
+ real_T c1_r_x;
+ real_T c1_w_y;
+ real_T c1_x_y;
+ real_T c1_g_A;
+ real_T c1_g_B;
+ real_T c1_s_x;
+ real_T c1_y_y;
+ real_T c1_t_x;
+ real_T c1_ab_y;
+ real_T c1_u_x;
+ real_T c1_bb_y;
+ real_T c1_cb_y;
+ real_T c1_h_A;
+ real_T c1_h_B;
+ real_T c1_v_x;
+ real_T c1_db_y;
+ real_T c1_w_x;
+ real_T c1_eb_y;
+ real_T c1_x_x;
+ real_T c1_fb_y;
+ real_T c1_gb_y;
+ real_T c1_y_x;
+ real_T c1_ab_x;
+ real_T c1_bb_x;
+ real_T c1_cb_x;
+ real_T c1_db_x;
+ real_T c1_eb_x;
+ real_T c1_fb_x;
+ real_T c1_gb_x;
+ int32_T c1_i6;
+ int32_T c1_i7;
+ real_T c1_hb_x;
+ real_T c1_ib_x;
+ real_T c1_jb_x;
+ real_T c1_kb_x;
+ int32_T c1_i8;
+ int32_T c1_i9;
+ real_T *c1_b_theta;
+ real_T *c1_b_r;
+ real_T *c1_b_q;
+ real_T *c1_b_p;
+ real_T *c1_b_beta;
+ real_T *c1_b_alpha_dot;
+ real_T *c1_b_alpha;
+ real_T *c1_b_V;
+ real_T (*c1_b_F)[3];
+ real_T (*c1_b_M)[3];
+ c1_b_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_b_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 7);
+ c1_b_r = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);
+ c1_b_q = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);
+ c1_b_p = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
+ c1_b_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
+ c1_b_alpha_dot = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
+ c1_b_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
+ c1_b_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_b_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
+ _SFD_CC_CALL(CHART_ENTER_DURING_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent);
+ c1_hoistedGlobal = *c1_b_V;
+ c1_b_hoistedGlobal = *c1_b_alpha;
+ c1_c_hoistedGlobal = *c1_b_alpha_dot;
+ c1_d_hoistedGlobal = *c1_b_beta;
+ c1_e_hoistedGlobal = *c1_b_p;
+ c1_f_hoistedGlobal = *c1_b_q;
+ c1_g_hoistedGlobal = *c1_b_r;
+ c1_h_hoistedGlobal = *c1_b_theta;
+ c1_V = c1_hoistedGlobal;
+ c1_alpha = c1_b_hoistedGlobal;
+ c1_alpha_dot = c1_c_hoistedGlobal;
+ c1_beta = c1_d_hoistedGlobal;
+ c1_p = c1_e_hoistedGlobal;
+ c1_q = c1_f_hoistedGlobal;
+ c1_r = c1_g_hoistedGlobal;
+ c1_theta = c1_h_hoistedGlobal;
+ _SFD_SYMBOL_SCOPE_PUSH_EML(0U, 55U, 55U, c1_debug_family_names,
+ c1_debug_family_var_map);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_g, 0U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_rho, 1U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_m, 2U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_bar, 3U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_b, 4U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_S_ref, 5U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_L_0, 6U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_L_alpha, 7U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_L_q, 8U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_L_delta_e, 9U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_D_0, 10U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_k, 11U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_beta, 12U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_p, 13U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_r, 14U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_Y_delta_a, 15U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_beta, 16U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_p, 17U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_r, 18U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_delta_a, 19U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_l_delta_r, 20U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_M_0, 21U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_M_alpha, 22U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_M_alpha_dot, 23U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_M_delta_e, 24U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_beta, 25U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_p, 26U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_r, 27U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_delta_a, 28U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_C_N_delta_r, 29U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_delta_e, 30U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_delta_a, 31U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_delta_r, 32U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_thrust, 33U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_L, 34U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_D, 35U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_Y, 36U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_l, 37U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_M, 38U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_N, 39U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_X, 40U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_C_Z, 41U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_q_bar, 42U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_nargin, 43U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(&c1_nargout, 44U, c1_b_sf_marshallOut,
+ c1_b_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_V, 45U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_alpha, 46U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_alpha_dot, 47U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_beta, 48U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_p, 49U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_q, 50U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_r, 51U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML(&c1_theta, 52U, c1_b_sf_marshallOut);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c1_F, 53U, c1_sf_marshallOut,
+ c1_sf_marshallIn);
+ _SFD_SYMBOL_SCOPE_ADD_EML_IMPORTABLE(c1_M, 54U, c1_sf_marshallOut,
+ c1_sf_marshallIn);
+ CV_EML_FCN(0, 0);
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 3);
+ c1_g = 9.8;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 4);
+ c1_rho = 1.225;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 6);
+ c1_m = 1043.26;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 7);
+ c1_C_bar = 1.493;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 8);
+ c1_b = 10.911;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 9);
+ c1_S_ref = 16.1651;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 11);
+ c1_C_L_0 = 0.25;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 12);
+ c1_C_L_alpha = 4.47;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 13);
+ c1_C_L_q = 1.7;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 14);
+ c1_C_L_delta_e = 0.3476;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 19);
+ c1_C_D_0 = 0.036;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 20);
+ c1_k = 0.3;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 22);
+ c1_C_Y_beta = -0.31;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 23);
+ c1_C_Y_p = -0.037;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 24);
+ c1_C_Y_r = 0.21;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 25);
+ c1_C_Y_delta_a = 0.0;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 27);
+ c1_C_l_beta = -0.089;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 28);
+ c1_C_l_p = -0.47;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 29);
+ c1_C_l_r = 0.096;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 30);
+ c1_C_l_delta_a = -0.09;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 31);
+ c1_C_l_delta_r = 0.0147;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 33);
+ c1_C_M_0 = -0.02;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 34);
+ c1_C_M_alpha = -1.8;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 35);
+ c1_C_M_alpha_dot = -12.4;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 36);
+ c1_C_M_delta_e = -1.28;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 38);
+ c1_C_N_beta = 0.065;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 39);
+ c1_C_N_p = -0.03;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 40);
+ c1_C_N_r = -0.99;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 41);
+ c1_C_N_delta_a = -0.0053;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 42);
+ c1_C_N_delta_r = -0.0657;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 46);
+ c1_delta_e = 0.0338;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 47);
+ c1_delta_a = 0.0;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 48);
+ c1_delta_r = 0.0;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 49);
+ c1_thrust = 4219.6;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 51);
+ c1_A = c1_q * 1.493;
+ c1_B = 2.0 * c1_V;
+ c1_x = c1_A;
+ c1_y = c1_B;
+ c1_b_x = c1_x;
+ c1_b_y = c1_y;
+ c1_c_x = c1_b_x;
+ c1_c_y = c1_b_y;
+ c1_d_y = c1_c_x / c1_c_y;
+ c1_C_L = ((c1_C_L_0 + 4.47 * c1_alpha) + 1.7 * c1_d_y) + 0.01174888;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 52);
+ c1_C_D = c1_C_D_0 + 0.3 * c1_mpower(chartInstance, c1_C_L);
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 53);
+ c1_b_A = c1_p * 10.911;
+ c1_b_B = 2.0 * c1_V;
+ c1_d_x = c1_b_A;
+ c1_e_y = c1_b_B;
+ c1_e_x = c1_d_x;
+ c1_f_y = c1_e_y;
+ c1_f_x = c1_e_x;
+ c1_g_y = c1_f_y;
+ c1_h_y = c1_f_x / c1_g_y;
+ c1_c_A = c1_r * 10.911;
+ c1_c_B = 2.0 * c1_V;
+ c1_g_x = c1_c_A;
+ c1_i_y = c1_c_B;
+ c1_h_x = c1_g_x;
+ c1_j_y = c1_i_y;
+ c1_i_x = c1_h_x;
+ c1_k_y = c1_j_y;
+ c1_l_y = c1_i_x / c1_k_y;
+ c1_C_Y = (-0.31 * c1_beta + -0.037 * c1_h_y) + 0.21 * c1_l_y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 55);
+ c1_d_A = c1_p * 10.911;
+ c1_d_B = 2.0 * c1_V;
+ c1_j_x = c1_d_A;
+ c1_m_y = c1_d_B;
+ c1_k_x = c1_j_x;
+ c1_n_y = c1_m_y;
+ c1_l_x = c1_k_x;
+ c1_o_y = c1_n_y;
+ c1_p_y = c1_l_x / c1_o_y;
+ c1_e_A = c1_r * 10.911;
+ c1_e_B = 2.0 * c1_V;
+ c1_m_x = c1_e_A;
+ c1_q_y = c1_e_B;
+ c1_n_x = c1_m_x;
+ c1_r_y = c1_q_y;
+ c1_o_x = c1_n_x;
+ c1_s_y = c1_r_y;
+ c1_t_y = c1_o_x / c1_s_y;
+ c1_C_l = (-0.089 * c1_beta + -0.47 * c1_p_y) + 0.096 * c1_t_y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 56);
+ c1_f_A = c1_alpha_dot * 1.493;
+ c1_f_B = 2.0 * c1_V;
+ c1_p_x = c1_f_A;
+ c1_u_y = c1_f_B;
+ c1_q_x = c1_p_x;
+ c1_v_y = c1_u_y;
+ c1_r_x = c1_q_x;
+ c1_w_y = c1_v_y;
+ c1_x_y = c1_r_x / c1_w_y;
+ c1_C_M = ((c1_C_M_0 + -1.8 * c1_alpha) + -12.4 * c1_x_y) + -0.043264;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 57);
+ c1_g_A = c1_p * 10.911;
+ c1_g_B = 2.0 * c1_V;
+ c1_s_x = c1_g_A;
+ c1_y_y = c1_g_B;
+ c1_t_x = c1_s_x;
+ c1_ab_y = c1_y_y;
+ c1_u_x = c1_t_x;
+ c1_bb_y = c1_ab_y;
+ c1_cb_y = c1_u_x / c1_bb_y;
+ c1_h_A = c1_r * 10.911;
+ c1_h_B = 2.0 * c1_V;
+ c1_v_x = c1_h_A;
+ c1_db_y = c1_h_B;
+ c1_w_x = c1_v_x;
+ c1_eb_y = c1_db_y;
+ c1_x_x = c1_w_x;
+ c1_fb_y = c1_eb_y;
+ c1_gb_y = c1_x_x / c1_fb_y;
+ c1_C_N = (0.065 * c1_beta + -0.03 * c1_cb_y) + -0.99 * c1_gb_y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 59);
+ c1_y_x = c1_alpha;
+ c1_ab_x = c1_y_x;
+ c1_ab_x = muDoubleScalarCos(c1_ab_x);
+ c1_bb_x = c1_alpha;
+ c1_cb_x = c1_bb_x;
+ c1_cb_x = muDoubleScalarSin(c1_cb_x);
+ c1_C_X = -c1_C_D * c1_ab_x + c1_C_L * c1_cb_x;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 60);
+ c1_db_x = c1_alpha;
+ c1_eb_x = c1_db_x;
+ c1_eb_x = muDoubleScalarSin(c1_eb_x);
+ c1_fb_x = c1_alpha;
+ c1_gb_x = c1_fb_x;
+ c1_gb_x = muDoubleScalarCos(c1_gb_x);
+ c1_C_Z = -c1_C_D * c1_eb_x - c1_C_L * c1_gb_x;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 62);
+ for (c1_i6 = 0; c1_i6 < 3; c1_i6++) {
+ c1_F[c1_i6] = 0.0;
+ }
+
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 63);
+ for (c1_i7 = 0; c1_i7 < 3; c1_i7++) {
+ c1_M[c1_i7] = 0.0;
+ }
+
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 65);
+ c1_q_bar = 0.6125 * c1_V * c1_V;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 67);
+ c1_hb_x = c1_theta;
+ c1_ib_x = c1_hb_x;
+ c1_ib_x = muDoubleScalarSin(c1_ib_x);
+ c1_F[0] = (c1_q_bar * 16.1651 * c1_C_X - 10223.948 * c1_ib_x) + c1_thrust;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 68);
+ c1_F[1] = c1_q_bar * 16.1651 * c1_C_Y;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 69);
+ c1_jb_x = c1_theta;
+ c1_kb_x = c1_jb_x;
+ c1_kb_x = muDoubleScalarCos(c1_kb_x);
+ c1_F[2] = c1_q_bar * 16.1651 * c1_C_Z + 10223.948 * c1_kb_x;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 71);
+ c1_M[0] = c1_q_bar * 10.911 * 16.1651 * c1_C_l;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 72);
+ c1_M[1] = c1_q_bar * 1.493 * 16.1651 * c1_C_M;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, 73);
+ c1_M[2] = c1_q_bar * 10.911 * 16.1651 * c1_C_N;
+ _SFD_EML_CALL(0U, chartInstance->c1_sfEvent, -73);
+ _SFD_SYMBOL_SCOPE_POP();
+ for (c1_i8 = 0; c1_i8 < 3; c1_i8++) {
+ (*c1_b_F)[c1_i8] = c1_F[c1_i8];
+ }
+
+ for (c1_i9 = 0; c1_i9 < 3; c1_i9++) {
+ (*c1_b_M)[c1_i9] = c1_M[c1_i9];
+ }
+
+ _SFD_CC_CALL(EXIT_OUT_OF_FUNCTION_TAG, 0U, chartInstance->c1_sfEvent);
+}
+
+static void initSimStructsc1_Cessna_6DOF(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static void init_script_number_translation(uint32_T c1_machineNumber, uint32_T
+ c1_chartNumber, uint32_T c1_instanceNumber)
+{
+ (void)c1_machineNumber;
+ (void)c1_chartNumber;
+ (void)c1_instanceNumber;
+}
+
+static const mxArray *c1_sf_marshallOut(void *chartInstanceVoid, void *c1_inData)
+{
+ const mxArray *c1_mxArrayOutData = NULL;
+ int32_T c1_i10;
+ real_T c1_b_inData[3];
+ int32_T c1_i11;
+ real_T c1_u[3];
+ const mxArray *c1_y = NULL;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_mxArrayOutData = NULL;
+ for (c1_i10 = 0; c1_i10 < 3; c1_i10++) {
+ c1_b_inData[c1_i10] = (*(real_T (*)[3])c1_inData)[c1_i10];
+ }
+
+ for (c1_i11 = 0; c1_i11 < 3; c1_i11++) {
+ c1_u[c1_i11] = c1_b_inData[c1_i11];
+ }
+
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 0, 0U, 1U, 0U, 1, 3), false);
+ sf_mex_assign(&c1_mxArrayOutData, c1_y, false);
+ return c1_mxArrayOutData;
+}
+
+static void c1_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_M, const char_T *c1_identifier, real_T c1_y[3])
+{
+ emlrtMsgIdentifier c1_thisId;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_M), &c1_thisId, c1_y);
+ sf_mex_destroy(&c1_M);
+}
+
+static void c1_b_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct *chartInstance,
+ const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, real_T c1_y[3])
+{
+ real_T c1_dv2[3];
+ int32_T c1_i12;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_dv2, 1, 0, 0U, 1, 0U, 1, 3);
+ for (c1_i12 = 0; c1_i12 < 3; c1_i12++) {
+ c1_y[c1_i12] = c1_dv2[c1_i12];
+ }
+
+ sf_mex_destroy(&c1_u);
+}
+
+static void c1_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData)
+{
+ const mxArray *c1_M;
+ const char_T *c1_identifier;
+ emlrtMsgIdentifier c1_thisId;
+ real_T c1_y[3];
+ int32_T c1_i13;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_M = sf_mex_dup(c1_mxArrayInData);
+ c1_identifier = c1_varName;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_M), &c1_thisId, c1_y);
+ sf_mex_destroy(&c1_M);
+ for (c1_i13 = 0; c1_i13 < 3; c1_i13++) {
+ (*(real_T (*)[3])c1_outData)[c1_i13] = c1_y[c1_i13];
+ }
+
+ sf_mex_destroy(&c1_mxArrayInData);
+}
+
+static const mxArray *c1_b_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData)
+{
+ const mxArray *c1_mxArrayOutData = NULL;
+ real_T c1_u;
+ const mxArray *c1_y = NULL;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_mxArrayOutData = NULL;
+ c1_u = *(real_T *)c1_inData;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 0, 0U, 0U, 0U, 0), false);
+ sf_mex_assign(&c1_mxArrayOutData, c1_y, false);
+ return c1_mxArrayOutData;
+}
+
+static real_T c1_c_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId)
+{
+ real_T c1_y;
+ real_T c1_d0;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_d0, 1, 0, 0U, 0, 0U, 0);
+ c1_y = c1_d0;
+ sf_mex_destroy(&c1_u);
+ return c1_y;
+}
+
+static void c1_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData)
+{
+ const mxArray *c1_nargout;
+ const char_T *c1_identifier;
+ emlrtMsgIdentifier c1_thisId;
+ real_T c1_y;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_nargout = sf_mex_dup(c1_mxArrayInData);
+ c1_identifier = c1_varName;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_y = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_nargout), &c1_thisId);
+ sf_mex_destroy(&c1_nargout);
+ *(real_T *)c1_outData = c1_y;
+ sf_mex_destroy(&c1_mxArrayInData);
+}
+
+const mxArray *sf_c1_Cessna_6DOF_get_eml_resolved_functions_info(void)
+{
+ const mxArray *c1_nameCaptureInfo = NULL;
+ c1_nameCaptureInfo = NULL;
+ sf_mex_assign(&c1_nameCaptureInfo, sf_mex_createstruct("structure", 2, 24, 1),
+ false);
+ c1_info_helper(&c1_nameCaptureInfo);
+ sf_mex_emlrtNameCapturePostProcessR2012a(&c1_nameCaptureInfo);
+ return c1_nameCaptureInfo;
+}
+
+static void c1_info_helper(const mxArray **c1_info)
+{
+ const mxArray *c1_rhs0 = NULL;
+ const mxArray *c1_lhs0 = NULL;
+ const mxArray *c1_rhs1 = NULL;
+ const mxArray *c1_lhs1 = NULL;
+ const mxArray *c1_rhs2 = NULL;
+ const mxArray *c1_lhs2 = NULL;
+ const mxArray *c1_rhs3 = NULL;
+ const mxArray *c1_lhs3 = NULL;
+ const mxArray *c1_rhs4 = NULL;
+ const mxArray *c1_lhs4 = NULL;
+ const mxArray *c1_rhs5 = NULL;
+ const mxArray *c1_lhs5 = NULL;
+ const mxArray *c1_rhs6 = NULL;
+ const mxArray *c1_lhs6 = NULL;
+ const mxArray *c1_rhs7 = NULL;
+ const mxArray *c1_lhs7 = NULL;
+ const mxArray *c1_rhs8 = NULL;
+ const mxArray *c1_lhs8 = NULL;
+ const mxArray *c1_rhs9 = NULL;
+ const mxArray *c1_lhs9 = NULL;
+ const mxArray *c1_rhs10 = NULL;
+ const mxArray *c1_lhs10 = NULL;
+ const mxArray *c1_rhs11 = NULL;
+ const mxArray *c1_lhs11 = NULL;
+ const mxArray *c1_rhs12 = NULL;
+ const mxArray *c1_lhs12 = NULL;
+ const mxArray *c1_rhs13 = NULL;
+ const mxArray *c1_lhs13 = NULL;
+ const mxArray *c1_rhs14 = NULL;
+ const mxArray *c1_lhs14 = NULL;
+ const mxArray *c1_rhs15 = NULL;
+ const mxArray *c1_lhs15 = NULL;
+ const mxArray *c1_rhs16 = NULL;
+ const mxArray *c1_lhs16 = NULL;
+ const mxArray *c1_rhs17 = NULL;
+ const mxArray *c1_lhs17 = NULL;
+ const mxArray *c1_rhs18 = NULL;
+ const mxArray *c1_lhs18 = NULL;
+ const mxArray *c1_rhs19 = NULL;
+ const mxArray *c1_lhs19 = NULL;
+ const mxArray *c1_rhs20 = NULL;
+ const mxArray *c1_lhs20 = NULL;
+ const mxArray *c1_rhs21 = NULL;
+ const mxArray *c1_lhs21 = NULL;
+ const mxArray *c1_rhs22 = NULL;
+ const mxArray *c1_lhs22 = NULL;
+ const mxArray *c1_rhs23 = NULL;
+ const mxArray *c1_lhs23 = NULL;
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("mrdivide"), "name", "name", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "resolved",
+ "resolved", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1388463696U), "fileTimeLo",
+ "fileTimeLo", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1370017086U), "mFileTimeLo",
+ "mFileTimeLo", 0);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 0);
+ sf_mex_assign(&c1_rhs0, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs0, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs0), "rhs", "rhs", 0);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs0), "lhs", "lhs", 0);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "context",
+ "context", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.assert"),
+ "name", "name", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("char"), "dominantType",
+ "dominantType", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/assert.m"),
+ "resolved", "resolved", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 1);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 1);
+ sf_mex_assign(&c1_rhs1, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs1, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs1), "rhs", "rhs", 1);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs1), "lhs", "lhs", 1);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mrdivide.p"), "context",
+ "context", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("rdivide"), "name", "name", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "resolved",
+ "resolved", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717480U), "fileTimeLo",
+ "fileTimeLo", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 2);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 2);
+ sf_mex_assign(&c1_rhs2, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs2, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs2), "rhs", "rhs", 2);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs2), "lhs", "lhs", 2);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
+ "context", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 3);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 3);
+ sf_mex_assign(&c1_rhs3, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs3, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs3), "rhs", "rhs", 3);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs3), "lhs", "lhs", 3);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
+ "context", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalexp_compatible"),
+ "name", "name", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_compatible.m"),
+ "resolved", "resolved", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825996U), "fileTimeLo",
+ "fileTimeLo", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 4);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 4);
+ sf_mex_assign(&c1_rhs4, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs4, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs4), "rhs", "rhs", 4);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs4), "lhs", "lhs", 4);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/rdivide.m"), "context",
+ "context", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_div"), "name", "name", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_div.m"), "resolved",
+ "resolved", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 5);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 5);
+ sf_mex_assign(&c1_rhs5, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs5, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs5), "rhs", "rhs", 5);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs5), "lhs", "lhs", 5);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_div.m"), "context",
+ "context", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.div"), "name",
+ "name", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/coder/coder/+coder/+internal/div.p"), "resolved",
+ "resolved", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1389311520U), "fileTimeLo",
+ "fileTimeLo", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 6);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 6);
+ sf_mex_assign(&c1_rhs6, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs6, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs6), "rhs", "rhs", 6);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs6), "lhs", "lhs", 6);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("mpower"), "name", "name", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "resolved",
+ "resolved", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717478U), "fileTimeLo",
+ "fileTimeLo", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 7);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 7);
+ sf_mex_assign(&c1_rhs7, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs7, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs7), "rhs", "rhs", 7);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs7), "lhs", "lhs", 7);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "context",
+ "context", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 8);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 8);
+ sf_mex_assign(&c1_rhs8, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs8, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs8), "rhs", "rhs", 8);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs8), "lhs", "lhs", 8);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "context",
+ "context", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("ismatrix"), "name", "name", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elmat/ismatrix.m"), "resolved",
+ "resolved", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1331308458U), "fileTimeLo",
+ "fileTimeLo", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 9);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 9);
+ sf_mex_assign(&c1_rhs9, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs9, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs9), "rhs", "rhs", 9);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs9), "lhs", "lhs", 9);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/mpower.m"), "context",
+ "context", 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("power"), "name", "name", 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m"), "resolved",
+ "resolved", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717480U), "fileTimeLo",
+ "fileTimeLo", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 10);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 10);
+ sf_mex_assign(&c1_rhs10, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs10, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs10), "rhs", "rhs",
+ 10);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs10), "lhs", "lhs",
+ 10);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m"), "context",
+ "context", 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 11);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 11);
+ sf_mex_assign(&c1_rhs11, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs11, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs11), "rhs", "rhs",
+ 11);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs11), "lhs", "lhs",
+ 11);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!fltpower"), "context",
+ "context", 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_eg"), "name",
+ "name", 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "resolved",
+ "resolved", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 12);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 12);
+ sf_mex_assign(&c1_rhs12, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs12, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs12), "rhs", "rhs",
+ 12);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs12), "lhs", "lhs",
+ 12);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "context",
+ "context", 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.scalarEg"),
+ "name", "name", 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/coder/coder/+coder/+internal/scalarEg.p"),
+ "resolved", "resolved", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1389311520U), "fileTimeLo",
+ "fileTimeLo", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 13);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 13);
+ sf_mex_assign(&c1_rhs13, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs13, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs13), "rhs", "rhs",
+ 13);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs13), "lhs", "lhs",
+ 13);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!fltpower"), "context",
+ "context", 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalexp_alloc"), "name",
+ "name", 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_alloc.m"),
+ "resolved", "resolved", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 14);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 14);
+ sf_mex_assign(&c1_rhs14, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs14, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs14), "rhs", "rhs",
+ 14);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs14), "lhs", "lhs",
+ 14);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalexp_alloc.m"),
+ "context", "context", 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("coder.internal.scalexpAlloc"),
+ "name", "name", 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/coder/coder/+coder/+internal/scalexpAlloc.p"),
+ "resolved", "resolved", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1389311520U), "fileTimeLo",
+ "fileTimeLo", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 15);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 15);
+ sf_mex_assign(&c1_rhs15, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs15, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs15), "rhs", "rhs",
+ 15);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs15), "lhs", "lhs",
+ 15);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!fltpower"), "context",
+ "context", 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("floor"), "name", "name", 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "resolved",
+ "resolved", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363717454U), "fileTimeLo",
+ "fileTimeLo", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 16);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 16);
+ sf_mex_assign(&c1_rhs16, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs16, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs16), "rhs", "rhs",
+ 16);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs16), "lhs", "lhs",
+ 16);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "context",
+ "context", 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "coder.internal.isBuiltInNumeric"), "name", "name", 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[IXE]$matlabroot$/toolbox/shared/coder/coder/+coder/+internal/isBuiltInNumeric.m"),
+ "resolved", "resolved", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1363718156U), "fileTimeLo",
+ "fileTimeLo", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 17);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 17);
+ sf_mex_assign(&c1_rhs17, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs17, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs17), "rhs", "rhs",
+ 17);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs17), "lhs", "lhs",
+ 17);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/floor.m"), "context",
+ "context", 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_floor"), "name",
+ "name", 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_floor.m"),
+ "resolved", "resolved", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825926U), "fileTimeLo",
+ "fileTimeLo", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 18);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 18);
+ sf_mex_assign(&c1_rhs18, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs18, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs18), "rhs", "rhs",
+ 18);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs18), "lhs", "lhs",
+ 18);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/ops/power.m!scalar_float_power"),
+ "context", "context", 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_eg"), "name",
+ "name", 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/eml/eml_scalar_eg.m"), "resolved",
+ "resolved", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1375987888U), "fileTimeLo",
+ "fileTimeLo", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 19);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 19);
+ sf_mex_assign(&c1_rhs19, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs19, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs19), "rhs", "rhs",
+ 19);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs19), "lhs", "lhs",
+ 19);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("cos"), "name", "name", 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/cos.m"), "resolved",
+ "resolved", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1343837572U), "fileTimeLo",
+ "fileTimeLo", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 20);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 20);
+ sf_mex_assign(&c1_rhs20, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs20, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs20), "rhs", "rhs",
+ 20);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs20), "lhs", "lhs",
+ 20);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/cos.m"), "context",
+ "context", 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_cos"), "name",
+ "name", 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_cos.m"),
+ "resolved", "resolved", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825922U), "fileTimeLo",
+ "fileTimeLo", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 21);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 21);
+ sf_mex_assign(&c1_rhs21, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs21, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs21), "rhs", "rhs",
+ 21);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs21), "lhs", "lhs",
+ 21);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(""), "context", "context", 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("sin"), "name", "name", 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/sin.m"), "resolved",
+ "resolved", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1343837586U), "fileTimeLo",
+ "fileTimeLo", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 22);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 22);
+ sf_mex_assign(&c1_rhs22, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs22, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs22), "rhs", "rhs",
+ 22);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs22), "lhs", "lhs",
+ 22);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/sin.m"), "context",
+ "context", 23);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("eml_scalar_sin"), "name",
+ "name", 23);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut("double"), "dominantType",
+ "dominantType", 23);
+ sf_mex_addfield(*c1_info, c1_emlrt_marshallOut(
+ "[ILXE]$matlabroot$/toolbox/eml/lib/matlab/elfun/eml_scalar_sin.m"),
+ "resolved", "resolved", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(1286825936U), "fileTimeLo",
+ "fileTimeLo", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "fileTimeHi",
+ "fileTimeHi", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeLo",
+ "mFileTimeLo", 23);
+ sf_mex_addfield(*c1_info, c1_b_emlrt_marshallOut(0U), "mFileTimeHi",
+ "mFileTimeHi", 23);
+ sf_mex_assign(&c1_rhs23, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_assign(&c1_lhs23, sf_mex_createcellmatrix(0, 1), false);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_rhs23), "rhs", "rhs",
+ 23);
+ sf_mex_addfield(*c1_info, sf_mex_duplicatearraysafe(&c1_lhs23), "lhs", "lhs",
+ 23);
+ sf_mex_destroy(&c1_rhs0);
+ sf_mex_destroy(&c1_lhs0);
+ sf_mex_destroy(&c1_rhs1);
+ sf_mex_destroy(&c1_lhs1);
+ sf_mex_destroy(&c1_rhs2);
+ sf_mex_destroy(&c1_lhs2);
+ sf_mex_destroy(&c1_rhs3);
+ sf_mex_destroy(&c1_lhs3);
+ sf_mex_destroy(&c1_rhs4);
+ sf_mex_destroy(&c1_lhs4);
+ sf_mex_destroy(&c1_rhs5);
+ sf_mex_destroy(&c1_lhs5);
+ sf_mex_destroy(&c1_rhs6);
+ sf_mex_destroy(&c1_lhs6);
+ sf_mex_destroy(&c1_rhs7);
+ sf_mex_destroy(&c1_lhs7);
+ sf_mex_destroy(&c1_rhs8);
+ sf_mex_destroy(&c1_lhs8);
+ sf_mex_destroy(&c1_rhs9);
+ sf_mex_destroy(&c1_lhs9);
+ sf_mex_destroy(&c1_rhs10);
+ sf_mex_destroy(&c1_lhs10);
+ sf_mex_destroy(&c1_rhs11);
+ sf_mex_destroy(&c1_lhs11);
+ sf_mex_destroy(&c1_rhs12);
+ sf_mex_destroy(&c1_lhs12);
+ sf_mex_destroy(&c1_rhs13);
+ sf_mex_destroy(&c1_lhs13);
+ sf_mex_destroy(&c1_rhs14);
+ sf_mex_destroy(&c1_lhs14);
+ sf_mex_destroy(&c1_rhs15);
+ sf_mex_destroy(&c1_lhs15);
+ sf_mex_destroy(&c1_rhs16);
+ sf_mex_destroy(&c1_lhs16);
+ sf_mex_destroy(&c1_rhs17);
+ sf_mex_destroy(&c1_lhs17);
+ sf_mex_destroy(&c1_rhs18);
+ sf_mex_destroy(&c1_lhs18);
+ sf_mex_destroy(&c1_rhs19);
+ sf_mex_destroy(&c1_lhs19);
+ sf_mex_destroy(&c1_rhs20);
+ sf_mex_destroy(&c1_lhs20);
+ sf_mex_destroy(&c1_rhs21);
+ sf_mex_destroy(&c1_lhs21);
+ sf_mex_destroy(&c1_rhs22);
+ sf_mex_destroy(&c1_lhs22);
+ sf_mex_destroy(&c1_rhs23);
+ sf_mex_destroy(&c1_lhs23);
+}
+
+static const mxArray *c1_emlrt_marshallOut(const char * c1_u)
+{
+ const mxArray *c1_y = NULL;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", c1_u, 15, 0U, 0U, 0U, 2, 1, strlen
+ (c1_u)), false);
+ return c1_y;
+}
+
+static const mxArray *c1_b_emlrt_marshallOut(const uint32_T c1_u)
+{
+ const mxArray *c1_y = NULL;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 7, 0U, 0U, 0U, 0), false);
+ return c1_y;
+}
+
+static real_T c1_mpower(SFc1_Cessna_6DOFInstanceStruct *chartInstance, real_T
+ c1_a)
+{
+ real_T c1_b_a;
+ real_T c1_c_a;
+ real_T c1_ak;
+ real_T c1_d_a;
+ c1_b_a = c1_a;
+ c1_c_a = c1_b_a;
+ c1_eml_scalar_eg(chartInstance);
+ c1_ak = c1_c_a;
+ c1_d_a = c1_ak;
+ c1_eml_scalar_eg(chartInstance);
+ return c1_d_a * c1_d_a;
+}
+
+static void c1_eml_scalar_eg(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ (void)chartInstance;
+}
+
+static const mxArray *c1_c_sf_marshallOut(void *chartInstanceVoid, void
+ *c1_inData)
+{
+ const mxArray *c1_mxArrayOutData = NULL;
+ int32_T c1_u;
+ const mxArray *c1_y = NULL;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_mxArrayOutData = NULL;
+ c1_u = *(int32_T *)c1_inData;
+ c1_y = NULL;
+ sf_mex_assign(&c1_y, sf_mex_create("y", &c1_u, 6, 0U, 0U, 0U, 0), false);
+ sf_mex_assign(&c1_mxArrayOutData, c1_y, false);
+ return c1_mxArrayOutData;
+}
+
+static int32_T c1_d_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId)
+{
+ int32_T c1_y;
+ int32_T c1_i14;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_i14, 1, 6, 0U, 0, 0U, 0);
+ c1_y = c1_i14;
+ sf_mex_destroy(&c1_u);
+ return c1_y;
+}
+
+static void c1_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
+ *c1_mxArrayInData, const char_T *c1_varName, void *c1_outData)
+{
+ const mxArray *c1_b_sfEvent;
+ const char_T *c1_identifier;
+ emlrtMsgIdentifier c1_thisId;
+ int32_T c1_y;
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)chartInstanceVoid;
+ c1_b_sfEvent = sf_mex_dup(c1_mxArrayInData);
+ c1_identifier = c1_varName;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_y = c1_d_emlrt_marshallIn(chartInstance, sf_mex_dup(c1_b_sfEvent),
+ &c1_thisId);
+ sf_mex_destroy(&c1_b_sfEvent);
+ *(int32_T *)c1_outData = c1_y;
+ sf_mex_destroy(&c1_mxArrayInData);
+}
+
+static uint8_T c1_e_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_b_is_active_c1_Cessna_6DOF, const char_T
+ *c1_identifier)
+{
+ uint8_T c1_y;
+ emlrtMsgIdentifier c1_thisId;
+ c1_thisId.fIdentifier = c1_identifier;
+ c1_thisId.fParent = NULL;
+ c1_y = c1_f_emlrt_marshallIn(chartInstance, sf_mex_dup
+ (c1_b_is_active_c1_Cessna_6DOF), &c1_thisId);
+ sf_mex_destroy(&c1_b_is_active_c1_Cessna_6DOF);
+ return c1_y;
+}
+
+static uint8_T c1_f_emlrt_marshallIn(SFc1_Cessna_6DOFInstanceStruct
+ *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId)
+{
+ uint8_T c1_y;
+ uint8_T c1_u0;
+ (void)chartInstance;
+ sf_mex_import(c1_parentId, sf_mex_dup(c1_u), &c1_u0, 1, 3, 0U, 0, 0U, 0);
+ c1_y = c1_u0;
+ sf_mex_destroy(&c1_u);
+ return c1_y;
+}
+
+static void init_dsm_address_info(SFc1_Cessna_6DOFInstanceStruct *chartInstance)
+{
+ (void)chartInstance;
+}
+
+/* SFunction Glue Code */
+#ifdef utFree
+#undef utFree
+#endif
+
+#ifdef utMalloc
+#undef utMalloc
+#endif
+
+#ifdef __cplusplus
+
+extern "C" void *utMalloc(size_t size);
+extern "C" void utFree(void*);
+
+#else
+
+extern void *utMalloc(size_t size);
+extern void utFree(void*);
+
+#endif
+
+void sf_c1_Cessna_6DOF_get_check_sum(mxArray *plhs[])
+{
+ ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2441411494U);
+ ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(3799077463U);
+ ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(3332296302U);
+ ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(1856172960U);
+}
+
+mxArray *sf_c1_Cessna_6DOF_get_autoinheritance_info(void)
+{
+ const char *autoinheritanceFields[] = { "checksum", "inputs", "parameters",
+ "outputs", "locals" };
+
+ mxArray *mxAutoinheritanceInfo = mxCreateStructMatrix(1,1,5,
+ autoinheritanceFields);
+
+ {
+ mxArray *mxChecksum = mxCreateString("B6ShapczQeOvAhTG9KtlQC");
+ mxSetField(mxAutoinheritanceInfo,0,"checksum",mxChecksum);
+ }
+
+ {
+ const char *dataFields[] = { "size", "type", "complexity" };
+
+ mxArray *mxData = mxCreateStructMatrix(1,8,3,dataFields);
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,0,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,0,"type",mxType);
+ }
+
+ mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,1,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,1,"type",mxType);
+ }
+
+ mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,2,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,2,"type",mxType);
+ }
+
+ mxSetField(mxData,2,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,3,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,3,"type",mxType);
+ }
+
+ mxSetField(mxData,3,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,4,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,4,"type",mxType);
+ }
+
+ mxSetField(mxData,4,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,5,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,5,"type",mxType);
+ }
+
+ mxSetField(mxData,5,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,6,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,6,"type",mxType);
+ }
+
+ mxSetField(mxData,6,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(1);
+ pr[1] = (double)(1);
+ mxSetField(mxData,7,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,7,"type",mxType);
+ }
+
+ mxSetField(mxData,7,"complexity",mxCreateDoubleScalar(0));
+ mxSetField(mxAutoinheritanceInfo,0,"inputs",mxData);
+ }
+
+ {
+ mxSetField(mxAutoinheritanceInfo,0,"parameters",mxCreateDoubleMatrix(0,0,
+ mxREAL));
+ }
+
+ {
+ const char *dataFields[] = { "size", "type", "complexity" };
+
+ mxArray *mxData = mxCreateStructMatrix(1,2,3,dataFields);
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(3);
+ pr[1] = (double)(1);
+ mxSetField(mxData,0,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,0,"type",mxType);
+ }
+
+ mxSetField(mxData,0,"complexity",mxCreateDoubleScalar(0));
+
+ {
+ mxArray *mxSize = mxCreateDoubleMatrix(1,2,mxREAL);
+ double *pr = mxGetPr(mxSize);
+ pr[0] = (double)(3);
+ pr[1] = (double)(1);
+ mxSetField(mxData,1,"size",mxSize);
+ }
+
+ {
+ const char *typeFields[] = { "base", "fixpt" };
+
+ mxArray *mxType = mxCreateStructMatrix(1,1,2,typeFields);
+ mxSetField(mxType,0,"base",mxCreateDoubleScalar(10));
+ mxSetField(mxType,0,"fixpt",mxCreateDoubleMatrix(0,0,mxREAL));
+ mxSetField(mxData,1,"type",mxType);
+ }
+
+ mxSetField(mxData,1,"complexity",mxCreateDoubleScalar(0));
+ mxSetField(mxAutoinheritanceInfo,0,"outputs",mxData);
+ }
+
+ {
+ mxSetField(mxAutoinheritanceInfo,0,"locals",mxCreateDoubleMatrix(0,0,mxREAL));
+ }
+
+ return(mxAutoinheritanceInfo);
+}
+
+mxArray *sf_c1_Cessna_6DOF_third_party_uses_info(void)
+{
+ mxArray * mxcell3p = mxCreateCellMatrix(1,0);
+ return(mxcell3p);
+}
+
+mxArray *sf_c1_Cessna_6DOF_updateBuildInfo_args_info(void)
+{
+ mxArray *mxBIArgs = mxCreateCellMatrix(1,0);
+ return mxBIArgs;
+}
+
+static const mxArray *sf_get_sim_state_info_c1_Cessna_6DOF(void)
+{
+ const char *infoFields[] = { "chartChecksum", "varInfo" };
+
+ mxArray *mxInfo = mxCreateStructMatrix(1, 1, 2, infoFields);
+ const char *infoEncStr[] = {
+ "100 S1x3'type','srcId','name','auxInfo'{{M[1],M[5],T\"F\",},{M[1],M[12],T\"M\",},{M[8],M[0],T\"is_active_c1_Cessna_6DOF\",}}"
+ };
+
+ mxArray *mxVarInfo = sf_mex_decode_encoded_mx_struct_array(infoEncStr, 3, 10);
+ mxArray *mxChecksum = mxCreateDoubleMatrix(1, 4, mxREAL);
+ sf_c1_Cessna_6DOF_get_check_sum(&mxChecksum);
+ mxSetField(mxInfo, 0, infoFields[0], mxChecksum);
+ mxSetField(mxInfo, 0, infoFields[1], mxVarInfo);
+ return mxInfo;
+}
+
+static void chart_debug_initialization(SimStruct *S, unsigned int
+ fullDebuggerInitialization)
+{
+ if (!sim_mode_is_rtw_gen(S)) {
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *) chartInfo->chartInstance;
+ if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
+ /* do this only if simulation is starting */
+ {
+ unsigned int chartAlreadyPresent;
+ chartAlreadyPresent = sf_debug_initialize_chart
+ (sfGlobalDebugInstanceStruct,
+ _Cessna_6DOFMachineNumber_,
+ 1,
+ 1,
+ 1,
+ 0,
+ 10,
+ 0,
+ 0,
+ 0,
+ 0,
+ 0,
+ &(chartInstance->chartNumber),
+ &(chartInstance->instanceNumber),
+ (void *)S);
+
+ /* Each instance must initialize ist own list of scripts */
+ init_script_number_translation(_Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber,chartInstance->instanceNumber);
+ if (chartAlreadyPresent==0) {
+ /* this is the first instance */
+ sf_debug_set_chart_disable_implicit_casting
+ (sfGlobalDebugInstanceStruct,_Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber,1);
+ sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
+ _Cessna_6DOFMachineNumber_,
+ chartInstance->chartNumber,
+ 0,
+ 0,
+ 0);
+ _SFD_SET_DATA_PROPS(0,1,1,0,"V");
+ _SFD_SET_DATA_PROPS(1,2,0,1,"F");
+ _SFD_SET_DATA_PROPS(2,1,1,0,"alpha");
+ _SFD_SET_DATA_PROPS(3,1,1,0,"alpha_dot");
+ _SFD_SET_DATA_PROPS(4,1,1,0,"beta");
+ _SFD_SET_DATA_PROPS(5,1,1,0,"p");
+ _SFD_SET_DATA_PROPS(6,1,1,0,"q");
+ _SFD_SET_DATA_PROPS(7,1,1,0,"r");
+ _SFD_SET_DATA_PROPS(8,1,1,0,"theta");
+ _SFD_SET_DATA_PROPS(9,2,0,1,"M");
+ _SFD_STATE_INFO(0,0,2);
+ _SFD_CH_SUBSTATE_COUNT(0);
+ _SFD_CH_SUBSTATE_DECOMP(0);
+ }
+
+ _SFD_CV_INIT_CHART(0,0,0,0);
+
+ {
+ _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
+ }
+
+ _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
+
+ /* Initialization of MATLAB Function Model Coverage */
+ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0);
+ _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,1623);
+ _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+
+ {
+ unsigned int dimVector[1];
+ dimVector[0]= 3;
+ _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
+ 1.0,0,0,(MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)
+ c1_sf_marshallIn);
+ }
+
+ _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+ _SFD_SET_DATA_COMPILED_PROPS(8,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
+ (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
+
+ {
+ unsigned int dimVector[1];
+ dimVector[0]= 3;
+ _SFD_SET_DATA_COMPILED_PROPS(9,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
+ 1.0,0,0,(MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)
+ c1_sf_marshallIn);
+ }
+
+ {
+ real_T *c1_V;
+ real_T *c1_alpha;
+ real_T *c1_alpha_dot;
+ real_T *c1_beta;
+ real_T *c1_p;
+ real_T *c1_q;
+ real_T *c1_r;
+ real_T *c1_theta;
+ real_T (*c1_F)[3];
+ real_T (*c1_M)[3];
+ c1_M = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 2);
+ c1_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 7);
+ c1_r = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);
+ c1_q = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);
+ c1_p = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);
+ c1_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);
+ c1_alpha_dot = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);
+ c1_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
+ c1_F = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
+ c1_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
+ _SFD_SET_DATA_VALUE_PTR(0U, c1_V);
+ _SFD_SET_DATA_VALUE_PTR(1U, *c1_F);
+ _SFD_SET_DATA_VALUE_PTR(2U, c1_alpha);
+ _SFD_SET_DATA_VALUE_PTR(3U, c1_alpha_dot);
+ _SFD_SET_DATA_VALUE_PTR(4U, c1_beta);
+ _SFD_SET_DATA_VALUE_PTR(5U, c1_p);
+ _SFD_SET_DATA_VALUE_PTR(6U, c1_q);
+ _SFD_SET_DATA_VALUE_PTR(7U, c1_r);
+ _SFD_SET_DATA_VALUE_PTR(8U, c1_theta);
+ _SFD_SET_DATA_VALUE_PTR(9U, *c1_M);
+ }
+ }
+ } else {
+ sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
+ _Cessna_6DOFMachineNumber_,chartInstance->chartNumber,
+ chartInstance->instanceNumber);
+ }
+ }
+}
+
+static const char* sf_get_instance_specialization(void)
+{
+ return "v045JFXizl4FQXSha8a34C";
+}
+
+static void sf_opaque_initialize_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ chart_debug_initialization(((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar)
+ ->S,0);
+ initialize_params_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ chartInstanceVar);
+ initialize_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+static void sf_opaque_enable_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ enable_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+static void sf_opaque_disable_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ disable_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+static void sf_opaque_gateway_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ sf_gateway_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+}
+
+extern const mxArray* sf_internal_get_sim_state_c1_Cessna_6DOF(SimStruct* S)
+{
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ mxArray *plhs[1] = { NULL };
+
+ mxArray *prhs[4];
+ int mxError = 0;
+ prhs[0] = mxCreateString("chart_simctx_raw2high");
+ prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S));
+ prhs[2] = (mxArray*) get_sim_state_c1_Cessna_6DOF
+ ((SFc1_Cessna_6DOFInstanceStruct*)chartInfo->chartInstance);/* raw sim ctx */
+ prhs[3] = (mxArray*) sf_get_sim_state_info_c1_Cessna_6DOF();/* state var info */
+ mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate");
+ mxDestroyArray(prhs[0]);
+ mxDestroyArray(prhs[1]);
+ mxDestroyArray(prhs[2]);
+ mxDestroyArray(prhs[3]);
+ if (mxError || plhs[0] == NULL) {
+ sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_raw2high'.\n");
+ }
+
+ return plhs[0];
+}
+
+extern void sf_internal_set_sim_state_c1_Cessna_6DOF(SimStruct* S, const mxArray
+ *st)
+{
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ mxArray *plhs[1] = { NULL };
+
+ mxArray *prhs[3];
+ int mxError = 0;
+ prhs[0] = mxCreateString("chart_simctx_high2raw");
+ prhs[1] = mxDuplicateArray(st); /* high level simctx */
+ prhs[2] = (mxArray*) sf_get_sim_state_info_c1_Cessna_6DOF();/* state var info */
+ mxError = sf_mex_call_matlab(1, plhs, 3, prhs, "sfprivate");
+ mxDestroyArray(prhs[0]);
+ mxDestroyArray(prhs[1]);
+ mxDestroyArray(prhs[2]);
+ if (mxError || plhs[0] == NULL) {
+ sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_high2raw'.\n");
+ }
+
+ set_sim_state_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ chartInfo->chartInstance, mxDuplicateArray(plhs[0]));
+ mxDestroyArray(plhs[0]);
+}
+
+static const mxArray* sf_opaque_get_sim_state_c1_Cessna_6DOF(SimStruct* S)
+{
+ return sf_internal_get_sim_state_c1_Cessna_6DOF(S);
+}
+
+static void sf_opaque_set_sim_state_c1_Cessna_6DOF(SimStruct* S, const mxArray
+ *st)
+{
+ sf_internal_set_sim_state_c1_Cessna_6DOF(S, st);
+}
+
+static void sf_opaque_terminate_c1_Cessna_6DOF(void *chartInstanceVar)
+{
+ if (chartInstanceVar!=NULL) {
+ SimStruct *S = ((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar)->S;
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
+ sf_clear_rtw_identifier(S);
+ unload_Cessna_6DOF_optimization_info();
+ }
+
+ finalize_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*) chartInstanceVar);
+ utFree((void *)chartInstanceVar);
+ if (crtInfo != NULL) {
+ utFree((void *)crtInfo);
+ }
+
+ ssSetUserData(S,NULL);
+ }
+}
+
+static void sf_opaque_init_subchart_simstructs(void *chartInstanceVar)
+{
+ initSimStructsc1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ chartInstanceVar);
+}
+
+extern unsigned int sf_machine_global_initializer_called(void);
+static void mdlProcessParameters_c1_Cessna_6DOF(SimStruct *S)
+{
+ int i;
+ for (i=0;i<ssGetNumRunTimeParams(S);i++) {
+ if (ssGetSFcnParamTunable(S,i)) {
+ ssUpdateDlgParamAsRunTimeParam(S,i);
+ }
+ }
+
+ if (sf_machine_global_initializer_called()) {
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
+ ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
+ initialize_params_c1_Cessna_6DOF((SFc1_Cessna_6DOFInstanceStruct*)
+ (chartInfo->chartInstance));
+ }
+}
+
+static void mdlSetWorkWidths_c1_Cessna_6DOF(SimStruct *S)
+{
+ if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {
+ mxArray *infoStruct = load_Cessna_6DOF_optimization_info();
+ int_T chartIsInlinable =
+ (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,1);
+ ssSetStateflowIsInlinable(S,chartIsInlinable);
+ ssSetRTWCG(S,sf_rtw_info_uint_prop(sf_get_instance_specialization(),
+ infoStruct,1,"RTWCG"));
+ ssSetEnableFcnIsTrivial(S,1);
+ ssSetDisableFcnIsTrivial(S,1);
+ ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop
+ (sf_get_instance_specialization(),infoStruct,1,
+ "gatewayCannotBeInlinedMultipleTimes"));
+ sf_update_buildInfo(sf_get_instance_specialization(),infoStruct,1);
+ if (chartIsInlinable) {
+ ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 4, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 5, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 6, SS_REUSABLE_AND_LOCAL);
+ ssSetInputPortOptimOpts(S, 7, SS_REUSABLE_AND_LOCAL);
+ sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(),
+ infoStruct,1,8);
+ sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(),
+ infoStruct,1,2);
+ }
+
+ {
+ unsigned int outPortIdx;
+ for (outPortIdx=1; outPortIdx<=2; ++outPortIdx) {
+ ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U);
+ }
+ }
+
+ {
+ unsigned int inPortIdx;
+ for (inPortIdx=0; inPortIdx < 8; ++inPortIdx) {
+ ssSetInputPortOptimizeInIR(S, inPortIdx, 1U);
+ }
+ }
+
+ sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,1);
+ ssSetHasSubFunctions(S,!(chartIsInlinable));
+ } else {
+ }
+
+ ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE);
+ ssSetChecksum0(S,(1256833735U));
+ ssSetChecksum1(S,(1696076141U));
+ ssSetChecksum2(S,(3784906244U));
+ ssSetChecksum3(S,(1371581968U));
+ ssSetmdlDerivatives(S, NULL);
+ ssSetExplicitFCSSCtrl(S,1);
+ ssSupportsMultipleExecInstances(S,1);
+}
+
+static void mdlRTW_c1_Cessna_6DOF(SimStruct *S)
+{
+ if (sim_mode_is_rtw_gen(S)) {
+ ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
+ }
+}
+
+static void mdlStart_c1_Cessna_6DOF(SimStruct *S)
+{
+ SFc1_Cessna_6DOFInstanceStruct *chartInstance;
+ ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)utMalloc(sizeof
+ (ChartRunTimeInfo));
+ chartInstance = (SFc1_Cessna_6DOFInstanceStruct *)utMalloc(sizeof
+ (SFc1_Cessna_6DOFInstanceStruct));
+ memset(chartInstance, 0, sizeof(SFc1_Cessna_6DOFInstanceStruct));
+ if (chartInstance==NULL) {
+ sf_mex_error_message("Could not allocate memory for chart instance.");
+ }
+
+ chartInstance->chartInfo.chartInstance = chartInstance;
+ chartInstance->chartInfo.isEMLChart = 1;
+ chartInstance->chartInfo.chartInitialized = 0;
+ chartInstance->chartInfo.sFunctionGateway = sf_opaque_gateway_c1_Cessna_6DOF;
+ chartInstance->chartInfo.initializeChart = sf_opaque_initialize_c1_Cessna_6DOF;
+ chartInstance->chartInfo.terminateChart = sf_opaque_terminate_c1_Cessna_6DOF;
+ chartInstance->chartInfo.enableChart = sf_opaque_enable_c1_Cessna_6DOF;
+ chartInstance->chartInfo.disableChart = sf_opaque_disable_c1_Cessna_6DOF;
+ chartInstance->chartInfo.getSimState = sf_opaque_get_sim_state_c1_Cessna_6DOF;
+ chartInstance->chartInfo.setSimState = sf_opaque_set_sim_state_c1_Cessna_6DOF;
+ chartInstance->chartInfo.getSimStateInfo =
+ sf_get_sim_state_info_c1_Cessna_6DOF;
+ chartInstance->chartInfo.zeroCrossings = NULL;
+ chartInstance->chartInfo.outputs = NULL;
+ chartInstance->chartInfo.derivatives = NULL;
+ chartInstance->chartInfo.mdlRTW = mdlRTW_c1_Cessna_6DOF;
+ chartInstance->chartInfo.mdlStart = mdlStart_c1_Cessna_6DOF;
+ chartInstance->chartInfo.mdlSetWorkWidths = mdlSetWorkWidths_c1_Cessna_6DOF;
+ chartInstance->chartInfo.extModeExec = NULL;
+ chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL;
+ chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL;
+ chartInstance->chartInfo.storeCurrentConfiguration = NULL;
+ chartInstance->chartInfo.debugInstance = sfGlobalDebugInstanceStruct;
+ chartInstance->S = S;
+ crtInfo->instanceInfo = (&(chartInstance->chartInfo));
+ crtInfo->isJITEnabled = false;
+ ssSetUserData(S,(void *)(crtInfo)); /* register the chart instance with simstruct */
+ init_dsm_address_info(chartInstance);
+ if (!sim_mode_is_rtw_gen(S)) {
+ }
+
+ sf_opaque_init_subchart_simstructs(chartInstance->chartInfo.chartInstance);
+ chart_debug_initialization(S,1);
+}
+
+void c1_Cessna_6DOF_method_dispatcher(SimStruct *S, int_T method, void *data)
+{
+ switch (method) {
+ case SS_CALL_MDL_START:
+ mdlStart_c1_Cessna_6DOF(S);
+ break;
+
+ case SS_CALL_MDL_SET_WORK_WIDTHS:
+ mdlSetWorkWidths_c1_Cessna_6DOF(S);
+ break;
+
+ case SS_CALL_MDL_PROCESS_PARAMETERS:
+ mdlProcessParameters_c1_Cessna_6DOF(S);
+ break;
+
+ default:
+ /* Unhandled method */
+ sf_mex_error_message("Stateflow Internal Error:\n"
+ "Error calling c1_Cessna_6DOF_method_dispatcher.\n"
+ "Can't handle method %d.\n", method);
+ break;
+ }
+}
diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.h b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.h new file mode 100644 index 0000000..99a7210 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_Cessna_6DOF.h @@ -0,0 +1,41 @@ +#ifndef __c1_Cessna_6DOF_h__
+#define __c1_Cessna_6DOF_h__
+
+/* Include files */
+#include "sf_runtime/sfc_sf.h"
+#include "sf_runtime/sfc_mex.h"
+#include "rtwtypes.h"
+#include "multiword_types.h"
+
+/* Type Definitions */
+#ifndef typedef_SFc1_Cessna_6DOFInstanceStruct
+#define typedef_SFc1_Cessna_6DOFInstanceStruct
+
+typedef struct {
+ SimStruct *S;
+ ChartInfoStruct chartInfo;
+ uint32_T chartNumber;
+ uint32_T instanceNumber;
+ int32_T c1_sfEvent;
+ boolean_T c1_isStable;
+ boolean_T c1_doneDoubleBufferReInit;
+ uint8_T c1_is_active_c1_Cessna_6DOF;
+} SFc1_Cessna_6DOFInstanceStruct;
+
+#endif /*typedef_SFc1_Cessna_6DOFInstanceStruct*/
+
+/* Named Constants */
+
+/* Variable Declarations */
+
+/* Variable Definitions */
+
+/* Function Declarations */
+extern const mxArray *sf_c1_Cessna_6DOF_get_eml_resolved_functions_info(void);
+
+/* Function Definitions */
+extern void sf_c1_Cessna_6DOF_get_check_sum(mxArray *plhs[]);
+extern void c1_Cessna_6DOF_method_dispatcher(SimStruct *S, int_T method, void
+ *data);
+
+#endif
diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_cessna_6dof.obj b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_cessna_6dof.obj new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF/_self/sfun/src/c1_cessna_6dof.obj diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF_Wind_trim/_self/sfun/info/binfo.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_Wind_trim/_self/sfun/info/binfo.mat Binary files differnew file mode 100644 index 0000000..02848c4 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_Wind_trim/_self/sfun/info/binfo.mat diff --git a/Prof_Arya/slprj/_sfprj/Cessna_6DOF_trim_ha/_self/sfun/info/binfo.mat b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_trim_ha/_self/sfun/info/binfo.mat Binary files differnew file mode 100644 index 0000000..2ca213f --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/Cessna_6DOF_trim_ha/_self/sfun/info/binfo.mat diff --git a/Prof_Arya/slprj/_sfprj/EMLReport/emlReportAccessInfo.mat b/Prof_Arya/slprj/_sfprj/EMLReport/emlReportAccessInfo.mat Binary files differnew file mode 100644 index 0000000..c5a1037 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/EMLReport/emlReportAccessInfo.mat diff --git a/Prof_Arya/slprj/_sfprj/EMLReport/sEI9p49izcHUxn63CWpG2IC.mat b/Prof_Arya/slprj/_sfprj/EMLReport/sEI9p49izcHUxn63CWpG2IC.mat Binary files differnew file mode 100644 index 0000000..9d4d18d --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/EMLReport/sEI9p49izcHUxn63CWpG2IC.mat diff --git a/Prof_Arya/slprj/_sfprj/EMLReport/sjLZixcOZskMJeeDfIb93hH.mat b/Prof_Arya/slprj/_sfprj/EMLReport/sjLZixcOZskMJeeDfIb93hH.mat Binary files differnew file mode 100644 index 0000000..6d7d58c --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/EMLReport/sjLZixcOZskMJeeDfIb93hH.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/9awVvODnlASRfvLpAy51pB.mat b/Prof_Arya/slprj/_sfprj/precompile/9awVvODnlASRfvLpAy51pB.mat Binary files differnew file mode 100644 index 0000000..d67a604 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/9awVvODnlASRfvLpAy51pB.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/CHfRUMKLp7zBZlxChVZlPD.mat b/Prof_Arya/slprj/_sfprj/precompile/CHfRUMKLp7zBZlxChVZlPD.mat Binary files differnew file mode 100644 index 0000000..364d8a5 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/CHfRUMKLp7zBZlxChVZlPD.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/VPBs6CX5Fj2d3KwfGqQPeF.mat b/Prof_Arya/slprj/_sfprj/precompile/VPBs6CX5Fj2d3KwfGqQPeF.mat Binary files differnew file mode 100644 index 0000000..a413dc1 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/VPBs6CX5Fj2d3KwfGqQPeF.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/autoInferAccessInfo.mat b/Prof_Arya/slprj/_sfprj/precompile/autoInferAccessInfo.mat Binary files differnew file mode 100644 index 0000000..bcafa3e --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/autoInferAccessInfo.mat diff --git a/Prof_Arya/slprj/_sfprj/precompile/pFxf9FCl6UH0ED177v1E9B.mat b/Prof_Arya/slprj/_sfprj/precompile/pFxf9FCl6UH0ED177v1E9B.mat Binary files differnew file mode 100644 index 0000000..5fd3c97 --- /dev/null +++ b/Prof_Arya/slprj/_sfprj/precompile/pFxf9FCl6UH0ED177v1E9B.mat |