Model {
Name "tocarsuelo"
Version 6.0
GraphicalInterface {
NumRootInports 0
NumRootOutports 0
ParameterArgumentNames ""
ComputedModelVersion "1.255"
NumModelReferences 0
NumTestPointedSignals 0
}
SavedCharacterEncoding "ibm-5348_P100-1997"
SaveDefaultBlockParams on
SampleTimeColors off
LibraryLinkDisplay "none"
WideLines off
ShowLineDimensions off
ShowPortDataTypes off
ShowLoopsOnError on
IgnoreBidirectionalLines off
ShowStorageClass off
ShowTestPointIcons on
ShowViewerIcons on
SortedOrder off
ExecutionContextIcon off
ShowLinearizationAnnotations on
RecordCoverage off
CovPath "/"
CovSaveName "covdata"
CovMetricSettings "dw"
CovNameIncrementing off
CovHtmlReporting on
covSaveCumulativeToWorkspaceVar on
CovSaveSingleToWorkspaceVar on
CovCumulativeVarName "covCumulativeData"
CovCumulativeReport off
CovReportOnPause on
ScopeRefreshTime 0.035000
OverrideScopeRefreshTime on
DisableAllScopes off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
MinMaxOverflowArchiveMode "Overwrite"
BlockNameDataTip off
BlockParametersDataTip off
BlockDescriptionStringDataTip off
ToolBar on
StatusBar on
BrowserShowLibraryLinks off
BrowserLookUnderMasks off
Created "Mon Jul 01 17:09:14 2002"
UpdateHistory "UpdateHistoryNever"
ModifiedByFormat "%"
LastModifiedBy "Juan Manuel"
ModifiedDateFormat "%"
LastModifiedDate "Wed Jun 27 14:39:03 2007"
ModelVersionFormat "1.%"
ConfigurationManager "none"
LinearizationMsg "none"
Profile off
ParamWorkspaceSource "MATLABWorkspace"
AccelSystemTargetFile "accel.tlc"
AccelTemplateMakefile "accel_default_tmf"
AccelMakeCommand "make_rtw"
TryForcingSFcnDF 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
ProdHWDeviceType "32-bit Generic"
ShowModelReferenceBlockVersion off
ShowModelReferenceBlockIO off
Array {
Type "Handle"
Dimension 1
Simulink.ConfigSet {
$ObjectID 1
Version "1.0.4"
Array {
Type "Handle"
Dimension 7
Simulink.SolverCC {
$ObjectID 2
Version "1.0.4"
StartTime "0.0"
StopTime "inf"
AbsTol "auto"
FixedStep "0.008"
InitialStep "auto"
MaxNumMinSteps "-1"
MaxOrder 5
ExtrapolationOrder 4
NumberNewtonIterations 1
MaxStep "auto"
MinStep "auto"
RelTol "1e-3"
SolverMode "SingleTasking"
Solver "ode4"
ZeroCrossControl "UseLocalSettings"
PositivePriorityOrder off
AutoInsertRateTranBlk off
SampleTimeConstraint "Unconstrained"
RateTranMode "Deterministic"
}
Simulink.DataIOCC {
$ObjectID 3
Version "1.0.4"
Decimation "1"
ExternalInput "[t, u]"
FinalStateName "xFinal"
InitialState "xInitial"
LimitDataPoints off
MaxDataPoints "1000"
LoadExternalInput off
LoadInitialState off
SaveFinalState off
SaveFormat "Array"
SaveOutput on
SaveState off
SaveTime on
StateSaveName "xout"
TimeSaveName "tout"
OutputSaveName "yout"
SignalLoggingName "logsout"
OutputOption "RefineOutputTimes"
OutputTimes "[]"
Refine "1"
}
Simulink.OptimizationCC {
$ObjectID 4
Array {
Type "Cell"
Dimension 5
Cell "ZeroExternalMemoryAtStartup"
Cell "ZeroInternalMemoryAtStartup"
Cell "InitFltsAndDblsToZero"
Cell "OptimizeModelRefInitCode"
Cell "NoFixptDivByZeroProtection"
PropName "DisabledProps"
}
Version "1.0.4"
BlockReduction off
BooleanDataType off
ConditionallyExecuteInputs on
ConditionalExecOptimization "on_for_testing"
InlineParams off
InlineInvariantSignals on
OptimizeBlockIOStorage on
BufferReuse on
EnforceIntegerDowncast on
ExpressionFolding on
FoldNonRolledExpr on
LocalBlockOutputs on
ParameterPooling on
RollThreshold 5
SystemCodeInlineAuto off
StateBitsets off
DataBitsets off
UseTempVars off
ZeroExternalMemoryAtStartup on
ZeroInternalMemoryAtStartup on
InitFltsAndDblsToZero on
NoFixptDivByZeroProtection off
OptimizeModelRefInitCode off
LifeSpan "inf"
}
Simulink.DebuggingCC {
$ObjectID 5
Version "1.0.4"
ConsistencyChecking "none"
ArrayBoundsChecking "none"
AlgebraicLoopMsg "warning"
ArtificialAlgebraicLoopMsg "warning"
CheckSSInitialOutputMsg on
CheckExecutionContextPreStartOutputMsg off
CheckExecutionContextRuntimeOutputMsg off
SignalResolutionControl "TryResolveAllWithWarning"
BlockPriorityViolationMsg "warning"
MinStepSizeMsg "warning"
SolverPrmCheckMsg "none"
InheritedTsInSrcMsg "warning"
DiscreteInheritContinuousMsg "warning"
MultiTaskRateTransMsg "error"
SingleTaskRateTransMsg "none"
TasksWithSamePriorityMsg "warning"
CheckMatrixSingularityMsg "none"
IntegerOverflowMsg "warning"
Int32ToFloatConvMsg "warning"
ParameterDowncastMsg "error"
ParameterOverflowMsg "error"
ParameterPrecisionLossMsg "warning"
UnderSpecifiedDataTypeMsg "none"
UnnecessaryDatatypeConvMsg "none"
VectorMatrixConversionMsg "none"
InvalidFcnCallConnMsg "error"
SignalLabelMismatchMsg "none"
UnconnectedInputMsg "none"
UnconnectedOutputMsg "none"
UnconnectedLineMsg "none"
SFcnCompatibilityMsg "none"
UniqueDataStoreMsg "none"
RootOutportRequireBusObject "warning"
AssertControl "UseLocalSettings"
EnableOverflowDetection off
ModelReferenceIOMsg "none"
ModelReferenceVersionMismatchMessage "none"
ModelReferenceIOMismatchMessage "none"
ModelReferenceCSMismatchMessage "none"
ModelReferenceSimTargetVerbose off
UnknownTsInhSupMsg "warning"
ModelReferenceDataLoggingMessage "warning"
ModelReferenceSymbolNameMessage "warning"
}
Simulink.HardwareCC {
$ObjectID 6
Version "1.0.4"
ProdBitPerChar 8
ProdBitPerShort 16
ProdBitPerInt 32
ProdBitPerLong 32
ProdIntDivRoundTo "Undefined"
ProdEndianess "Unspecified"
ProdWordSize 32
ProdShiftRightIntArith on
ProdHWDeviceType "32-bit Generic"
TargetBitPerChar 8
TargetBitPerShort 16
TargetBitPerInt 32
TargetBitPerLong 32
TargetShiftRightIntArith on
TargetIntDivRoundTo "Undefined"
TargetEndianess "Unspecified"
TargetWordSize 32
TargetTypeEmulationWarnSuppressLevel 0
TargetPreprocMaxBitsSint 32
TargetPreprocMaxBitsUint 32
TargetHWDeviceType "Specified"
TargetUnknown on
ProdEqTarget on
}
Simulink.ModelReferenceCC {
$ObjectID 7
Version "1.0.4"
UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
CheckModelReferenceTargetMessage "error"
ModelReferenceNumInstancesAllowed "Multi"
ModelReferencePassRootInputsByReference on
ModelReferenceMinAlgLoopOccurrences off
}
Simulink.RTWCC {
$BackupClass "Simulink.RTWCC"
$ObjectID 8
Array {
Type "Cell"
Dimension 1
Cell "IncludeHyperlinkInReport"
PropName "DisabledProps"
}
Version "1.0.4"
SystemTargetFile "grt.tlc"
GenCodeOnly off
MakeCommand "make_rtw"
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
IncludeHyperlinkInReport off
LaunchReport off
Array {
Type "Handle"
Dimension 2
Simulink.CodeAppCC {
$ObjectID 9
Array {
Type "Cell"
Dimension 9
Cell "IgnoreCustomStorageClasses"
Cell "InsertBlockDesc"
Cell "SFDataObjDesc"
Cell "SimulinkDataObjDesc"
Cell "DefineNamingRule"
Cell "SignalNamingRule"
Cell "ParamNamingRule"
Cell "InlinedPrmAccess"
Cell "CustomSymbolStr"
PropName "DisabledProps"
}
Version "1.0.4"
ForceParamTrailComments off
GenerateComments on
IgnoreCustomStorageClasses on
IncHierarchyInIds off
MaxIdLength 31
PreserveName off
PreserveNameWithParent off
ShowEliminatedStatement off
IncAutoGenComments off
SimulinkDataObjDesc off
SFDataObjDesc off
IncDataTypeInIds off
PrefixModelToSubsysFcnNames on
CustomSymbolStr "$R$N$M"
MangleLength 1
DefineNamingRule "None"
ParamNamingRule "None"
SignalNamingRule "None"
InsertBlockDesc off
SimulinkBlockComments on
EnableCustomComments off
InlinedPrmAccess "Literals"
ReqsInCode off
}
Simulink.GRTTargetCC {
$BackupClass "Simulink.TargetCC"
$ObjectID 10
Array {
Type "Cell"
Dimension 12
Cell "IncludeMdlTerminateFcn"
Cell "CombineOutputUpdateFcns"
Cell "SuppressErrorStatus"
Cell "ERTCustomFileBanners"
Cell "GenerateSampleERTMain"
Cell "MultiInstanceERTCode"
Cell "PurelyIntegerCode"
Cell "SupportNonFinite"
Cell "SupportComplex"
Cell "SupportAbsoluteTime"
Cell "SupportContinuousTime"
Cell "SupportNonInlinedSFcns"
PropName "DisabledProps"
}
Version "1.0.4"
TargetFcnLib "ansi_tfl_tmw.mat"
GenFloatMathFcnCalls "ANSI_C"
UtilityFuncGeneration "Auto"
GenerateFullHeader on
GenerateSampleERTMain off
IsPILTarget off
ModelReferenceCompliant on
IncludeMdlTerminateFcn on
CombineOutputUpdateFcns off
SuppressErrorStatus off
IncludeFileDelimiter "Auto"
ERTCustomFileBanners off
SupportAbsoluteTime on
LogVarNameModifier "rt_"
MatFileLogging on
MultiInstanceERTCode off
SupportNonFinite on
SupportComplex on
PurelyIntegerCode off
SupportContinuousTime on
SupportNonInlinedSFcns on
ExtMode off
ExtModeStaticAlloc off
ExtModeTesting off
ExtModeStaticAllocSize 1000000
ExtModeTransport 0
ExtModeMexFile "ext_comm"
RTWCAPISignals off
RTWCAPIParams off
RTWCAPIStates off
GenerateASAP2 off
}
PropName "Components"
}
}
PropName "Components"
}
Name "Configuration"
SimulationMode "normal"
CurrentDlgPage "Data Import//Export"
}
PropName "ConfigurationSets"
}
Simulink.ConfigSet {
$PropName "ActiveConfigurationSet"
$ObjectID 1
}
BlockDefaults {
Orientation "right"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
NamePlacement "normal"
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
ShowName on
}
BlockParameterDefaults {
Block {
BlockType Abs
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Constant
Value "1"
VectorParams1D on
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
}
Block {
BlockType DataTypeConversion
OutDataTypeMode "Inherit via back propagation"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
ConvertRealWorld "Real World Value (RWV)"
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Demux
Outputs "4"
DisplayOption "none"
BusSelectionMode off
}
Block {
BlockType Derivative
LinearizePole "inf"
}
Block {
BlockType Display
Format "short"
Decimation "10"
Floating off
SampleTime "-1"
}
Block {
BlockType Fcn
Expr "sin(u[1])"
SampleTime "-1"
}
Block {
BlockType Gain
Gain "1"
Multiplication "Element-wise(K.*u)"
ParameterDataTypeMode "Same as input"
ParameterDataType "sfix(16)"
ParameterScalingMode "Best Precision: Matrix-wise"
ParameterScaling "2^0"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Inport
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
Interpolate on
}
Block {
BlockType Integrator
ExternalReset "none"
InitialConditionSource "internal"
InitialCondition "0"
LimitOutput off
UpperSaturationLimit "inf"
LowerSaturationLimit "-inf"
ShowSaturationPort off
ShowStatePort off
AbsoluteTolerance "auto"
ZeroCross on
}
Block {
BlockType Logic
Operator "AND"
Inputs "2"
AllPortsSameDT on
OutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
SampleTime "-1"
}
Block {
BlockType Lookup
InputValues "[-4:5]"
OutputValues " rand(1,10)-0.5"
LookUpMeth "Interpolation-Extrapolation"
OutDataTypeMode "Same as input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType Lookup2D
RowIndex "[0 1]"
ColumnIndex "[0 1]"
OutputValues "[0 0;0 0]"
LookUpMeth "Interpolation-Extrapolation"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
LUTDesignTableMode "Redesign Table"
LUTDesignDataSource "Block Dialog"
LUTDesignFunctionName "sqrt(x)"
LUTDesignUseExistingBP on
LUTDesignRelError "0.01"
LUTDesignAbsError "1e-6"
}
Block {
BlockType Math
Operator "exp"
OutputSignalType "auto"
SampleTime "-1"
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
}
Block {
BlockType MATLABFcn
MATLABFcn "sin"
OutputDimensions "-1"
OutputSignalType "auto"
Output1D on
SampleTime "-1"
}
Block {
BlockType Mux
Inputs "4"
DisplayOption "none"
BusObject "BusObject"
NonVirtualBus off
}
Block {
BlockType Outport
Port "1"
BusObject "BusObject"
BusOutputAsStruct off
PortDimensions "-1"
SampleTime "-1"
DataType "auto"
OutDataType "sfix(16)"
OutScaling "2^0"
SignalType "auto"
SamplingMode "auto"
OutputWhenDisabled "held"
InitialOutput "[]"
}
Block {
BlockType Product
Inputs "2"
Multiplication "Element-wise(.*)"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Zero"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType RandomNumber
Mean "0"
Variance "1"
Seed "0"
SampleTime "-1"
VectorParams1D on
}
Block {
BlockType RelationalOperator
Operator ">="
InputSameDT on
LogicOutDataTypeMode "Logical (see Configuration Parameters: Optimiza"
"tion)"
LogicDataType "uint(8)"
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Saturate
UpperLimit "0.5"
LowerLimit "-0.5"
LinearizeAsGain on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Scope
Floating off
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 "0"
}
Block {
BlockType Selector
InputType "Vector"
IndexMode "One-based"
ElementSrc "Internal"
Elements "1"
RowSrc "Internal"
Rows "1"
ColumnSrc "Internal"
Columns "1"
InputPortWidth "-1"
IndexIsStartValue off
OutputPortSize "1"
}
Block {
BlockType "S-Function"
FunctionName "system"
PortCounts "[]"
SFunctionModules "''"
}
Block {
BlockType Signum
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Stop
}
Block {
BlockType SubSystem
ShowPortLabels on
Permissions "ReadWrite"
PermitHierarchicalResolution "All"
SystemSampleTime "-1"
RTWFcnNameOpts "Auto"
RTWFileNameOpts "Auto"
SimViewingDevice off
DataTypeOverride "UseLocalSettings"
MinMaxOverflowLogging "UseLocalSettings"
}
Block {
BlockType Sum
IconShape "rectangular"
Inputs "++"
InputSameDT on
OutDataTypeMode "Same as first input"
OutDataType "sfix(16)"
OutScaling "2^0"
LockScale off
RndMeth "Floor"
SaturateOnIntegerOverflow on
SampleTime "-1"
}
Block {
BlockType Switch
Criteria "u2 >= Threshold"
Threshold "0"
InputSameDT on
OutDataTypeMode "Inherit via internal rule"
RndMeth "Floor"
SaturateOnIntegerOverflow on
ZeroCross on
SampleTime "-1"
}
Block {
BlockType Terminator
}
Block {
BlockType ToWorkspace
VariableName "simulink_output"
MaxDataPoints "1000"
Decimation "1"
SampleTime "0"
FixptAsFi off
}
Block {
BlockType TransferFcn
Numerator "[1]"
Denominator "[1 2 1]"
AbsoluteTolerance "auto"
Realization "auto"
}
Block {
BlockType Trigonometry
Operator "sin"
OutputSignalType "auto"
SampleTime "-1"
}
Block {
BlockType UnitDelay
X0 "0"
SampleTime "1"
StateMustResolveToSignalObject off
RTWStateStorageClass "Auto"
}
}
AnnotationDefaults {
HorizontalAlignment "center"
VerticalAlignment "middle"
ForegroundColor "black"
BackgroundColor "white"
DropShadow off
FontName "Helvetica"
FontSize 10
FontWeight "normal"
FontAngle "normal"
}
LineDefaults {
FontName "Helvetica"
FontSize 9
FontWeight "normal"
FontAngle "normal"
}
System {
Name "tocarsuelo"
Location [0, 50, 792, 574]
Open on
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
ZoomFactor "100"
ReportName "simulink-default.rpt"
Block {
BlockType Constant
Name " "
Position [838, 1030, 862, 1050]
Orientation "up"
BackgroundColor "magenta"
DropShadow on
NamePlacement "alternate"
Value "0"
}
Block {
BlockType Gain
Name " Ki1"
Position [665, 805, 695, 835]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
Gain "0.5"
}
Block {
BlockType Constant
Name " desfase"
Position [515, 841, 535, 859]
Orientation "left"
NamePlacement "alternate"
Value "4"
}
Block {
BlockType Integrator
Name " integrator1"
Ports [1, 1]
Position [615, 805, 645, 835]
Orientation "left"
BackgroundColor "green"
DropShadow on
}
Block {
BlockType Display
Name "AOA"
Ports [1]
Position [515, 186, 600, 214]
BackgroundColor "yellow"
DropShadow on
Decimation "1"
}
Block {
BlockType Sum
Name "Add1"
Ports [3, 1]
Position [550, 779, 580, 811]
Orientation "left"
NamePlacement "alternate"
Inputs "+++"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
OutScaling "2^-10"
SaturateOnIntegerOverflow off
}
Block {
BlockType SubSystem
Name "Aerosonde UAV"
Ports [3, 15]
Position [255, 57, 370, 353]
BackgroundColor "lightBlue"
DropShadow on
AncestorBlock "aerosimlib/Complete Aircraft/6-DOF Aircraft Mod"
"el\n(Body-frame EOM)"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "6-DOF Aircraft Model"
MaskDescription "Nonlinear 6-DOF aircraft model with equations o"
"f motion in body frame."
MaskHelp "The block implements the 6-DOF nonlinear aircra"
"ft model using AeroSim blocks. Velocities are computed in body frame.\n"
"Inputs: \n
Controls = the 7x1 vector of aircraft controls [flap elevato"
"r aileron rudder throttle mixture ignition]. Aerodynamic controls are in radi"
"ans, throttle is from 0 to 1, mixture is fraction air/fuel flow, ignition is "
"0 (engine off) or 1 (engine on). \nWinds = the 3x1 vector of backgrou"
"nd wind speed components in navigation frame [North East Down] \nRST "
"= the integrator reset flag (0 or 1, all integrators on rising edge)\n
\n<"
"P>Outputs: \nStates = the 15x1 aircraft state vector [Velocities, "
"Angular rates, Quaternions, Position, Fuel mass, Engine speed]. \nSen"
"sors = the 18x1 vector of sensor outputs [GPS Position, GPS Groundspeed, Acce"
"lerometers, Gyros, Air data, Magnetometer]. \nVelW = the 3x1 vector o"
"f aircraft velocity in wind axes [Airspeed, sideslip, angle of attack] \n"
"Mach = the Mach number \nAng Acc = the 3x1 vector of angular acce"
"lerations\n Euler = the 3x1 vector of Euler angles (roll, pitch, yaw) "
"\nAeroCoeff = the 6x1 vector of aerodynamic coefficients [CD CY CL Cl Cm "
"Cn] \nPropCoeff = the 3x1 vector of propeller coefficients [J CT CP]<"
"/LI>\n EngCoeff = the 5x1 vector of engine coefficients [MAP Airflow Fuelf"
"low BSFC Power] \nMass = the current aircraft mass \nECEF = 3"
"x1 vector of position of the aircraft in the Earth-centered, Earth-fixed fram"
"e \nMSL = the aircraft altitude above mean-sea-level \nAGL = "
"the aircraft altitude above terrain \nREarth = the Earth equivalent r"
"adius at current location\n AConGnd = the aircraft-on-ground flag (0 if ai"
"rcraft above ground, 1 if aircraft on the ground) \n\nParameter"
"s: \n
Aircraft configuration file = the MAT-file with aircraft data \nInitial velocities = the 3x1 vector of initial aircraft velocities in "
"body axes [u v w] \nInitial angular rates = the 3x1 vector of initial"
" angular rates [p q r] \nInitial attitude = the 4x1 vector of initial"
" quaternions [e0 ex ey ez] \nInitial position = the 3x1 vector of ini"
"tial aircraft location [Lat Lon Alt] \nInitial fuel mass = the initia"
"l quantity of fuel on-board the aircraft \nInitial engine speed = the"
" initial engine rotation speed \nGround altitude = the ground altitud"
"e at aircraft location \nWMM coefficient file = the path to the magne"
"tic model coefficient file \nSimulation date = the date to be used fo"
"r the magnetic model [day month year] \nSample time = the aircraft mo"
"del sample time. \n"
MaskPromptString "Aircraft configuration file:|Initial velocities"
":|Initial angular rates:|Initial attitude:|Initial position:|Initial fuel mas"
"s:|Initial engine speed:|Ground altitude:|WMM coefficient file:|Simulation da"
"te:|Sample time:"
MaskStyleString "edit,edit,edit,edit,edit,edit,edit,edit,edit,ed"
"it,edit"
MaskTunableValueString "on,on,on,on,on,on,on,on,on,on,on"
MaskCallbackString "||||||||||"
MaskEnableString "on,on,on,on,on,on,on,on,on,on,on"
MaskVisibilityString "on,on,on,on,on,on,on,on,on,on,on"
MaskToolTipString "on,on,on,on,on,on,on,on,on,on,on"
MaskVarAliasString ",,,,,,,,,,"
MaskVariables "aircraftcfg=@1;VelocitiesIni=@2;RatesIni=@3;Qua"
"ternionsIni=@4;PositionIni=@5;FuelIni=@6;OmegaIni=@7;GndAlt=@8;wmmfile=@9;dmy"
"=@10;tsamp=@11;"
MaskInitialization "load(aircraftcfg);"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "'aerosondecfg.mat'|[23 0 0]'|[0 0 0]'|[1 0 0 0]"
"'|[37.585*pi/180 -122.31*pi/180 1950]'|2|5000*pi/30|20|'C:\\Archivos de Progr"
"ama\\AeroSim\\wmm.cof'|[08 02 2003]|0.008"
MaskTabNameString ",,,,,,,,,,"
System {
Name "Aerosonde UAV"
Location [-106, 88, 686, 596]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Controls"
Position [15, 153, 45, 167]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "Winds"
Position [365, 508, 395, 522]
Port "2"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType Inport
Name "RST"
Position [70, 418, 100, 432]
Port "3"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType SubSystem
Name "Aerodynamics"
Ports [7, 6]
Position [180, 36, 280, 184]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Aerodynamics"
Location [312, 142, 1054, 942]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "VelB"
Position [20, 58, 50, 72]
Port "1"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "WindB"
Position [20, 88, 50, 102]
Port "2"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "Rates"
Position [20, 258, 50, 272]
Port "3"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "WindRates"
Position [20, 288, 50, 302]
Port "4"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "AeroCon"
Position [20, 168, 50, 182]
Port "5"
IconDisplay "Port number"
PortDimensions "[4 1]"
LatchInput off
}
Block {
BlockType Inport
Name "rho"
Position [20, 198, 50, 212]
Port "6"
IconDisplay "Port number"
PortDimensions "1"
LatchInput off
}
Block {
BlockType Inport
Name "a"
Position [20, 228, 50, 242]
Port "7"
IconDisplay "Port number"
PortDimensions "1"
LatchInput off
}
Block {
BlockType Reference
Name "Aerodynamic\nForce"
Ports [5, 1]
Position [515, 53, 615, 157]
SourceBlock "aerosimlib/Aerodynamics/Aerodynamic\nFo"
"rce"
SourceType "Aerodynamic force"
ShowPortLabels on
S "S"
}
Block {
BlockType Reference
Name "Aerodynamic\nMoment"
Ports [4, 1]
Position [515, 199, 615, 281]
SourceBlock "aerosimlib/Aerodynamics/Aerodynamic\nMo"
"ment"
SourceType "Aerodynamic moment"
ShowPortLabels on
c "MAC"
b "b"
S "S"
}
Block {
BlockType Reference
Name "Drag Coefficient"
Ports [4, 1]
Position [300, 211, 400, 289]
SourceBlock "aerosimlib/Aerodynamics/Drag Coefficien"
"t"
SourceType "Drag coefficient"
ShowPortLabels on
CL0 "CLmind"
CD0 "CDmin"
CDdf "CDdf"
CDde "CDde"
CDda "CDda"
CDdr "CDdr"
CDM "CDM"
e "osw"
b "b"
S "S"
}
Block {
BlockType Reference
Name "Dynamic Pressure"
Ports [2, 1]
Position [115, 187, 200, 238]
SourceBlock "aerosimlib/Aerodynamics/Dynamic Pressur"
"e"
SourceType "Dynamic pressure"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Lift Coefficient"
Ports [5, 1]
Position [300, 52, 400, 158]
SourceBlock "aerosimlib/Aerodynamics/Lift Coefficien"
"t"
SourceType "Lift coefficient"
ShowPortLabels on
CL0 "CL0"
CLalpha "CLa"
CLdf "CLdf"
CLde "CLde"
CLalphadot "CLalphadot"
CLq "CLq"
CLM "CLM"
c "MAC"
}
Block {
BlockType Mux
Name "Mux"
Ports [6, 1]
Position [515, 322, 520, 438]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Pitch Moment\nCoefficient"
Ports [5, 1]
Position [300, 423, 400, 527]
SourceBlock "aerosimlib/Aerodynamics/Pitch Moment\nC"
"oefficient"
SourceType "Pitch moment coefficient"
ShowPortLabels on
Cm0 "Cm0"
Cma "Cma"
Cmdf "Cmdf"
Cmde "Cmde"
Cmalphadot "Cmalphadot"
Cmq "Cmq"
CmM "CmM"
c "MAC"
}
Block {
BlockType Reference
Name "Roll Moment\nCoefficient"
Ports [3, 1]
Position [300, 560, 400, 640]
SourceBlock "aerosimlib/Aerodynamics/Roll Moment\nCo"
"efficient"
SourceType "Roll moment coefficient"
ShowPortLabels on
Clbeta "Clbeta"
Clda "Clda"
Cldr "Cldr"
Clp "Clp"
Clr "Clr"
b "b"
}
Block {
BlockType Reference
Name "Side Force Coefficient"
Ports [3, 1]
Position [300, 321, 400, 399]
SourceBlock "aerosimlib/Aerodynamics/Side Force Coef"
"ficient"
SourceType "Side force coefficient"
ShowPortLabels on
CYbeta "CYbeta"
CYda "CYda"
CYdr "CYdr"
CYp "CYp"
CYr "CYr"
b "b"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [75, 255, 95, 275]
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Reference
Name "Wind-axes Velocities"
Ports [3, 3]
Position [110, 52, 210, 128]
SourceBlock "aerosimlib/Aerodynamics/Wind-axes Veloc"
"ities"
SourceType "Wind-axes velocities"
ShowPortLabels on
Vabnd "VaBnd"
betabnd "BetaBnd"
alphabnd "AlphaBnd"
}
Block {
BlockType Reference
Name "Yaw Moment\nCoefficient"
Ports [3, 1]
Position [300, 675, 400, 755]
SourceBlock "aerosimlib/Aerodynamics/Yaw Moment\nCoe"
"fficient"
SourceType "Yaw moment coefficient"
ShowPortLabels on
Cnbeta "Cnbeta"
Cnda "Cnda"
Cndr "Cndr"
Cnp "Cnp"
Cnr "Cnr"
b "b"
}
Block {
BlockType Outport
Name "Faero"
Position [680, 98, 710, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Maero"
Position [680, 128, 710, 142]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "AeroCoeff"
Position [680, 158, 710, 172]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "VelW"
Position [680, 188, 710, 202]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Mach"
Position [680, 218, 710, 232]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "pdyn"
Position [680, 248, 710, 262]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [135, 0]
Branch {
Points [0, 120]
Branch {
Points [0, 110]
Branch {
Points [0, 130]
Branch {
DstBlock "Roll Moment\nCoefficient"
DstPort 3
}
Branch {
Points [0, 115]
DstBlock "Yaw Moment\nCoefficient"
DstPort 3
}
}
Branch {
DstBlock "Pitch Moment\nCoefficient"
DstPort 4
}
}
Branch {
DstBlock "Side Force Coefficient"
DstPort 3
}
}
Branch {
Points [0, -140]
DstBlock "Lift Coefficient"
DstPort 4
}
}
Line {
SrcBlock "WindRates"
SrcPort 1
Points [30, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Rates"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [120, 0; 0, -215]
DstBlock "AeroCoeff"
DstPort 1
}
Line {
SrcBlock "Aerodynamic\nMoment"
SrcPort 1
Points [15, 0; 0, -105]
DstBlock "Maero"
DstPort 1
}
Line {
SrcBlock "Aerodynamic\nForce"
SrcPort 1
DstBlock "Faero"
DstPort 1
}
Line {
SrcBlock "Yaw Moment\nCoefficient"
SrcPort 1
Points [90, 0; 0, -285]
Branch {
DstBlock "Mux"
DstPort 6
}
Branch {
Points [0, -180]
DstBlock "Aerodynamic\nMoment"
DstPort 3
}
}
Line {
SrcBlock "Pitch Moment\nCoefficient"
SrcPort 1
Points [80, 0; 0, -65]
Branch {
DstBlock "Mux"
DstPort 5
}
Branch {
Points [0, -180]
DstBlock "Aerodynamic\nMoment"
DstPort 2
}
}
Line {
SrcBlock "Roll Moment\nCoefficient"
SrcPort 1
Points [70, 0; 0, -210]
Branch {
DstBlock "Mux"
DstPort 4
}
Branch {
Points [0, -180]
DstBlock "Aerodynamic\nMoment"
DstPort 1
}
}
Line {
SrcBlock "Dynamic Pressure"
SrcPort 1
Points [10, 0; 0, 95; 240, 0]
Branch {
Points [200, 0; 0, -55]
DstBlock "pdyn"
DstPort 1
}
Branch {
Points [0, -40]
Branch {
DstBlock "Aerodynamic\nMoment"
DstPort 4
}
Branch {
Points [0, -145]
DstBlock "Aerodynamic\nForce"
DstPort 4
}
}
}
Line {
SrcBlock "Side Force Coefficient"
SrcPort 1
Points [40, 0; 0, -10]
Branch {
DstBlock "Mux"
DstPort 2
}
Branch {
Points [0, -265]
DstBlock "Aerodynamic\nForce"
DstPort 2
}
}
Line {
SrcBlock "Drag Coefficient"
SrcPort 1
Points [0, 0; 30, 0]
Branch {
Points [0, 80]
DstBlock "Mux"
DstPort 1
}
Branch {
Points [0, -185]
DstBlock "Aerodynamic\nForce"
DstPort 1
}
}
Line {
SrcBlock "Lift Coefficient"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 95]
Branch {
Points [0, 170]
DstBlock "Mux"
DstPort 3
}
Branch {
Points [-150, 0; 0, 60]
DstBlock "Drag Coefficient"
DstPort 3
}
}
Branch {
DstBlock "Aerodynamic\nForce"
DstPort 3
}
}
Line {
SrcBlock "Wind-axes Velocities"
SrcPort 3
Points [30, 0; 0, 30]
Branch {
Points [30, 0]
Branch {
Points [0, 35; 380, 0; 0, 45]
DstBlock "Mach"
DstPort 1
}
Branch {
DstBlock "Lift Coefficient"
DstPort 5
}
}
Branch {
Points [0, 135]
Branch {
Points [0, 235]
DstBlock "Pitch Moment\nCoefficient"
DstPort 5
}
Branch {
DstBlock "Drag Coefficient"
DstPort 4
}
}
}
Line {
SrcBlock "Wind-axes Velocities"
SrcPort 2
Points [10, 0; 0, 15]
Branch {
Points [0, 370]
DstBlock "Pitch Moment\nCoefficient"
DstPort 3
}
Branch {
DstBlock "Lift Coefficient"
DstPort 3
}
}
Line {
SrcBlock "AeroCon"
SrcPort 1
Points [0, 0; 210, 0]
Branch {
Points [0, 65]
Branch {
Points [0, 120]
Branch {
Points [0, 95]
Branch {
Points [0, 145]
Branch {
Points [0, 115]
DstBlock "Yaw Moment\nCoefficient"
DstPort 2
}
Branch {
DstBlock "Roll Moment\nCoefficient"
DstPort 2
}
}
Branch {
DstBlock "Pitch Moment\nCoefficient"
DstPort 2
}
}
Branch {
DstBlock "Side Force Coefficient"
DstPort 2
}
}
Branch {
DstBlock "Drag Coefficient"
DstPort 2
}
}
Branch {
Points [0, -90]
DstBlock "Lift Coefficient"
DstPort 2
}
}
Line {
SrcBlock "rho"
SrcPort 1
Points [20, 0; 0, 20]
DstBlock "Dynamic Pressure"
DstPort 2
}
Line {
SrcBlock "Wind-axes Velocities"
SrcPort 1
Points [0, 0; 40, 0]
Branch {
Points [0, 95]
Branch {
Points [0, 30]
Branch {
Points [210, 0]
Branch {
Points [200, 0]
DstBlock "VelW"
DstPort 1
}
Branch {
Points [0, -45]
DstBlock "Aerodynamic\nForce"
DstPort 5
}
}
Branch {
Points [0, 30]
Branch {
Points [0, 115]
Branch {
Points [0, 100]
Branch {
Points [0, 140]
Branch {
Points [0, 115]
DstBlock "Yaw Moment\nCoefficient"
DstPort 1
}
Branch {
DstBlock "Roll Moment\nCoefficient"
DstPort 1
}
}
Branch {
DstBlock "Pitch Moment\nCoefficient"
DstPort 1
}
}
Branch {
DstBlock "Side Force Coefficient"
DstPort 1
}
}
Branch {
DstBlock "Drag Coefficient"
DstPort 1
}
}
}
Branch {
Points [-160, 0; 0, 40]
DstBlock "Dynamic Pressure"
DstPort 1
}
}
Branch {
DstBlock "Lift Coefficient"
DstPort 1
}
}
Line {
SrcBlock "a"
SrcPort 1
Points [30, 0; 0, -120]
DstBlock "Wind-axes Velocities"
DstPort 3
}
Line {
SrcBlock "WindB"
SrcPort 1
Points [20, 0; 0, -5]
DstBlock "Wind-axes Velocities"
DstPort 2
}
Line {
SrcBlock "VelB"
SrcPort 1
DstBlock "Wind-axes Velocities"
DstPort 1
}
Annotation {
Name "Inputs"
Position [37, 26]
}
Annotation {
Name "Outputs"
Position [695, 82]
}
Annotation {
Name "Aerodynamic Parameters"
Position [156, 28]
}
Annotation {
Name "Aerodynamic Coefficients"
Position [340, 29]
}
Annotation {
Name "Aerodynamic Loads"
Position [564, 32]
}
}
}
Block {
BlockType Reference
Name "Aircraft Inertia"
Ports [2, 5]
Position [455, 108, 555, 262]
SourceBlock "aerosimlib/Inertia/Aircraft Inertia"
SourceType "Aircraft inertia"
ShowPortLabels on
FuelIni "FuelIni"
Mempty "mempty"
Mgross "mgross"
CGempty "CGempty"
CGgross "CGgross"
Jempty "Jempty"
Jgross "Jgross"
}
Block {
BlockType SubSystem
Name "Atmosphere"
Ports [6, 6]
Position [460, 449, 560, 681]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Atmosphere"
Location [496, 288, 1178, 741]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "MSL"
Position [25, 43, 55, 57]
Port "1"
IconDisplay "Port number"
PortDimensions "1"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "AGL"
Position [25, 78, 55, 92]
Port "2"
IconDisplay "Port number"
PortDimensions "1"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "Winds"
Position [25, 113, 55, 127]
Port "3"
IconDisplay "Port number"
PortDimensions "[3 1]"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "VelB"
Position [25, 148, 55, 162]
Port "4"
IconDisplay "Port number"
PortDimensions "[3 1]"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "VelW"
Position [25, 183, 55, 197]
Port "5"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "DCM"
Position [25, 253, 55, 267]
Port "6"
IconDisplay "Port number"
PortDimensions "[3 3]"
DataType "double"
LatchInput off
}
Block {
BlockType Reference
Name "Background Wind"
Ports [2, 2]
Position [130, 121, 220, 194]
SourceBlock "aerosimlib/Atmosphere/Background Wind"
SourceType "Background wind"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Standard Atmosphere"
Ports [1, 4]
Position [120, 12, 220, 88]
SourceBlock "aerosimlib/Atmosphere/Standard Atmosphe"
"re"
SourceType "Standard atmosphere"
ShowPortLabels on
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [445, 225, 465, 245]
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Terminator
Name "Terminator"
Position [385, 380, 405, 400]
}
Block {
BlockType Reference
Name "Turbulence"
Ports [3, 2]
Position [260, 213, 360, 287]
SourceBlock "aerosimlib/Atmosphere/Turbulence"
SourceType "Turbulence"
ShowPortLabels on
tsamp "tsamp"
}
Block {
BlockType Reference
Name "Wind Shear"
Ports [3, 2]
Position [260, 334, 355, 406]
SourceBlock "aerosimlib/Atmosphere/Wind Shear"
SourceType "Wind shear"
ShowPortLabels on
}
Block {
BlockType Outport
Name "pstatic"
Position [625, 38, 655, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "OAT"
Position [625, 73, 655, 87]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "rho"
Position [625, 108, 655, 122]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "a"
Position [625, 143, 655, 157]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "WindVel"
Position [625, 178, 655, 192]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "WindRates"
Position [625, 213, 655, 227]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Wind Shear"
SrcPort 2
DstBlock "Terminator"
DstPort 1
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [75, 0; 0, -50]
DstBlock "WindVel"
DstPort 1
}
Line {
SrcBlock "Standard Atmosphere"
SrcPort 4
Points [350, 0; 0, 70]
DstBlock "a"
DstPort 1
}
Line {
SrcBlock "Standard Atmosphere"
SrcPort 3
Points [360, 0; 0, 55]
DstBlock "rho"
DstPort 1
}
Line {
SrcBlock "Standard Atmosphere"
SrcPort 2
Points [370, 0; 0, 40]
DstBlock "OAT"
DstPort 1
}
Line {
SrcBlock "Standard Atmosphere"
SrcPort 1
Points [380, 0; 0, 25]
DstBlock "pstatic"
DstPort 1
}
Line {
SrcBlock "Wind Shear"
SrcPort 1
Points [195, 0; 0, -135]
DstBlock "WindRates"
DstPort 1
}
Line {
SrcBlock "VelB"
SrcPort 1
Points [20, 0; 0, 240]
DstBlock "Wind Shear"
DstPort 3
}
Line {
SrcBlock "Turbulence"
SrcPort 2
Points [25, 0; 0, 45; -155, 0; 0, 55]
DstBlock "Wind Shear"
DstPort 2
}
Line {
SrcBlock "Turbulence"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Background Wind"
SrcPort 2
Points [20, 0]
DstBlock "Wind Shear"
DstPort 1
}
Line {
SrcBlock "VelW"
SrcPort 1
Points [30, 0; 0, 35]
DstBlock "Turbulence"
DstPort 1
}
Line {
SrcBlock "AGL"
SrcPort 1
Points [40, 0; 0, 165]
DstBlock "Turbulence"
DstPort 2
}
Line {
SrcBlock "Background Wind"
SrcPort 1
Points [10, 0; 0, 50]
Branch {
Points [135, 0; 0, 90; 85, 0]
DstBlock "Sum"
DstPort 2
}
Branch {
Points [0, 85]
DstBlock "Turbulence"
DstPort 3
}
}
Line {
SrcBlock "DCM"
SrcPort 1
Points [50, 0; 0, -85]
DstBlock "Background Wind"
DstPort 2
}
Line {
SrcBlock "Winds"
SrcPort 1
Points [50, 0; 0, 20]
DstBlock "Background Wind"
DstPort 1
}
Line {
SrcBlock "MSL"
SrcPort 1
DstBlock "Standard Atmosphere"
DstPort 1
}
Annotation {
Name "Outputs"
Position [640, 20]
}
Annotation {
Name "Inputs"
Position [43, 26]
}
}
}
Block {
BlockType Constant
Name "Constant1"
Position [1115, 260, 1145, 290]
Value "52"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 7]
Position [65, 89, 70, 231]
BackgroundColor "black"
ShowName off
Outputs "7"
}
Block {
BlockType Demux
Name "Demux4"
Ports [1, 3]
Position [1030, 147, 1035, 193]
BackgroundColor "black"
ShowName off
Outputs "3"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Earth"
Ports [2, 8]
Position [795, 351, 895, 544]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Earth"
Location [9, 47, 454, 503]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Position"
Position [20, 43, 50, 57]
Port "1"
IconDisplay "Port number"
PortDimensions "[3 1]"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "DCM"
Position [20, 78, 50, 92]
Port "2"
IconDisplay "Port number"
PortDimensions "[3 3]"
DataType "double"
LatchInput off
}
Block {
BlockType Reference
Name "ECEF Position"
Ports [1, 1]
Position [115, 352, 215, 428]
SourceBlock "aerosimlib/Transformations/ECEF Positio"
"n"
SourceType "ECEF Position"
ShowPortLabels on
}
Block {
BlockType Reference
Name "EGM-96"
Ports [1, 1]
Position [115, 139, 195, 201]
SourceBlock "aerosimlib/Earth/EGM-96"
SourceType "EGM-96 geoid undulation model"
ShowPortLabels on
}
Block {
BlockType Constant
Name "Ground Alt"
Position [20, 112, 50, 128]
Value "GndAlt"
}
Block {
BlockType Reference
Name "Ground Detection"
Ports [2, 2]
Position [245, 279, 320, 321]
SourceBlock "aerosimlib/Earth/Ground Detection"
SourceType "Ground detection"
ShowPortLabels on
}
Block {
BlockType Mux
Name "Mux3"
Ports [2, 1]
Position [220, 18, 225, 67]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "WGS-84"
Ports [1, 4]
Position [115, 19, 195, 116]
SourceBlock "aerosimlib/Earth/WGS-84"
SourceType "WGS-84 Earth model"
ShowPortLabels on
}
Block {
BlockType Reference
Name "WMM-2000"
Ports [2, 1]
Position [115, 224, 195, 286]
SourceBlock "aerosimlib/Earth/WMM-2000"
SourceType "WMM-2000"
ShowPortLabels on
wmmfile "wmmfile"
simdate "dmy"
}
Block {
BlockType Outport
Name "MSL"
Position [390, 48, 420, 62]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "AGL"
Position [390, 78, 420, 92]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "AConGnd"
Position [390, 108, 420, 122]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Rearth"
Position [390, 138, 420, 152]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Requiv"
Position [390, 168, 420, 182]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Gravity"
Position [390, 198, 420, 212]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "MagField"
Position [390, 228, 420, 242]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ECEF"
Position [390, 258, 420, 272]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "ECEF Position"
SrcPort 1
Points [140, 0; 0, -125]
DstBlock "ECEF"
DstPort 1
}
Line {
SrcBlock "WMM-2000"
SrcPort 1
Points [130, 0; 0, -20]
DstBlock "MagField"
DstPort 1
}
Line {
SrcBlock "WGS-84"
SrcPort 4
Points [110, 0; 0, 100]
DstBlock "Gravity"
DstPort 1
}
Line {
SrcBlock "WGS-84"
SrcPort 3
Points [120, 0; 0, 95]
DstBlock "Requiv"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
Points [100, 0; 0, 100]
DstBlock "Rearth"
DstPort 1
}
Line {
SrcBlock "Ground Detection"
SrcPort 1
Points [25, 0; 0, -175]
DstBlock "AConGnd"
DstPort 1
}
Line {
SrcBlock "Ground Detection"
SrcPort 2
Points [15, 0; 0, -225]
DstBlock "AGL"
DstPort 1
}
Line {
SrcBlock "WGS-84"
SrcPort 2
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "WGS-84"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "EGM-96"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [35, 0; 0, -115]
DstBlock "MSL"
DstPort 1
}
Branch {
Points [0, 120]
DstBlock "Ground Detection"
DstPort 1
}
}
Line {
SrcBlock "Ground Alt"
SrcPort 1
Points [20, 0; 0, 190]
DstBlock "Ground Detection"
DstPort 2
}
Line {
SrcBlock "DCM"
SrcPort 1
Points [30, 0; 0, 185]
DstBlock "WMM-2000"
DstPort 2
}
Line {
SrcBlock "Position"
SrcPort 1
Points [40, 0; 0, 20]
Branch {
Points [0, 100]
Branch {
Points [0, 70]
Branch {
Points [0, 150]
DstBlock "ECEF Position"
DstPort 1
}
Branch {
DstBlock "WMM-2000"
DstPort 1
}
}
Branch {
DstBlock "EGM-96"
DstPort 1
}
}
Branch {
DstBlock "WGS-84"
DstPort 1
}
}
Annotation {
Name "Outputs"
Position [404, 32]
}
Annotation {
Name "Inputs"
Position [39, 24]
}
}
}
Block {
BlockType SubSystem
Name "Equations of Motion"
Ports [7, 8]
Position [795, 88, 895, 277]
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Equations of Motion"
Location [189, 270, 697, 764]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Accel"
Position [15, 43, 45, 57]
Port "1"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "Moment"
Position [15, 73, 45, 87]
Port "2"
IconDisplay "Port number"
PortDimensions "[3 1]"
LatchInput off
}
Block {
BlockType Inport
Name "Inertia"
Position [15, 103, 45, 117]
Port "3"
IconDisplay "Port number"
PortDimensions "[4 1]"
LatchInput off
}
Block {
BlockType Inport
Name "Rearth"
Position [15, 143, 45, 157]
Port "4"
IconDisplay "Port number"
PortDimensions "[2 1]"
LatchInput off
}
Block {
BlockType Inport
Name "Gravity"
Position [15, 178, 45, 192]
Port "5"
IconDisplay "Port number"
PortDimensions "1"
LatchInput off
}
Block {
BlockType Inport
Name "AConGnd"
Position [15, 213, 45, 227]
Port "6"
IconDisplay "Port number"
PortDimensions "1"
LatchInput off
}
Block {
BlockType Inport
Name "RST"
Position [15, 243, 45, 257]
Port "7"
IconDisplay "Port number"
PortDimensions "1"
LatchInput off
}
Block {
BlockType Reference
Name "Body-Inertial DCM\nFrom Quaternions"
Ports [1, 1]
Position [300, 305, 395, 365]
SourceBlock "aerosimlib/Transformations/Body-Inertia"
"l DCM\nFrom Quaternions"
SourceType "Body-Inertial DCM"
ShowPortLabels on
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 2]
Position [120, 397, 125, 448]
BackgroundColor "black"
ShowName off
Outputs "2"
}
Block {
BlockType SubSystem
Name "Euler Angles\nFrom Quaternions"
Ports [1, 1]
Position [300, 220, 395, 280]
AncestorBlock "aerosimlib/Transformations/Euler Angles"
"\nFrom Quaternions"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "Euler Angles"
MaskDescription "Compute Euler angles from Euler-Rodrigu"
"es quaternions."
MaskHelp "The block computes the three Euler angl"
"es (roll, pitch, heading) of the vehicle based on the Euler-Rodrigues quatern"
"ions.\nInput: the 4x1 vector of quaternions;
\nOutput: "
" the 3x1 vector of Euler angles.
"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Euler Angles\nFrom Quaternions"
Location [-60, 166, 670, 660]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Quaternions"
Position [25, 83, 55, 97]
Port "1"
IconDisplay "Port number"
PortDimensions "[4 1]"
LatchInput off
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 4]
Position [100, 41, 105, 134]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 4]
Position [210, 426, 215, 519]
BackgroundColor "black"
ShowName off
}
Block {
BlockType Gain
Name "Gain6"
Position [415, 60, 445, 90]
Gain "2"
}
Block {
BlockType Gain
Name "Gain7"
Position [415, 205, 445, 235]
Gain "2"
}
Block {
BlockType Gain
Name "Gain8"
Position [415, 275, 445, 305]
Gain "2"
}
Block {
BlockType Math
Name "Math\nFunction"
Ports [1, 1]
Position [155, 460, 185, 490]
Operator "square"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [650, 192, 655, 248]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum10"
Ports [4, 1]
Position [360, 106, 385, 184]
ShowName off
Inputs "+--+"
}
Block {
BlockType Sum
Name "Sum11"
Ports [2, 1]
Position [360, 200, 385, 240]
ShowName off
Inputs "-+"
}
Block {
BlockType Sum
Name "Sum12"
Ports [2, 1]
Position [360, 270, 385, 310]
ShowName off
}
Block {
BlockType Sum
Name "Sum13"
Ports [4, 1]
Position [360, 321, 385, 399]
ShowName off
Inputs "++--"
}
Block {
BlockType Sum
Name "Sum9"
Ports [2, 1]
Position [360, 55, 385, 95]
ShowName off
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction"
Ports [2, 1]
Position [480, 64, 510, 106]
Operator "atan2"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction1"
Ports [1, 1]
Position [480, 205, 510, 235]
Operator "asin"
}
Block {
BlockType Trigonometry
Name "Trigonometric\nFunction2"
Ports [2, 1]
Position [480, 279, 510, 321]
Operator "atan2"
}
Block {
BlockType Product
Name "exe0"
Ports [2, 1]
Position [185, 354, 215, 396]
RndMeth "Floor"
}
Block {
BlockType Product
Name "exey"
Ports [2, 1]
Position [185, 54, 215, 96]
RndMeth "Floor"
}
Block {
BlockType Product
Name "exez"
Ports [2, 1]
Position [185, 174, 215, 216]
RndMeth "Floor"
}
Block {
BlockType Product
Name "eye0"
Ports [2, 1]
Position [185, 234, 215, 276]
RndMeth "Floor"
}
Block {
BlockType Product
Name "eyez"
Ports [2, 1]
Position [185, 294, 215, 336]
RndMeth "Floor"
}
Block {
BlockType Product
Name "eze0"
Ports [2, 1]
Position [185, 114, 215, 156]
RndMeth "Floor"
}
Block {
BlockType Reference
Name "pi Bound"
Ports [1, 1]
Position [540, 68, 600, 102]
SourceBlock "aerosimlib/Math/pi Bound"
SourceType "pi bound"
ShowPortLabels on
}
Block {
BlockType Reference
Name "pi Bound1"
Ports [1, 1]
Position [540, 203, 600, 237]
SourceBlock "aerosimlib/Math/pi Bound"
SourceType "pi bound"
ShowPortLabels on
}
Block {
BlockType Outport
Name "Euler"
Position [685, 213, 715, 227]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "pi Bound1"
SrcPort 1
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "pi Bound"
SrcPort 1
Points [25, 0; 0, 115]
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Euler"
DstPort 1
}
Line {
SrcBlock "exe0"
SrcPort 1
Points [70, 0; 0, -290]
DstBlock "Sum9"
DstPort 2
}
Line {
SrcBlock "eyez"
SrcPort 1
Points [60, 0; 0, -250]
DstBlock "Sum9"
DstPort 1
}
Line {
SrcBlock "eye0"
SrcPort 1
Points [50, 0; 0, -25]
DstBlock "Sum11"
DstPort 2
}
Line {
SrcBlock "exez"
SrcPort 1
Points [40, 0; 0, 15]
DstBlock "Sum11"
DstPort 1
}
Line {
SrcBlock "eze0"
SrcPort 1
Points [30, 0; 0, 165]
DstBlock "Sum12"
DstPort 2
}
Line {
SrcBlock "exey"
SrcPort 1
Points [20, 0; 0, 205]
DstBlock "Sum12"
DstPort 1
}
Line {
SrcBlock "Math\nFunction"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 4
Points [110, 0; 0, -120]
Branch {
DstBlock "Sum13"
DstPort 4
}
Branch {
Points [0, -215]
DstBlock "Sum10"
DstPort 4
}
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [100, 0; 0, -115]
Branch {
DstBlock "Sum13"
DstPort 3
}
Branch {
Points [0, -215]
DstBlock "Sum10"
DstPort 3
}
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [90, 0; 0, -110]
Branch {
DstBlock "Sum13"
DstPort 2
}
Branch {
Points [0, -215]
DstBlock "Sum10"
DstPort 2
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [80, 0; 0, -105]
Branch {
DstBlock "Sum13"
DstPort 1
}
Branch {
Points [0, -215]
DstBlock "Sum10"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 4
Points [0, 0; 50, 0]
Branch {
Points [0, 80]
Branch {
Points [0, 120]
DstBlock "eyez"
DstPort 2
}
Branch {
DstBlock "exez"
DstPort 2
}
}
Branch {
DstBlock "eze0"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [0, 0; 40, 0]
Branch {
Points [0, 145]
Branch {
Points [0, 60]
DstBlock "eyez"
DstPort 1
}
Branch {
DstBlock "eye0"
DstPort 1
}
}
Branch {
Points [0, -15]
DstBlock "exey"
DstPort 2
}
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [0, 0; 30, 0]
Branch {
Points [0, 110]
Branch {
Points [0, 180]
DstBlock "exe0"
DstPort 1
}
Branch {
DstBlock "exez"
DstPort 1
}
}
Branch {
Points [0, -10]
DstBlock "exey"
DstPort 1
}
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [20, 0; 0, 95]
Branch {
Points [0, 120]
Branch {
Points [0, 120]
DstBlock "exe0"
DstPort 2
}
Branch {
DstBlock "eye0"
DstPort 2
}
}
Branch {
DstBlock "eze0"
DstPort 2
}
}
Line {
SrcBlock "Quaternions"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
DstBlock "Demux"
DstPort 1
}
Branch {
Points [0, 385]
DstBlock "Math\nFunction"
DstPort 1
}
}
Line {
SrcBlock "Trigonometric\nFunction2"
SrcPort 1
Points [115, 0; 0, -60]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Trigonometric\nFunction"
SrcPort 1
DstBlock "pi Bound"
DstPort 1
}
Line {
SrcBlock "Trigonometric\nFunction1"
SrcPort 1
DstBlock "pi Bound1"
DstPort 1
}
Line {
SrcBlock "Sum13"
SrcPort 1
Points [65, 0; 0, -50]
DstBlock "Trigonometric\nFunction2"
DstPort 2
}
Line {
SrcBlock "Gain8"
SrcPort 1
DstBlock "Trigonometric\nFunction2"
DstPort 1
}
Line {
SrcBlock "Sum12"
SrcPort 1
DstBlock "Gain8"
DstPort 1
}
Line {
SrcBlock "Gain7"
SrcPort 1
DstBlock "Trigonometric\nFunction1"
DstPort 1
}
Line {
SrcBlock "Sum11"
SrcPort 1
DstBlock "Gain7"
DstPort 1
}
Line {
SrcBlock "Sum10"
SrcPort 1
Points [65, 0; 0, -50]
DstBlock "Trigonometric\nFunction"
DstPort 2
}
Line {
SrcBlock "Gain6"
SrcPort 1
DstBlock "Trigonometric\nFunction"
DstPort 1
}
Line {
SrcBlock "Sum9"
SrcPort 1
DstBlock "Gain6"
DstPort 1
}
Annotation {
Name "Quaternion products"
Position [210, 36]
}
Annotation {
Name "Sources"
Position [87, 26]
}
Annotation {
Name "Compute Euler angles"
Position [418, 35]
}
}
}
Block {
BlockType Reference
Name "Forces"
Ports [5, 1]
Position [150, 16, 250, 124]
SourceBlock "aerosimlib/Equations of Motion/Body-Fra"
"me EOM/Forces"
SourceType "Force equations"
ShowPortLabels on
VelocitiesIni "VelocitiesIni"
}
Block {
BlockType Reference
Name "Kinematics (Quaternions)"
Ports [2, 1]
Position [150, 245, 250, 325]
SourceBlock "aerosimlib/Equations of Motion/Body-Fra"
"me EOM/Kinematics (Quaternions)"
SourceType "Kinematic Equations"
ShowPortLabels on
QuaternionsIni "QuaternionsIni"
}
Block {
BlockType Reference
Name "Moments"
Ports [3, 2]
Position [150, 145, 250, 225]
SourceBlock "aerosimlib/Equations of Motion/Body-Fra"
"me EOM/Moments"
SourceType "Moment equations"
ShowPortLabels on
RatesIni "RatesIni"
}
Block {
BlockType Reference
Name "Navigation"
Ports [6, 2]
Position [150, 347, 250, 498]
SourceBlock "aerosimlib/Equations of Motion/Body-Fra"
"me EOM/Navigation"
SourceType "Navigation equations"
ShowPortLabels on
PositionIni "PositionIni"
}
Block {
BlockType Outport
Name "VelB"
Position [450, 63, 480, 77]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Rates"
Position [450, 93, 480, 107]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Quaternions"
Position [450, 123, 480, 137]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Position"
Position [450, 153, 480, 167]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Groundspeed"
Position [450, 183, 480, 197]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "DCM"
Position [450, 213, 480, 227]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Euler"
Position [450, 243, 480, 257]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Ang Acc"
Position [450, 273, 480, 287]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Navigation"
SrcPort 2
Points [165, 0; 0, -270]
DstBlock "Groundspeed"
DstPort 1
}
Line {
SrcBlock "Navigation"
SrcPort 1
Points [160, 0; 0, -225]
DstBlock "Position"
DstPort 1
}
Line {
SrcBlock "Moments"
SrcPort 2
Points [155, 0; 0, 75]
DstBlock "Ang Acc"
DstPort 1
}
Line {
SrcBlock "RST"
SrcPort 1
Points [0, 0; 35, 0]
Branch {
Points [0, 55]
Branch {
DstBlock "Kinematics (Quaternions)"
DstPort 2
}
Branch {
Points [0, 180]
DstBlock "Navigation"
DstPort 6
}
}
Branch {
Points [0, -40]
Branch {
DstBlock "Moments"
DstPort 3
}
Branch {
Points [0, -100]
DstBlock "Forces"
DstPort 5
}
}
}
Line {
SrcBlock "Moments"
SrcPort 1
Points [0, 0; 15, 0]
Branch {
Points [0, -65]
DstBlock "Rates"
DstPort 1
}
Branch {
Points [0, 350; -165, 0; 0, -250]
Branch {
DstBlock "Kinematics (Quaternions)"
DstPort 1
}
Branch {
Points [0, -235]
DstBlock "Forces"
DstPort 1
}
}
}
Line {
SrcBlock "Kinematics (Quaternions)"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 50]
DstBlock "Body-Inertial DCM\nFrom Quaternions"
DstPort 1
}
Branch {
Points [0, -35]
Branch {
DstBlock "Euler Angles\nFrom Quaternions"
DstPort 1
}
Branch {
Points [0, -120]
DstBlock "Quaternions"
DstPort 1
}
}
}
Line {
SrcBlock "Forces"
SrcPort 1
Points [0, 0; 20, 0]
Branch {
Points [0, 450; -175, 0; 0, -160]
DstBlock "Navigation"
DstPort 1
}
Branch {
DstBlock "VelB"
DstPort 1
}
}
Line {
SrcBlock "AConGnd"
SrcPort 1
Points [20, 0; 0, 240]
DstBlock "Navigation"
DstPort 5
}
Line {
SrcBlock "Gravity"
SrcPort 1
Points [10, 0; 0, -115]
DstBlock "Forces"
DstPort 3
}
Line {
SrcBlock "Inertia"
SrcPort 1
Points [25, 0; 0, 50]
DstBlock "Moments"
DstPort 1
}
Line {
SrcBlock "Moment"
SrcPort 1
Points [20, 0; 0, 105]
DstBlock "Moments"
DstPort 2
}
Line {
SrcBlock "Accel"
SrcPort 1
DstBlock "Forces"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Navigation"
DstPort 4
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Navigation"
DstPort 3
}
Line {
SrcBlock "Rearth"
SrcPort 1
Points [15, 0; 0, 275]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Body-Inertial DCM\nFrom Quaternions"
SrcPort 1
Points [5, 0]
Branch {
Points [0, 190; -310, 0; 0, -140]
Branch {
DstBlock "Navigation"
DstPort 2
}
Branch {
Points [0, -295]
DstBlock "Forces"
DstPort 4
}
}
Branch {
Points [0, -115]
DstBlock "DCM"
DstPort 1
}
}
Line {
SrcBlock "Euler Angles\nFrom Quaternions"
SrcPort 1
DstBlock "Euler"
DstPort 1
}
Annotation {
Name "Inputs"
Position [34, 25]
}
Annotation {
Name "Outputs"
Position [466, 41]
}
}
}
Block {
BlockType Reference
Name "GA Propulsion System"
Ports [7, 6]
Position [180, 228, 280, 402]
SourceBlock "aerosimlib/Propulsion/GA Propulsion System"
SourceType "General-aviation propulsion system"
ShowPortLabels on
OmegaIni "OmegaIni"
RPM "RPM"
MAP "MAP"
FuelFlow "FuelFlow"
Power "Power"
Jeng "Jeng"
J "J"
CT "CT"
CP "CP"
Rprop "Rprop"
Jprop "Jprop"
TSL "TSL"
}
Block {
BlockType Mux
Name "Mux"
Ports [4, 1]
Position [95, 89, 100, 171]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [95, 171, 100, 229]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [3, 1]
Position [645, 451, 650, 499]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux3"
Ports [3, 1]
Position [1095, 146, 1100, 194]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [6, 1]
Position [1035, 239, 1040, 386]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux7"
Ports [6, 1]
Position [1140, 81, 1145, 234]
ShowName off
Inputs "6"
DisplayOption "bar"
}
Block {
BlockType Sum
Name "Sum7"
Ports [2, 1]
Position [1055, 175, 1075, 195]
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Reference
Name "Total Acceleration"
Ports [3, 1]
Position [640, 66, 730, 154]
SourceBlock "aerosimlib/Equations of Motion/Total Accele"
"ration"
SourceType "Total acceleration"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Total Moment"
Ports [5, 1]
Position [630, 231, 730, 339]
SourceBlock "aerosimlib/Equations of Motion/Total Moment"
SourceType "Total moment"
ShowPortLabels on
raero "rAC"
rprop "rHub"
}
Block {
BlockType Outport
Name "States"
Position [1165, 153, 1195, 167]
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Sensors"
Position [1065, 308, 1095, 322]
Port "2"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "VelW"
Position [1060, 753, 1090, 767]
Port "3"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Mach"
Position [300, 143, 330, 157]
Port "4"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Ang Acc"
Position [915, 263, 945, 277]
Port "5"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Euler"
Position [945, 238, 975, 252]
Port "6"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "AeroCoeff"
Position [300, 93, 330, 107]
Port "7"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "PropCoeff"
Position [300, 383, 330, 397]
Port "8"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "EngCoeff"
Position [300, 353, 330, 367]
Port "9"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "Mass"
Position [1060, 693, 1090, 707]
Port "10"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "ECEF"
Position [920, 528, 950, 542]
Port "11"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "MSL"
Position [1035, 403, 1065, 417]
Port "12"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "AGL"
Position [1035, 433, 1065, 447]
Port "13"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "REarth"
Position [920, 453, 950, 467]
Port "14"
IconDisplay "Port number"
BusOutputAsStruct off
}
Block {
BlockType Outport
Name "AConGnd"
Position [920, 403, 950, 417]
Port "15"
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Equations of Motion"
SrcPort 7
DstBlock "Euler"
DstPort 1
}
Line {
SrcBlock "Equations of Motion"
SrcPort 8
DstBlock "Ang Acc"
DstPort 1
}
Line {
SrcBlock "Atmosphere"
SrcPort 6
Points [5, 0; 0, 90; -455, 0; 0, -645]
DstBlock "Aerodynamics"
DstPort 4
}
Line {
SrcBlock "RST"
SrcPort 1
Points [0, 0; 60, 0]
Branch {
Points [240, 0; 0, -30; 35, 0]
Branch {
DstBlock "Aircraft Inertia"
DstPort 2
}
Branch {
Points [330, 0; 0, -135]
DstBlock "Equations of Motion"
DstPort 7
}
}
Branch {
DstBlock "GA Propulsion System"
DstPort 7
}
}
Line {
SrcBlock "Aircraft Inertia"
SrcPort 5
Points "[5, 0; 0, 165; -155, 0; 0, 20; -265, 0; 0, "
"-165]"
DstBlock "GA Propulsion System"
DstPort 2
}
Line {
SrcBlock "Atmosphere"
SrcPort 4
Points [10, 0; 0, 155; -435, 0; 0, -570]
DstBlock "Aerodynamics"
DstPort 7
}
Line {
SrcBlock "Atmosphere"
SrcPort 3
Points [15, 0; 0, 190; -445, 0; 0, -395]
Branch {
DstBlock "GA Propulsion System"
DstPort 5
}
Branch {
Points [0, -190]
DstBlock "Aerodynamics"
DstPort 6
}
}
Line {
SrcBlock "Atmosphere"
SrcPort 5
Points [20, 0; 0, 105; -460, 0; 0, -660]
DstBlock "Aerodynamics"
DstPort 2
}
Line {
SrcBlock "Winds"
SrcPort 1
Points [45, 0]
DstBlock "Atmosphere"
DstPort 3
}
Line {
SrcBlock "Earth"
SrcPort 2
Points [80, 0; 0, 55]
Branch {
DstBlock "AGL"
DstPort 1
}
Branch {
Points [0, 270; -545, 0; 0, -205]
DstBlock "Atmosphere"
DstPort 2
}
}
Line {
SrcBlock "Earth"
SrcPort 1
Points [85, 0; 0, 50]
Branch {
DstBlock "MSL"
DstPort 1
}
Branch {
Points [0, 295; -545, 0; 0, -240]
DstBlock "Atmosphere"
DstPort 1
}
}
Line {
SrcBlock "Aerodynamics"
SrcPort 4
Points [130, 0; 0, 310]
Branch {
Points [0, 130]
Branch {
Points [-10, 0; 0, 195]
DstBlock "VelW"
DstPort 1
}
Branch {
Points [30, 0]
DstBlock "Atmosphere"
DstPort 5
}
}
Branch {
Points [-255, 0; 0, -70]
DstBlock "GA Propulsion System"
DstPort 6
}
}
Line {
SrcBlock "GA Propulsion System"
SrcPort 4
Points [135, 0; 0, -180]
DstBlock "Aircraft Inertia"
DstPort 1
}
Line {
SrcBlock "GA Propulsion System"
SrcPort 3
Points "[295, 0; 0, 90; 160, 0; 0, -80; 260, 0; 0, "
"-90]"
DstBlock "Mux7"
DstPort 6
}
Line {
SrcBlock "Aircraft Inertia"
SrcPort 1
Points "[25, 0; 0, 260; 160, 0; 0, -80; 240, 0; 0, "
"-110]"
DstBlock "Mux7"
DstPort 5
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [105, 0; 0, -145; 255, 0; 0, 20]
DstBlock "Mux4"
DstPort 5
}
Line {
SrcBlock "Aerodynamics"
SrcPort 6
Points [140, 0; 0, 250; 160, 0; 0, 50]
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Atmosphere"
SrcPort 2
Points [0, -15; 40, 0]
Branch {
Points [0, 260; -450, 0; 0, -435]
DstBlock "GA Propulsion System"
DstPort 4
}
Branch {
DstBlock "Mux2"
DstPort 3
}
}
Line {
SrcBlock "Atmosphere"
SrcPort 1
Points [0, -5; 35, 0]
Branch {
Points [0, 285; -450, 0; 0, -455]
DstBlock "GA Propulsion System"
DstPort 3
}
Branch {
DstBlock "Mux2"
DstPort 1
}
}
Line {
SrcBlock "Equations of Motion"
SrcPort 6
Points [90, 0; 0, 360]
Branch {
Points [0, 135; -565, 0; 0, -50]
DstBlock "Atmosphere"
DstPort 6
}
Branch {
Points [-215, 0; 0, -85]
DstBlock "Earth"
DstPort 2
}
}
Line {
SrcBlock "GA Propulsion System"
SrcPort 2
Points [145, 0; 0, 35]
DstBlock "Total Moment"
DstPort 4
}
Line {
SrcBlock "GA Propulsion System"
SrcPort 1
Points [150, 0; 0, 45; 170, 0]
Branch {
DstBlock "Total Moment"
DstPort 3
}
Branch {
Points [0, -175]
DstBlock "Total Acceleration"
DstPort 2
}
}
Line {
SrcBlock "Aerodynamics"
SrcPort 2
Points [325, 0; 0, 190]
DstBlock "Total Moment"
DstPort 2
}
Line {
SrcBlock "Aerodynamics"
SrcPort 1
Points [330, 0; 0, 30]
Branch {
DstBlock "Total Moment"
DstPort 1
}
Branch {
DstBlock "Total Acceleration"
DstPort 1
}
}
Line {
SrcBlock "Aircraft Inertia"
SrcPort 3
Points [40, 0; 0, 140]
DstBlock "Total Moment"
DstPort 5
}
Line {
SrcBlock "Total Moment"
SrcPort 1
Points [5, 0; 0, -150]
DstBlock "Equations of Motion"
DstPort 2
}
Line {
SrcBlock "Aircraft Inertia"
SrcPort 4
Points [185, 0; 0, -55]
DstBlock "Equations of Motion"
DstPort 3
}
Line {
SrcBlock "Aircraft Inertia"
SrcPort 2
Points [0, 0; 15, 0]
Branch {
Points [0, 265; -145, 0; 0, 280]
DstBlock "Mass"
DstPort 1
}
Branch {
Points [45, 0; 0, -15]
DstBlock "Total Acceleration"
DstPort 3
}
}
Line {
SrcBlock "Earth"
SrcPort 4
Points [65, 0; 0, 135; -215, 0; 0, -385]
DstBlock "Equations of Motion"
DstPort 4
}
Line {
SrcBlock "Earth"
SrcPort 6
Points [60, 0; 0, 80; -205, 0; 0, -355]
DstBlock "Equations of Motion"
DstPort 5
}
Line {
SrcBlock "Earth"
SrcPort 7
Points [115, 0; 0, -135]
DstBlock "Mux4"
DstPort 6
}
Line {
SrcBlock "Total Acceleration"
SrcPort 1
Points [25, 0]
Branch {
Points [0, 190]
DstBlock "Mux4"
DstPort 3
}
Branch {
DstBlock "Equations of Motion"
DstPort 1
}
}
Line {
SrcBlock "Equations of Motion"
SrcPort 5
Points [80, 0; 0, 80]
DstBlock "Mux4"
DstPort 2
}
Line {
SrcBlock "Earth"
SrcPort 3
Points [0, 0; 5, 0]
Branch {
Points [0, 150; -140, 0; 0, -325]
DstBlock "Equations of Motion"
DstPort 6
}
Branch {
DstBlock "AConGnd"
DstPort 1
}
}
Line {
SrcBlock "Earth"
SrcPort 5
DstBlock "REarth"
DstPort 1
}
Line {
SrcBlock "GA Propulsion System"
SrcPort 6
DstBlock "PropCoeff"
DstPort 1
}
Line {
SrcBlock "GA Propulsion System"
SrcPort 5
DstBlock "EngCoeff"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 7
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 6
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 5
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 4
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Controls"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Sensors"
DstPort 1
}
Line {
SrcBlock "Mux7"
SrcPort 1
DstBlock "States"
DstPort 1
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [5, 0; 0, 40]
DstBlock "GA Propulsion System"
DstPort 1
}
Line {
SrcBlock "Equations of Motion"
SrcPort 1
Points [0, 0; 110, 0]
Branch {
Points [0, 630; -600, 0]
Branch {
Points [-290, 0; 0, -675]
DstBlock "Aerodynamics"
DstPort 1
}
Branch {
Points [0, -140]
DstBlock "Atmosphere"
DstPort 4
}
}
Branch {
DstBlock "Mux7"
DstPort 1
}
}
Line {
SrcBlock "Equations of Motion"
SrcPort 2
Points [0, 0; 95, 0]
Branch {
Points [0, 205]
Branch {
Points [0, 395; -865, 0; 0, -630]
DstBlock "Aerodynamics"
DstPort 3
}
Branch {
DstBlock "Mux4"
DstPort 4
}
}
Branch {
DstBlock "Mux7"
DstPort 2
}
}
Line {
SrcBlock "Equations of Motion"
SrcPort 4
Points [100, 0]
Branch {
Points [5, 0; 0, 80]
Branch {
Points [0, 325; -235, 0; 0, -175]
DstBlock "Earth"
DstPort 1
}
Branch {
DstBlock "Mux4"
DstPort 1
}
}
Branch {
DstBlock "Demux4"
DstPort 1
}
}
Line {
SrcBlock "Mux"
SrcPort 1
DstBlock "Aerodynamics"
DstPort 5
}
Line {
SrcBlock "Equations of Motion"
SrcPort 3
DstBlock "Mux7"
DstPort 3
}
Line {
SrcBlock "Aerodynamics"
SrcPort 5
DstBlock "Mach"
DstPort 1
}
Line {
SrcBlock "Aerodynamics"
SrcPort 3
DstBlock "AeroCoeff"
DstPort 1
}
Line {
SrcBlock "Earth"
SrcPort 8
DstBlock "ECEF"
DstPort 1
}
Line {
SrcBlock "Demux4"
SrcPort 1
DstBlock "Mux3"
DstPort 1
}
Line {
SrcBlock "Demux4"
SrcPort 2
DstBlock "Mux3"
DstPort 2
}
Line {
SrcBlock "Constant1"
SrcPort 1
Points [-85, 0]
DstBlock "Sum7"
DstPort 2
}
Line {
SrcBlock "Sum7"
SrcPort 1
DstBlock "Mux3"
DstPort 3
}
Line {
SrcBlock "Demux4"
SrcPort 3
DstBlock "Sum7"
DstPort 1
}
Line {
SrcBlock "Mux3"
SrcPort 1
DstBlock "Mux7"
DstPort 4
}
Annotation {
Name "Solve equations of motion"
Position [841, 75]
}
Annotation {
Name "Inputs"
Position [36, 74]
}
Annotation {
Name "Outputs"
Position [1053, 65]
}
Annotation {
Name "Aerodynamic Model"
Position [228, 18]
}
Annotation {
Name "Earth Model"
Position [847, 338]
}
Annotation {
Name "Sum forces and moments"
Position [673, 32]
}
Annotation {
Name "Atmosphere Model"
Position [512, 433]
}
Annotation {
Name "Propulsion Model"
Position [228, 215]
}
}
}
Block {
BlockType Display
Name "Aircraft states"
Ports [1]
Position [660, 55, 745, 345]
BackgroundColor "cyan"
DropShadow on
Decimation "1"
}
Block {
BlockType Display
Name "Airspeed"
Ports [1]
Position [515, 86, 600, 114]
BackgroundColor "yellow"
DropShadow on
Decimation "1"
}
Block {
BlockType SubSystem
Name "Baliza"
Ports [1, 1]
Position [665, 470, 735, 530]
BackgroundColor "red"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "port_label('input',1,'position')\nport_label('o"
"utput',1,'int')"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Baliza"
Location [100, 236, 595, 488]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [75, 118, 105, 132]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [185, 110, 245, 140]
MATLABFcn "funcion_baliza(u(1),u(2),u(3))"
}
Block {
BlockType Outport
Name "Out1"
Position [320, 118, 350, 132]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Display
Name "Bank angle"
Ports [1]
Position [515, 236, 600, 264]
BackgroundColor "yellow"
DropShadow on
Decimation "1"
}
Block {
BlockType Constant
Name "Bank angle\nCommand"
Position [400, 476, 440, 494]
Orientation "left"
BackgroundColor "magenta"
DropShadow on
Value "0"
}
Block {
BlockType Integrator
Name "Bank angle\nIntegrator"
Ports [1, 1]
Position [305, 475, 335, 505]
Orientation "left"
BackgroundColor "green"
DropShadow on
}
Block {
BlockType Gain
Name "Bank-angle-to-Aileron\nIntegral"
Position [220, 475, 250, 505]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
Gain "0.05"
}
Block {
BlockType Gain
Name "Bank-angle-to-Aileron\nProportional"
Position [265, 410, 295, 440]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
Gain "0.5"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [400, 86, 405, 154]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux1"
Ports [1, 3]
Position [470, 266, 475, 334]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Demux
Name "Demux2"
Ports [1, 15]
Position [565, 389, 570, 611]
BackgroundColor "black"
ShowName off
Outputs "15"
}
Block {
BlockType Demux
Name "Demux3"
Ports [1, 6]
Position [865, 443, 870, 577]
BackgroundColor "black"
ShowName off
Outputs "6"
DisplayOption "bar"
}
Block {
BlockType SubSystem
Name "Elevacion del morro"
Ports [1, 1]
Position [510, 679, 600, 741]
Orientation "left"
BackgroundColor "magenta"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Elevacion del morro"
Location [315, 186, 539, 320]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "y avion"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [80, 25, 140, 55]
MATLABFcn "funcion_pitch(u(1))"
}
Block {
BlockType Outport
Name "Elevacion"
Position [165, 33, 195, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "y avion"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Elevacion"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Flap"
Position [15, 56, 55, 74]
BackgroundColor "magenta"
DropShadow on
Value "0"
}
Block {
BlockType SubSystem
Name "FlightGear\nInterface"
Ports [3]
Position [765, 583, 840, 647]
BackgroundColor "orange"
DropShadow on
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskType "FlightGear 0.9.2 interface"
MaskDescription "FlightGear Flight Simulator Interface that prov"
"ides a visual output of the aircraft position and attitude. \nThis driver can"
" be used with FlightGear 0.9.2 only."
MaskHelp "The block provides position and attitude inform"
"ation to FlightGear Flight Simulator 0.9.2 for visual output of the aircraft "
"behavior.\nParameters: \n
Sample time: the sample time at which d"
"ata is sent to FlightGear; \nHost name: the name or IP address of the"
" machine on which FlightGear is running. \nPort: the port number on t"
"he host machine. \n\nInputs: \n
the 3x1 vector of geogr"
"aphic position; \n the 3x1 vector of Euler angles; \n scalar "
"number representing airspeed. "
MaskPromptString "Host name:|Port:|Sample time:"
MaskStyleString "edit,edit,edit"
MaskTunableValueString "on,on,on"
MaskCallbackString "||"
MaskEnableString "on,on,on"
MaskVisibilityString "on,on,on"
MaskToolTipString "on,on,on"
MaskVarAliasString ",,"
MaskVariables "hostname=@1;port=@2;tsamp=@3;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "'localhost'|5500|0.04"
MaskTabNameString ",,"
System {
Name "FlightGear\nInterface"
Location [171, 177, 629, 423]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "Position"
Position [20, 73, 50, 87]
Port "1"
IconDisplay "Port number"
PortDimensions "[3 1]"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "Euler"
Position [20, 168, 50, 182]
Port "2"
IconDisplay "Port number"
PortDimensions "[3 1]"
DataType "double"
LatchInput off
}
Block {
BlockType Inport
Name "Airspeed"
Position [20, 208, 50, 222]
Port "3"
IconDisplay "Port number"
PortDimensions "1"
DataType "double"
LatchInput off
}
Block {
BlockType Constant
Name "Constant"
Position [245, 171, 275, 189]
Value "0"
}
Block {
BlockType Demux
Name "Demux"
Ports [1, 3]
Position [80, 47, 85, 113]
BackgroundColor "black"
ShowName off
Outputs "3"
}
Block {
BlockType Mux
Name "Mux"
Ports [3, 1]
Position [305, 48, 310, 112]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux2"
Ports [2, 1]
Position [305, 150, 310, 190]
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType "S-Function"
Name "S-Function"
Ports [9]
Position [355, 70, 430, 120]
FunctionName "sfunflightgear098"
Parameters "tsamp,hostname,port"
}
Line {
SrcBlock "Constant"
SrcPort 1
DstBlock "Mux2"
DstPort 2
}
Line {
SrcBlock "Airspeed"
SrcPort 1
Points [180, 0; 0, -55]
DstBlock "Mux2"
DstPort 1
}
Line {
SrcBlock "Euler"
SrcPort 1
Points [170, 0; 0, -45; 95, 0; 0, -50]
DstBlock "S-Function"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 3
Points [15, 0; 0, 45; 110, 0; 0, -45]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock "Demux"
SrcPort 2
Points [25, 0; 0, 30; 90, 0; 0, -30]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Demux"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Position"
SrcPort 1
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Mux2"
SrcPort 1
Points [15, 0; 0, -85]
DstBlock "S-Function"
DstPort 3
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [25, 0]
DstBlock "S-Function"
DstPort 1
}
Annotation {
Name "Flight Simulator Interface Function"
Position [366, 28]
}
Annotation {
Name "Inputs"
Position [77, 25]
}
}
}
Block {
BlockType Display
Name "Heading"
Ports [1]
Position [530, 336, 615, 364]
BackgroundColor "yellow"
DropShadow on
Decimation "1"
}
Block {
BlockType SubSystem
Name "Heading_deseado"
Ports [1, 1]
Position [680, 978, 765, 1052]
Orientation "left"
BackgroundColor "lightBlue"
NamePlacement "alternate"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
System {
Name "Heading_deseado"
Location [331, 358, 576, 440]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "posicion"
Position [25, 33, 55, 47]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "Heading_deseado"
Position [85, 25, 145, 55]
MATLABFcn "funcion_heading(u(1),u(2))"
}
Block {
BlockType Outport
Name "Heading"
Position [190, 33, 220, 47]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "posicion"
SrcPort 1
DstBlock "Heading_deseado"
DstPort 1
}
Line {
SrcBlock "Heading_deseado"
SrcPort 1
DstBlock "Heading"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Ignition"
Position [15, 236, 55, 254]
BackgroundColor "magenta"
DropShadow on
}
Block {
BlockType Gain
Name "Kp1"
Position [730, 770, 760, 800]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
Gain "7"
}
Block {
BlockType Constant
Name "Mixture"
Position [15, 196, 55, 214]
BackgroundColor "magenta"
DropShadow on
Value "13"
}
Block {
BlockType Mux
Name "Mux"
Ports [7, 1]
Position [220, 53, 225, 257]
ShowName off
Inputs "7"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux1"
Ports [3, 1]
Position [605, 537, 610, 583]
ShowName off
Inputs "3"
DisplayOption "bar"
}
Block {
BlockType Mux
Name "Mux4"
Ports [2, 1]
Position [805, 989, 810, 1036]
Orientation "left"
NamePlacement "alternate"
ShowName off
Inputs "2"
DisplayOption "bar"
}
Block {
BlockType Reference
Name "PID elevator"
Ports [1, 1]
Position [90, 580, 120, 610]
Orientation "left"
NamePlacement "alternate"
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
ShowPortLabels on
P "10"
I "1.13"
D "0"
}
Block {
BlockType Reference
Name "PID rudder"
Ports [1, 1]
Position [210, 930, 240, 960]
Orientation "left"
NamePlacement "alternate"
SourceBlock "simulink_extras/Additional\nLinear/PID Controll"
"er"
SourceType "PID Controller"
ShowPortLabels on
P "7.05"
I "0.5"
D "0.05"
}
Block {
BlockType Display
Name "Pitch angle"
Ports [1]
Position [525, 286, 610, 314]
BackgroundColor "yellow"
DropShadow on
Decimation "1"
}
Block {
BlockType Constant
Name "Pitch final"
Position [380, 651, 410, 669]
Orientation "left"
BackgroundColor "magenta"
DropShadow on
Value "15"
}
Block {
BlockType Gain
Name "Pitch-to-Elevator\nDerivative"
Position [670, 870, 700, 900]
Orientation "left"
BackgroundColor "yellow"
DropShadow on
Gain "0.1"
}
Block {
BlockType Reference
Name "Radians\nto Degrees"
Ports [1, 1]
Position [420, 285, 445, 315]
BackgroundColor "green"
DropShadow on
ShowName off
SourceBlock "simulink_extras/Transformations/Radians\nto Deg"
"rees"
SourceType "RadiansToDegrees"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Radians\nto Degrees1"
Ports [1, 1]
Position [420, 125, 445, 155]
BackgroundColor "green"
DropShadow on
ShowName off
SourceBlock "simulink_extras/Transformations/Radians\nto Deg"
"rees"
SourceType "RadiansToDegrees"
ShowPortLabels on
}
Block {
BlockType Reference
Name "Radians\nto Degrees2"
Ports [1, 1]
Position [460, 105, 485, 135]
BackgroundColor "green"
DropShadow on
ShowName off
SourceBlock "simulink_extras/Transformations/Radians\nto Deg"
"rees"
SourceType "RadiansToDegrees"
ShowPortLabels on
}
Block {
BlockType SubSystem
Name "Receptor"
Ports [1, 1]
Position [765, 469, 835, 531]
BackgroundColor "yellow"
TreatAsAtomicUnit off
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
MaskDisplay "port_label('output',1,'dist')\nport_label('inpu"
"t',1,'int')\n"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
System {
Name "Receptor"
Location [102, 408, 322, 585]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "A4"
PaperUnits "centimeters"
ZoomFactor "100"
Block {
BlockType Inport
Name "In1"
Position [25, 38, 55, 52]
Port "1"
IconDisplay "Port number"
LatchInput off
}
Block {
BlockType MATLABFcn
Name "MATLAB Fcn"
Position [80, 30, 140, 60]
BackgroundColor "gray"
NamePlacement "alternate"
ShowName off
MATLABFcn "funcion_dist(u(1),u(2),u(3),u(4),u(5),u(6))"
}
Block {
BlockType Outport
Name "Out1"
Position [165, 38, 195, 52]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "In1"
SrcPort 1
DstBlock "MATLAB Fcn"
DstPort 1
}
Line {
SrcBlock "MATLAB Fcn"
SrcPort 1
DstBlock "Out1"
DstPort 1
}
}
}
Block {
BlockType Constant
Name "Reset"
Position [15, 331, 55, 349]
BackgroundColor "magenta"
DropShadow on
Value "0"
}
Block {
BlockType Display
Name "Sideslip"
Ports [1]
Position [515, 136, 600, 164]
BackgroundColor "yellow"
DropShadow on
Decimation "1"
}
Block {
BlockType Stop
Name "Stop Simulation"
Position [410, 327, 445, 363]
BackgroundColor "[0.900000, 0.214468, 0.234003]"
}
Block {
BlockType Sum
Name "Sum"
Ports [2, 1]
Position [190, 415, 210, 435]
Orientation "left"
BackgroundColor "green"
DropShadow on
ShowName off
IconShape "round"
Inputs "|++"
}
Block {
BlockType Sum
Name "Sum1"
Ports [2, 1]
Position [320, 935, 340, 955]
Orientation "left"
BackgroundColor "green"
DropShadow on
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum2"
Ports [2, 1]
Position [175, 585, 195, 605]
Orientation "left"
BackgroundColor "green"
DropShadow on
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum3"
Ports [2, 1]
Position [370, 415, 390, 435]
Orientation "left"
BackgroundColor "green"
DropShadow on
ShowName off
IconShape "round"
Inputs "|+-"
}
Block {
BlockType Sum
Name "Sum4"
Ports [2, 1]
Position [785, 775, 805, 795]
Orientation "left"
BackgroundColor "green"
DropShadow on
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Sum
Name "Sum5"
Ports [2, 1]
Position [845, 990, 865, 1010]
Orientation "left"
BackgroundColor "green"
DropShadow on
ShowName off
IconShape "round"
Inputs "|-+"
}
Block {
BlockType Sum
Name "Sum6"
Ports [2, 1]
Position [485, 785, 505, 805]
Orientation "left"
NamePlacement "alternate"
ShowName off
IconShape "round"
Inputs "|+-"
InputSameDT off
OutDataTypeMode "Inherit via internal rule"
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch1"
Position [340, 1050, 370, 1080]
Orientation "left"
NamePlacement "alternate"
Threshold "0.3"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch2"
Position [195, 730, 225, 760]
Orientation "left"
NamePlacement "alternate"
Threshold "-0.41"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch3"
Position [300, 685, 330, 715]
Orientation "left"
NamePlacement "alternate"
Threshold "15"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Switch
Name "Switch4"
Position [120, 100, 150, 130]
Threshold "0.0165"
InputSameDT off
SaturateOnIntegerOverflow off
}
Block {
BlockType Constant
Name "Throttle"
Position [15, 96, 55, 114]
BackgroundColor "magenta"
DropShadow on
Value "0.5"
}
Block {
BlockType Constant
Name "Throttle final"
Position [15, 141, 55, 159]
BackgroundColor "magenta"
DropShadow on
Value "0"
}
Block {
BlockType ToWorkspace
Name "To Workspace"
Position [1000, 565, 1060, 595]
VariableName "angvert"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace1"
Position [790, 865, 850, 895]
VariableName "errorpitch"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace2"
Position [245, 625, 305, 655]
VariableName "errorsegp"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace3"
Position [815, 1095, 875, 1125]
VariableName "errorheading"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace4"
Position [370, 980, 430, 1010]
VariableName "errorsegh"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace5"
Position [425, 535, 485, 565]
VariableName "errorbal"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace6"
Position [1030, 545, 1090, 575]
VariableName "altitud"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace7"
Position [995, 440, 1055, 470]
VariableName "x"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace8"
Position [985, 495, 1045, 525]
VariableName "y"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType ToWorkspace
Name "To Workspace9"
Position [995, 625, 1055, 655]
VariableName "anghor"
MaxDataPoints "inf"
SampleTime "-1"
SaveFormat "Array"
}
Block {
BlockType Constant
Name "Winds"
Position [15, 291, 55, 309]
BackgroundColor "magenta"
DropShadow on
Value "[0 0 0]"
}
Block {
BlockType Constant
Name "dist"
Position [805, 821, 845, 839]
Orientation "left"
BackgroundColor "magenta"
DropShadow on
Value "0"
}
Block {
BlockType Constant
Name "heading final"
Position [410, 1081, 450, 1099]
Orientation "left"
BackgroundColor "magenta"
DropShadow on
Value "-61.75"
}
Block {
BlockType Derivative
Name "pitch error\nDerivative"
Position [610, 870, 640, 900]
Orientation "left"
BackgroundColor "green"
DropShadow on
}
Block {
BlockType Scope
Name "Time\nScope"
Ports [1]
Position [50, 46, 85, 94]
ForegroundColor "orange"
IOType "viewer"
CopyFcn "dspfixptcopycallback"
Location [177, 273, 501, 512]
Open off
NumInputPorts "1"
List {
ListType AxesTitles
axes1 "%"
}
DataFormat "Structure"
}
Line {
SrcBlock "Reset"
SrcPort 1
Points [180, 0]
DstBlock "Aerosonde UAV"
DstPort 3
}
Line {
SrcBlock "Winds"
SrcPort 1
Points [175, 0; 0, -95]
DstBlock "Aerosonde UAV"
DstPort 2
}
Line {
SrcBlock "Aerosonde UAV"
SrcPort 1
Points [255, 0; 0, 135]
Branch {
DstBlock "Aircraft states"
DstPort 1
}
Branch {
Points [0, 300]
DstBlock "Demux2"
DstPort 1
}
}
Line {
SrcBlock "Aerosonde UAV"
SrcPort 6
Points [20, 0; 0, 135]
Branch {
Points [0, 155; 145, 0; 0, 160]
DstBlock "FlightGear\nInterface"
DstPort 2
}
Branch {
DstBlock "Radians\nto Degrees"
DstPort 1
}
}
Line {
SrcBlock "Aerosonde UAV"
SrcPort 3
Points [10, 0]
DstBlock "Demux"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 3
DstBlock "Radians\nto Degrees1"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 2
DstBlock "Radians\nto Degrees2"
DstPort 1
}
Line {
SrcBlock "Demux"
SrcPort 1
Points [0, 0; 90, 0]
Branch {
DstBlock "Airspeed"
DstPort 1
}
Branch {
Points [125, 0; 0, 535]
DstBlock "FlightGear\nInterface"
DstPort 3
}
}
Line {
SrcBlock "Radians\nto Degrees2"
SrcPort 1
Points [5, 0; 0, 30]
DstBlock "Sideslip"
DstPort 1
}
Line {
SrcBlock "Radians\nto Degrees1"
SrcPort 1
Points [25, 0; 0, 60]
DstBlock "AOA"
DstPort 1
}
Line {
SrcBlock "Aerosonde UAV"
SrcPort 15
DstBlock "Stop Simulation"
DstPort 1
}
Line {
SrcBlock "Radians\nto Degrees"
SrcPort 1
DstBlock "Demux1"
DstPort 1
}
Line {
SrcBlock "Demux1"
SrcPort 2
Points [0, 0; 20, 0]
Branch {
DstBlock "Pitch angle"
DstPort 1
}
Branch {
Points [0, 280]
Branch {
Labels [4, 0]
Points [0, 15; -55, 0; 0, 105]
DstBlock "Switch3"
DstPort 2
}
Branch {
Points [0, 15]
DstBlock "Sum2"
DstPort 1
}
}
}
Line {
SrcBlock "Demux1"
SrcPort 3
Points [15, 0; 0, 15]
Branch {
Points [0, 15]
DstBlock "Heading"
DstPort 1
}
Branch {
Points [-15, 0; 0, 610]
DstBlock "Sum1"
DstPort 1
}
}
Line {
SrcBlock "Demux1"
SrcPort 1
Points [0, 0; 5, 0]
Branch {
Points [0, -30]
DstBlock "Bank angle"
DstPort 1
}
Branch {
Points [0, 145]
DstBlock "Sum3"
DstPort 1
}
}
Line {
SrcBlock "Flap"
SrcPort 1
DstBlock "Mux"
DstPort 1
}
Line {
SrcBlock "Mixture"
SrcPort 1
Points [0, 10]
DstBlock "Mux"
DstPort 6
}
Line {
SrcBlock "Ignition"
SrcPort 1
DstBlock "Mux"
DstPort 7
}
Line {
SrcBlock "Mux"
SrcPort 1
Points [0, -50]
DstBlock "Aerosonde UAV"
DstPort 1
}
Line {
SrcBlock "Bank-angle-to-Aileron\nProportional"
SrcPort 1
DstBlock "Sum"
DstPort 1
}
Line {
SrcBlock "Bank angle\nIntegrator"
SrcPort 1
DstBlock "Bank-angle-to-Aileron\nIntegral"
DstPort 1
}
Line {
SrcBlock "Bank-angle-to-Aileron\nIntegral"
SrcPort 1
Points [-15, 0]
DstBlock "Sum"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 11
DstBlock "Mux1"
DstPort 1
}
Line {
SrcBlock "Demux2"
SrcPort 12
DstBlock "Mux1"
DstPort 2
}
Line {
SrcBlock "Demux2"
SrcPort 13
DstBlock "Mux1"
DstPort 3
}
Line {
SrcBlock "Sum3"
SrcPort 1
Points [-5, 0]
Branch {
Points [-5, 0]
Branch {
DstBlock "Bank-angle-to-Aileron\nProportional"
DstPort 1
}
Branch {
Points [0, 65]
DstBlock "Bank angle\nIntegrator"
DstPort 1
}
}
Branch {
Points [0, 125]
DstBlock "To Workspace5"
DstPort 1
}
}
Line {
SrcBlock "Bank angle\nCommand"
SrcPort 1
Points [-15, 0]
DstBlock "Sum3"
DstPort 2
}
Line {
SrcBlock "Mux1"
SrcPort 1
Points [35, 0]
Branch {
DstBlock "Baliza"
DstPort 1
}
Branch {
Points [0, 35]
DstBlock "FlightGear\nInterface"
DstPort 1
}
}
Line {
SrcBlock "Baliza"
SrcPort 1
DstBlock "Receptor"
DstPort 1
}
Line {
SrcBlock "dist"
SrcPort 1
Points [-5, 0]
DstBlock "Sum4"
DstPort 2
}
Line {
SrcBlock "Sum2"
SrcPort 1
Points [-10, 0]
Branch {
DstBlock "PID elevator"
DstPort 1
}
Branch {
Points [0, 45]
DstBlock "To Workspace2"
DstPort 1
}
}
Line {
SrcBlock "Receptor"
SrcPort 1
Points [10, 0]
DstBlock "Demux3"
DstPort 1
}
Line {
Labels [2, 0]
SrcBlock "Demux3"
SrcPort 1
Points [95, 0; 0, 325]
DstBlock "Sum4"
DstPort 1
}
Line {
SrcBlock " "
SrcPort 1
DstBlock "Sum5"
DstPort 2
}
Line {
SrcBlock "Sum1"
SrcPort 1
Points [-10, 0]
Branch {
DstBlock "PID rudder"
DstPort 1
}
Branch {
Points [0, 50]
DstBlock "To Workspace4"
DstPort 1
}
}
Line {
SrcBlock "Sum4"
SrcPort 1
Points [-5, 0]
Branch {
DstBlock "Kp1"
DstPort 1
}
Branch {
DstBlock "To Workspace1"
DstPort 1
}
}
Line {
SrcBlock "PID rudder"
SrcPort 1
Points [-125, 0; 0, -790]
DstBlock "Mux"
DstPort 4
}
Line {
SrcBlock "Sum"
SrcPort 1
Points [-10, 0; 0, -300]
DstBlock "Mux"
DstPort 3
}
Line {
SrcBlock " Ki1"
SrcPort 1
DstBlock " integrator1"
DstPort 1
}
Line {
SrcBlock "Pitch-to-Elevator\nDerivative"
SrcPort 1
DstBlock "pitch error\nDerivative"
DstPort 1
}
Line {
SrcBlock "Kp1"
SrcPort 1
Points [0, 0; -10, 0]
Branch {
Points [0, 35]
Branch {
DstBlock " Ki1"
DstPort 1
}
Branch {
DstBlock "Pitch-to-Elevator\nDerivative"
DstPort 1
}
}
Branch {
DstBlock "Add1"
DstPort 1
}
}
Line {
SrcBlock " integrator1"
SrcPort 1
Points [0, -25]
DstBlock "Add1"
DstPort 2
}
Line {
SrcBlock "pitch error\nDerivative"
SrcPort 1
Points [-5, 0; 0, -80]
DstBlock "Add1"
DstPort 3
}
Line {
SrcBlock "Heading_deseado"
SrcPort 1
Points [-285, 0; 0, 40]
DstBlock "Switch1"
DstPort 1
}
Line {
SrcBlock "Mux4"
SrcPort 1
DstBlock "Heading_deseado"
DstPort 1
}
Line {
SrcBlock "Sum5"
SrcPort 1
Points [-10, 0]
Branch {
DstBlock "Mux4"
DstPort 1
}
Branch {
Points [-30, 0]
DstBlock "To Workspace3"
DstPort 1
}
}
Line {
SrcBlock " desfase"
SrcPort 1
Points [-15, 0]
DstBlock "Sum6"
DstPort 2
}
Line {
SrcBlock "Add1"
SrcPort 1
DstBlock "Sum6"
DstPort 1
}
Line {
SrcBlock "Sum6"
SrcPort 1
Points [-190, 0; 0, -40]
DstBlock "Switch2"
DstPort 3
}
Line {
SrcBlock "heading final"
SrcPort 1
Points [-15, 0; 0, -15]
DstBlock "Switch1"
DstPort 3
}
Line {
SrcBlock "Switch1"
SrcPort 1
Points [-5, 0]
DstBlock "Sum1"
DstPort 2
}
Line {
SrcBlock "PID elevator"
SrcPort 1
Points [-20, 0; 0, -500]
DstBlock "Mux"
DstPort 2
}
Line {
SrcBlock "Switch2"
SrcPort 1
Points [-5, 0]
DstBlock "Sum2"
DstPort 2
}
Line {
SrcBlock "Elevacion del morro"
SrcPort 1
DstBlock "Switch3"
DstPort 3
}
Line {
SrcBlock "Pitch final"
SrcPort 1
Points [-30, 0]
DstBlock "Switch3"
DstPort 1
}
Line {
SrcBlock "Switch3"
SrcPort 1
Points [-50, 0; 0, 35]
DstBlock "Switch2"
DstPort 1
}
Line {
SrcBlock "Switch4"
SrcPort 1
Points [35, 0; 0, 70]
DstBlock "Mux"
DstPort 5
}
Line {
SrcBlock "Throttle"
SrcPort 1
DstBlock "Switch4"
DstPort 1
}
Line {
SrcBlock "Throttle final"
SrcPort 1
Points [0, -25]
DstBlock "Switch4"
DstPort 3
}
Line {
SrcBlock "Demux3"
SrcPort 2
Points [40, 0; 0, 10]
Branch {
Points [0, 510]
DstBlock "Sum5"
DstPort 1
}
Branch {
Points [65, 0]
DstBlock "To Workspace7"
DstPort 1
}
}
Line {
SrcBlock "Demux3"
SrcPort 4
Points [0, 15; 5, 0]
Branch {
Points [0, -485; -775, 0]
DstBlock "Switch4"
DstPort 2
}
Branch {
Points [10, 0; 0, 25]
Branch {
Points [0, 505]
DstBlock "Switch1"
DstPort 2
}
Branch {
DstBlock "To Workspace6"
DstPort 1
}
}
}
Line {
SrcBlock "Demux3"
SrcPort 3
Points [0, 10; 65, 0]
Branch {
Points [5, 0; 0, 235]
Branch {
DstBlock "Switch2"
DstPort 2
}
Branch {
Points [0, 180; 0, 0]
Branch {
Points [0, 100]
DstBlock "Mux4"
DstPort 2
}
Branch {
Points [0, -215]
DstBlock "Elevacion del morro"
DstPort 1
}
}
}
Branch {
DstBlock "To Workspace8"
DstPort 1
}
}
Line {
SrcBlock "Demux3"
SrcPort 5
Points [100, 0; 0, 40]
DstBlock "To Workspace"
DstPort 1
}
Line {
SrcBlock "Demux3"
SrcPort 6
Points [105, 0]
DstBlock "To Workspace9"
DstPort 1
}
Annotation {
Name "Groundspeed X-axis"
Position [807, 63]
}
Annotation {
Name "Groundspeed Y-axis"
Position [807, 83]
}
Annotation {
Name "Groundspeed Z-axis"
Position [807, 103]
}
Annotation {
Name "Roll rate p"
Position [787, 123]
}
Annotation {
Name "Pitch rate q"
Position [792, 143]
}
Annotation {
Name "Yaw rate r"
Position [787, 163]
}
Annotation {
Name "Quaternion e0"
Position [797, 183]
}
Annotation {
Name "Quaternion ex"
Position [797, 203]
}
Annotation {
Name "Quaternion ey"
Position [797, 223]
}
Annotation {
Name "Quaternion ez"
Position [797, 243]
}
Annotation {
Name "Latitude"
Position [782, 263]
}
Annotation {
Name "Longitude"
Position [787, 283]
}
Annotation {
Name "Altitude"
Position [782, 303]
}
Annotation {
Name "Fuel mass"
Position [787, 323]
}
Annotation {
Name "Bank-angle to ailerons PI control"
Position [269, 395]
}
Annotation {
Name "Engine speed"
Position [797, 343]
}
Annotation {
Name "x"
Position [905, 994]
}
Annotation {
Name "y"
Position [911, 1018]
}
Annotation {
Name "dist a ref"
Position [909, 455]
}
Annotation {
Name "x"
Position [890, 479]
}
Annotation {
Name "y"
Position [891, 504]
}
Annotation {
Name "z"
Position [889, 525]
}
Annotation {
Name "z"
Position [406, 1056]
}
Annotation {
Name "z"
Position [123, 46]
}
Annotation {
Name "y"
Position [265, 734]
}
Annotation {
Name "distancia a eje"
Position [846, 1056]
}
}
}
e-REdING. Biblioteca de la Escuela Superior de Ingenieros de Sevilla.