Model {
  Name			  "aero_dap3dof"
  Version		  6.2
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.131"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  Description		  "This model was featured in \"Fly Me to the Moon - T"
"hen and Now\", the story of the digital autopilot in the Lunar Module from th"
"e Summer 1999 issue of \"MATLAB News & Notes\".  You can read the article at:"
"\n \n http://www.mathworks.com/company/newsletter/news_notes/sum99/lunar_modu"
"le.html\n"
  RequirementInfo	  "9"
  SavedCharacterEncoding  "US-ASCII"
  PreLoadFcn		  "aero_dap3dofdata"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  on
  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	  "d"
  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  on
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  CloseFcn		  "h=findobj('type','figure','Name','aero_dap3dof');if"
" ~isempty(h);close(h);end"
  Created		  "Mon Mar 15 01:15:24 1999"
  Creator		  "The MathWorks Inc."
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "batserve"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Sat Jan 22 19:07:55 2005"
  ModelVersionFormat	  "1.%<AutoIncrement:131>"
  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	  "oneshot"
  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	  off
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock off
  BufferReuse		  on
  StrictBusMsg		  "None"
  ProdHWDeviceType	  "Specified"
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.1.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.1.0"
	  StartTime		  "0"
	  StopTime		  "25"
	  AbsTol		  "1e-6"
	  FixedStep		  "clockt/4"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  RelTol		  "1e-3"
	  SolverMode		  "SingleTasking"
	  Solver		  "ode45"
	  SolverName		  "ode45"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.1.0"
	  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
	  SignalLogging		  on
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsOut"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.1.0"
	  BlockReduction	  off
	  BooleanDataType	  off
	  ConditionallyExecuteInputs on
	  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
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode off
	  LifeSpan		  "inf"
	  BufferReusableBoundary  on
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.1.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  SolverPrmCheckMsg	  "none"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "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"
	  FcnCallInpInsideContextMsg "Use local settings"
	  SignalLabelMismatchMsg  "none"
	  UnconnectedInputMsg	  "warning"
	  UnconnectedOutputMsg	  "warning"
	  UnconnectedLineMsg	  "warning"
	  SFcnCompatibilityMsg	  "none"
	  UniqueDataStoreMsg	  "none"
	  BusObjectLabelMismatch  "warning"
	  RootOutportRequireBusObject "warning"
	  AssertControl		  "UseLocalSettings"
	  EnableOverflowDetection off
	  ModelReferenceIOMsg	  "none"
	  ModelReferenceVersionMismatchMessage "none"
	  ModelReferenceIOMismatchMessage "none"
	  ModelReferenceCSMismatchMessage "none"
	  ModelReferenceSimTargetVerbose off
	  UnknownTsInhSupMsg	  "warning"
	  ModelReferenceDataLoggingMessage "warning"
	  ModelReferenceSymbolNameMessage "warning"
	  ModelReferenceExtraNoncontSigs "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Version		  "1.1.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  32
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "Unspecified"
	  ProdWordSize		  32
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "Specified"
	  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		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.1.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Version		  "1.1.0"
	  SystemTargetFile	  "grt.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_rtw"
	  TemplateMakefile	  "grt_vc.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
	  TargetLang		  "C"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Version		      "1.1.0"
	      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
	      Version		      "1.1.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      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	      "Solver"
    }
    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		      DataStoreMemory
      StateMustResolveToSignalObject off
      ShowAdditionalParam     off
      DataType		      "auto"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      SignalType	      "auto"
    }
    Block {
      BlockType		      DataStoreRead
    }
    Block {
      BlockType		      DataStoreWrite
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      DigitalClock
      SampleTime	      "1"
    }
    Block {
      BlockType		      DiscreteZeroPole
      Zeros		      "[1]"
      Poles		      "[0 1]"
      Gain		      "[1]"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      EnablePort
      StatesWhenEnabling      "held"
      ShowOutputPort	      off
      ZeroCross		      on
    }
    Block {
      BlockType		      From
      IconDisplay	      "Tag"
    }
    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		      Goto
      IconDisplay	      "Tag"
    }
    Block {
      BlockType		      SignalConversion
      OverrideOpt	      off
    }
    Block {
      BlockType		      Inport
      UseBusObject	      off
      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"
      IgnoreLimit	      off
      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		      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"
      UseBusObject	      off
      BusObject		      "BusObject"
      NonVirtualBus	      off
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      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		      RelationalOperator
      Operator		      ">="
      InputSameDT	      on
      LogicOutDataTypeMode    "Logical (see Configuration Parameters: Optimiza"
"tion)"
      LogicDataType	      "uint(8)"
      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"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      Step
      Time		      "1"
      Before		      "0"
      After		      "1"
      SampleTime	      "-1"
      VectorParams1D	      on
      ZeroCross		      on
    }
    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		      ZeroOrderHold
      SampleTime	      "1"
    }
  }
  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		    "aero_dap3dof"
    Location		    [45, 85, 1040, 607]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    209
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "usletter"
    PaperUnits		    "inches"
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Constant
      Name		      "Ascent Single\nJets"
      Position		      [485, 440, 505, 460]
      BackgroundColor	      "orange"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Astronaut Attitude\nCommand\nto Autopilot"
      Ports		      [0, 1]
      Position		      [40, 130, 80, 170]
      FontName		      "Arial"
      FontSize		      12
      FontWeight	      "bold"
      FontAngle		      "italic"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Astronaut Attitude\nCommand\nto Autopilot"
	Location		[58, 198, 479, 412]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Constant
	  Name			  "Attitude\nCmd at t=0"
	  Position		  [80, 128, 165, 152]
	  BackgroundColor	  "cyan"
	  Value			  "[0 0 0]'"
	  VectorParams1D	  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Attitude\nCmd at t=step"
	  Position		  [80, 44, 165, 66]
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  Value			  "[0.03 0.05 0.1]'"
	  VectorParams1D	  off
	}
	Block {
	  BlockType		  Step
	  Name			  "Step"
	  Position		  [135, 80, 165, 110]
	  Time			  "0.25"
	  SampleTime		  "0"
	}
	Block {
	  BlockType		  Switch
	  Name			  "Switch"
	  Position		  [205, 80, 235, 110]
	  Threshold		  "0.5"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Cmd."
	  Position		  [310, 87, 345, 103]
	  IconDisplay		  "Port number"
	}
	Line {
	  SrcBlock		  "Step"
	  SrcPort		  1
	  DstBlock		  "Switch"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Attitude\nCmd at t=step"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Switch"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Attitude\nCmd at t=0"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Switch"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Switch"
	  SrcPort		  1
	  DstBlock		  "Cmd."
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Scope
      Name		      "Attitudes"
      Ports		      [1]
      Position		      [935, 179, 965, 211]
      Location		      [528, 30, 1147, 338]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "0"
      YMax		      "0.12"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Data Store\nMemory"
      Position		      [785, 440, 839, 466]
      ShowName		      off
      DataStoreName	      "e_edot"
      InitialValue	      "[0 0]"
      RTWStateStorageClass    "Auto"
      VectorParams1D	      on
      ShowAdditionalParam     off
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Data Store\nMemory1"
      Position		      [750, 475, 804, 501]
      ShowName		      off
      DataStoreName	      "NofJets"
      InitialValue	      "2"
      RTWStateStorageClass    "Auto"
      VectorParams1D	      on
      ShowAdditionalParam     off
    }
    Block {
      BlockType		      DataStoreMemory
      Name		      "Data Store\nMemory2"
      Position		      [818, 475, 894, 500]
      ShowName		      off
      DataStoreName	      "PitchRollJets"
      InitialValue	      "2"
      RTWStateStorageClass    "Auto"
      VectorParams1D	      on
      ShowAdditionalParam     off
    }
    Block {
      BlockType		      Constant
      Name		      "Four Jet"
      Position		      [245, 440, 265, 460]
      BackgroundColor	      "orange"
      Value		      "4"
    }
    Block {
      BlockType		      SubSystem
      Name		      "H x Omega"
      Ports		      [2, 1]
      Position		      [515, 322, 565, 353]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskType		      "Vector Cross Product"
      MaskDescription	      "This block computes the vector cross product of"
" the first input with the second input.  The output is then z= v1 x v2."
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"H x Omega"
	Location		[128, 207, 736, 594]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "v1"
	  Position		  [25, 60, 45, 80]
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "v2"
	  Position		  [25, 255, 45, 275]
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [95, 44, 140, 96]
	  Outputs		  "3"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 3]
	  Position		  [95, 239, 140, 291]
	  Outputs		  "3"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [3, 1]
	  Position		  [465, 137, 500, 173]
	  Inputs		  "3"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [380, 52, 410, 83]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum1"
	  Ports			  [2, 1]
	  Position		  [380, 137, 410, 168]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum2"
	  Ports			  [2, 1]
	  Position		  [380, 232, 410, 263]
	  Inputs		  "+-"
	}
	Block {
	  BlockType		  Product
	  Name			  "v1(1)*v2(2)"
	  Ports			  [2, 1]
	  Position		  [260, 12, 290, 43]
	}
	Block {
	  BlockType		  Product
	  Name			  "v1(1)*v2(3)"
	  Ports			  [2, 1]
	  Position		  [260, 77, 290, 108]
	}
	Block {
	  BlockType		  Product
	  Name			  "v1(2)*v2(1)"
	  Ports			  [2, 1]
	  Position		  [260, 152, 290, 183]
	}
	Block {
	  BlockType		  Product
	  Name			  "v1(2)*v2(3)"
	  Ports			  [2, 1]
	  Position		  [260, 207, 290, 238]
	}
	Block {
	  BlockType		  Product
	  Name			  "v1(3)*v2(1)"
	  Ports			  [2, 1]
	  Position		  [260, 267, 290, 298]
	}
	Block {
	  BlockType		  Product
	  Name			  "v1(3)*v2(2)"
	  Ports			  [2, 1]
	  Position		  [260, 327, 290, 358]
	}
	Block {
	  BlockType		  Outport
	  Name			  "v1 x v2"
	  Position		  [540, 145, 560, 165]
	  IconDisplay		  "Port number"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "v1"
	  SrcPort		  1
	  DstBlock		  "Demux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  Points		  [45, 0; 0, 190]
	  Branch {
	    DstBlock		    "v1(3)*v2(1)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 60]
	    DstBlock		    "v1(3)*v2(2)"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "v2"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  Points		  [10, 0]
	  Branch {
	    Points		    [0, -75]
	    DstBlock		    "v1(2)*v2(1)"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, 40]
	    DstBlock		    "v1(3)*v2(1)"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  Points		  [20, 0]
	  Branch {
	    Points		    [0, 85]
	    DstBlock		    "v1(3)*v2(2)"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -230]
	    DstBlock		    "v1(1)*v2(2)"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  Points		  [30, 0; 0, -50]
	  Branch {
	    DstBlock		    "v1(2)*v2(3)"
	    DstPort		    2
	  }
	  Branch {
	    Points		    [0, -130]
	    DstBlock		    "v1(1)*v2(3)"
	    DstPort		    2
	  }
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  Points		  [65, 0]
	  Branch {
	    Points		    [0, -35]
	    DstBlock		    "v1(1)*v2(2)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 30]
	    DstBlock		    "v1(1)*v2(3)"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  Points		  [55, 0; 0, 90]
	  Branch {
	    DstBlock		    "v1(2)*v2(1)"
	    DstPort		    1
	  }
	  Branch {
	    Points		    [0, 55]
	    DstBlock		    "v1(2)*v2(3)"
	    DstPort		    1
	  }
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "v1 x v2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum1"
	  SrcPort		  1
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Sum2"
	  SrcPort		  1
	  Points		  [35, 0]
	  DstBlock		  "Mux"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "v1(2)*v2(3)"
	  SrcPort		  1
	  Points		  [40, 0; 0, -165]
	  DstBlock		  "Sum"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "v1(3)*v2(2)"
	  SrcPort		  1
	  Points		  [50, 0; 0, -270]
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "v1(3)*v2(1)"
	  SrcPort		  1
	  Points		  [60, 0; 0, -140]
	  DstBlock		  "Sum1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "v1(1)*v2(3)"
	  SrcPort		  1
	  Points		  [70, 0]
	  DstBlock		  "Sum1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "v1(1)*v2(2)"
	  SrcPort		  1
	  Points		  [30, 0; 0, 210]
	  DstBlock		  "Sum2"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "v1(2)*v2(1)"
	  SrcPort		  1
	  Points		  [20, 0; 0, 85]
	  DstBlock		  "Sum2"
	  DstPort		  2
	}
      }
    }
    Block {
      BlockType		      Product
      Name		      "I Omega"
      Ports		      [2, 1]
      Position		      [615, 285, 665, 320]
      Orientation	      "left"
      BackgroundColor	      "lightBlue"
      Multiplication	      "Matrix(*)"
      Port {
	PortNumber		1
	Name			"Momentum (H)"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Product
      Name		      "I inverse times\nTorque"
      Ports		      [2, 1]
      Position		      [590, 154, 640, 196]
      BackgroundColor	      "lightBlue"
      Multiplication	      "Matrix(*)"
      Port {
	PortNumber		1
	Name			"Omega dot"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Inertia Matrix"
      Position		      [615, 255, 665, 275]
      BackgroundColor	      "cyan"
      NamePlacement	      "alternate"
      Value		      "[I]"
      VectorParams1D	      off
      Port {
	PortNumber		1
	Name			"Inertia"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Initial Position"
      Position		      [855, 240, 900, 260]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      Value		      "[0 0 0]'"
      VectorParams1D	      off
    }
    Block {
      BlockType		      Constant
      Name		      "Initial Rate"
      Position		      [720, 220, 765, 240]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      Value		      "[10 1 1]'/100"
      VectorParams1D	      off
    }
    Block {
      BlockType		      Integrator
      Name		      "Integrator"
      Ports		      [2, 1]
      Position		      [720, 166, 765, 199]
      BackgroundColor	      "yellow"
      InitialConditionSource  "external"
      Port {
	PortNumber		1
	Name			"Omega"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      Constant
      Name		      "Inverse of the\nInertia Matrix"
      Position		      [590, 125, 640, 145]
      Orientation	      "left"
      BackgroundColor	      "cyan"
      NamePlacement	      "alternate"
      Value		      "inv(I)"
      VectorParams1D	      off
    }
    Block {
      BlockType		      Scope
      Name		      "Jet Commands"
      Ports		      [2]
      Position		      [380, 265, 415, 300]
      Orientation	      "down"
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      Location		      [904, 376, 1260, 881]
      Open		      off
      NumInputPorts	      "2"
      TickLabels	      "on"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
	axes2			"%<SignalLabel>"
      }
      TimeRange		      "9.999999999999998"
      YMin		      "-3~-3"
      YMax		      "3~3"
      DataFormat	      "Array"
      LimitDataPoints	      off
      MaxDataPoints	      "10000"
    }
    Block {
      BlockType		      Mux
      Name		      "Mux"
      Ports		      [2, 1]
      Position		      [425, 124, 430, 226]
      BackgroundColor	      "black"
      Inputs		      "2"
    }
    Block {
      BlockType		      Constant
      Name		      "Nominal Two Jet Couples"
      Position		      [485, 420, 505, 440]
      BackgroundColor	      "green"
      NamePlacement	      "alternate"
      Value		      "2"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Phase Plane \nPlot"
      Ports		      [1]
      Position		      [105, 441, 160, 469]
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Phase Plane \nPlot"
	Location		[671, 359, 963, 565]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Pos. Error"
	  Position		  [40, 33, 70, 47]
	  NamePlacement		  "alternate"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant"
	  Position		  [35, 99, 70, 121]
	  ShowName		  off
	  Value			  "alph1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constant1"
	  Position		  [35, 119, 70, 141]
	  ShowName		  off
	  Value			  "alphs1"
	}
	Block {
	  BlockType		  Constant
	  Name			  "Constants for Plot"
	  Position		  [35, 142, 70, 158]
	  Value			  "DB"
	}
	Block {
	  BlockType		  DigitalClock
	  Name			  "Digital Clock"
	  Position		  [20, 53, 85, 77]
	  SampleTime		  "delt"
	}
	Block {
	  BlockType		  MATLABFcn
	  Name			  "MATLAB Fcn"
	  Position		  [180, 70, 240, 100]
	  MATLABFcn		  "aero_phaseplane"
	  OutputDimensions	  "0"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux1"
	  Ports			  [5, 1]
	  Position		  [130, 28, 135, 142]
	  ShowName		  off
	  Inputs		  "5"
	  DisplayOption		  "bar"
	}
	Line {
	  SrcBlock		  "Mux1"
	  SrcPort		  1
	  DstBlock		  "MATLAB Fcn"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Pos. Error"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Mux1"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Digital Clock"
	  SrcPort		  1
	  DstBlock		  "Mux1"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Constants for Plot"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Mux1"
	  DstPort		  5
	}
	Line {
	  SrcBlock		  "Constant"
	  SrcPort		  1
	  Points		  [30, 0; 0, -25]
	  DstBlock		  "Mux1"
	  DstPort		  3
	}
	Line {
	  SrcBlock		  "Constant1"
	  SrcPort		  1
	  Points		  [35, 0; 0, -25]
	  DstBlock		  "Mux1"
	  DstPort		  4
	}
      }
    }
    Block {
      BlockType		      Gain
      Name		      "Pitch Accleration"
      Position		      [450, 158, 505, 192]
      BackgroundColor	      "yellow"
      NamePlacement	      "alternate"
      Gain		      "Force*L_arm"
    }
    Block {
      BlockType		      Scope
      Name		      "Rates"
      Ports		      [1]
      Position		      [935, 119, 965, 151]
      Location		      [28, 53, 585, 351]
      Open		      off
      NumInputPorts	      "1"
      List {
	ListType		AxesTitles
	axes1			"%<SignalLabel>"
      }
      YMin		      "-0.075"
      YMax		      "0.125"
      DataFormat	      "StructureWithTime"
      LimitDataPoints	      off
    }
    Block {
      BlockType		      SubSystem
      Name		      "Reaction Jet Control"
      Ports		      [2, 2]
      Position		      [180, 125, 375, 225]
      BackgroundColor	      "cyan"
      DropShadow	      on
      AncestorBlock	      "librcs/Reaction Jet Control"
      FontName		      "Arial"
      FontSize		      12
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      System {
	Name			"Reaction Jet Control"
	Location		[65, 91, 1017, 646]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "Attitude\nCmd."
	  Position		  [20, 373, 50, 387]
	  BackgroundColor	  "cyan"
	  Port			  "1"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Inport
	  Name			  "Attitude\nMeas."
	  Position		  [20, 138, 50, 152]
	  BackgroundColor	  "cyan"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  LatchInput		  off
	}
	Block {
	  BlockType		  Product
	  Name			  "Convert Attitude to\nUV coords."
	  Ports			  [2, 1]
	  Position		  [380, 360, 435, 400]
	  BackgroundColor	  "cyan"
	  Multiplication	  "Matrix(*)"
	  Port {
	    PortNumber		    1
	    Name		    "(u,v)"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Product
	  Name			  "Convert Rate to\nUV coords."
	  Ports			  [2, 1]
	  Position		  [430, 145, 485, 185]
	  BackgroundColor	  "cyan"
	  Multiplication	  "Matrix(*)"
	}
	Block {
	  BlockType		  Product
	  Name			  "Convert u,v to\nq,r coords."
	  Ports			  [2, 1]
	  Position		  [790, 300, 845, 340]
	  BackgroundColor	  "cyan"
	  Multiplication	  "Matrix(*)"
	  Port {
	    PortNumber		    1
	    Name		    "Pitch and Roll Jets"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux"
	  Ports			  [1, 3]
	  Position		  [135, 50, 140, 240]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux1"
	  Ports			  [1, 3]
	  Position		  [135, 348, 140, 412]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "3"
	  Port {
	    PortNumber		    1
	    Name		    "Yaw error"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    2
	    Name		    "Roll error"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    3
	    Name		    "Pitch Error"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux2"
	  Ports			  [1, 2]
	  Position		  [510, 251, 515, 289]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "2"
	}
	Block {
	  BlockType		  Demux
	  Name			  "Demux3"
	  Ports			  [1, 2]
	  Position		  [510, 361, 515, 399]
	  BackgroundColor	  "black"
	  ShowName		  off
	  Outputs		  "2"
	  Port {
	    PortNumber		    1
	    Name		    "u"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  Port {
	    PortNumber		    2
	    Name		    "v"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  From
	  Name			  "From"
	  Position		  [485, 39, 560, 61]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  GotoTag		  "Yaw_error"
	}
	Block {
	  BlockType		  Goto
	  Name			  "Goto"
	  Position		  [265, 349, 330, 371]
	  BackgroundColor	  "yellow"
	  ShowName		  off
	  GotoTag		  "Yaw_error"
	  TagVisibility		  "local"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux"
	  Ports			  [2, 1]
	  Position		  [375, 156, 380, 194]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux2"
	  Ports			  [2, 1]
	  Position		  [245, 371, 250, 409]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	  Port {
	    PortNumber		    1
	    ShowPropagatedSignals   "on"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Mux
	  Name			  "Mux3"
	  Ports			  [2, 1]
	  Position		  [760, 311, 765, 349]
	  ShowName		  off
	  Inputs		  "2"
	  DisplayOption		  "bar"
	}
	Block {
	  BlockType		  DiscreteZeroPole
	  Name			  "Rate Derivation (Pitch)"
	  Position		  [205, 191, 315, 229]
	  BackgroundColor	  "cyan"
	  Poles			  "[0]"
	  Gain			  "1/delt "
	  SampleTime		  "-1"
	  Port {
	    PortNumber		    1
	    Name		    "Pitch Rate"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  DiscreteZeroPole
	  Name			  "Rate Derivation (Roll)"
	  Position		  [205, 126, 315, 164]
	  BackgroundColor	  "cyan"
	  Poles			  "[0]"
	  Gain			  "1/delt "
	  SampleTime		  "-1"
	  Port {
	    PortNumber		    1
	    Name		    "Roll Rate"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  DiscreteZeroPole
	  Name			  "Rate Derivation (Yaw)"
	  Position		  [205, 61, 315, 99]
	  BackgroundColor	  "cyan"
	  Poles			  "[0]"
	  Gain			  "1/delt "
	  SampleTime		  "-1"
	  Port {
	    PortNumber		    1
	    Name		    "Yaw Rate"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	}
	Block {
	  BlockType		  Sum
	  Name			  "Sum"
	  Ports			  [2, 1]
	  Position		  [80, 365, 110, 395]
	  BackgroundColor	  "cyan"
	  IconShape		  "round"
	  Inputs		  "+-|"
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "Yaw Control Law"
	  Ports			  [2, 1]
	  Position		  [595, 37, 720, 93]
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  AncestorBlock		  "libdap/Yaw Control Law"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Control Law"
	  MaskDescription	  "Implements Control Law for the LM. Works fo"
"r yaw, u and v jet axes."
	  MaskPromptString	  "Single Jet Accel:|Single Jet Switch Curve A"
"ccel:|Dead Band:|Min Jet On Time:|Sample Time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "alph=@1;alphs=@2;DB=@3;tmin=@4;delt=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "alph1|alphs1|DB|tmin|delt"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortNumber		    1
	    Name		    "Yaw Jets"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "Yaw Control Law"
	    Location		    [50, 93, 1062, 648]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Position"
	      Position		      [15, 83, 45, 97]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"e"
		PropagatedSignals	"Yaw error"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Rate"
	      Position		      [15, 118, 45, 132]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"edot"
		PropagatedSignals	"Yaw Rate"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "2*alphs/( alph + alphs )"
	      Position		      [450, 365, 490, 405]
	      Orientation	      "up"
	      BackgroundColor	      "cyan"
	      Gain		      "2*alphs/( alph + alphs )"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      ">= 0"
	      Position		      [485, 274, 510, 306]
	      BackgroundColor	      "cyan"
	      Expr		      "u*( u >= 0 )"
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs"
	      Position		      [345, 410, 375, 440]
	      BackgroundColor	      "cyan"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Accleration\nfrom a Single Jet"
	      Position		      [35, 252, 80, 268]
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Value		      "alph"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Chart"
	      Ports		      [8, 3]
	      Position		      [570, 57, 685, 313]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskType		      "Stateflow"
	      MaskDescription	      "Stateflow diagram"
	      MaskDisplay	      "plot(sf('Private','sfblk','xIcon'),sf('"
"Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo"
"ntalAl','Center','VerticalAl','Bottom');"
	      MaskSelfModifiable      on
	      MaskIconFrame	      off
	      MaskIconOpaque	      off
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      Port {
		PortNumber		1
		Name			"Jet Command"
		PropagatedSignals	"jets"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		2
		Name			"enable"
		PropagatedSignals	"enable"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"ton"
		PropagatedSignals	"ton"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      System {
		Name			"Chart"
		Location		[257, 457, 812, 717]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Nofjets"
		  Position		  [20, 101, 40, 119]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "e"
		  Position		  [20, 136, 40, 154]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Firefct1"
		  Position		  [20, 171, 40, 189]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Coastfct1"
		  Position		  [20, 206, 40, 224]
		  Port			  "4"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Firefct2"
		  Position		  [20, 246, 40, 264]
		  Port			  "5"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Coastfct2"
		  Position		  [20, 281, 40, 299]
		  Port			  "6"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "tjcalc1"
		  Position		  [20, 316, 40, 334]
		  Port			  "7"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "tjcalc"
		  Position		  [20, 351, 40, 369]
		  Port			  "8"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Demux
		  Name			  " Demux "
		  Ports			  [1, 1]
		  Position		  [270, 285, 320, 325]
		  Outputs		  "1"
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  " SFunction "
		  Tag			  "Stateflow S-Function aero_dap3dof 4"
		  Ports			  [8, 4]
		  Position		  [180, 105, 230, 285]
		  FunctionName		  "sf_sfun"
		  Parameters		  "delt,tmin"
		  PortCounts		  "[8 4]"
		  Port {
		    PortNumber		    2
		    Name		    "jets"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortNumber		    3
		    Name		    "enable"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortNumber		    4
		    Name		    "ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Terminator
		  Name			  " Terminator "
		  Position		  [460, 296, 480, 314]
		}
		Block {
		  BlockType		  Outport
		  Name			  "jets"
		  Position		  [460, 101, 480, 119]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "enable"
		  Position		  [460, 136, 480, 154]
		  Port			  "2"
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "ton"
		  Position		  [460, 171, 480, 189]
		  Port			  "3"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  " SFunction "
		  SrcPort		  1
		  Points		  [0, 175]
		  DstBlock		  " Demux "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  " Demux "
		  SrcPort		  1
		  DstBlock		  " Terminator "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Nofjets"
		  SrcPort		  1
		  Points		  [120, 0]
		  DstBlock		  " SFunction "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Firefct1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Coastfct1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "Firefct2"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "Coastfct2"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  6
		}
		Line {
		  SrcBlock		  "tjcalc1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  7
		}
		Line {
		  SrcBlock		  "tjcalc"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  8
		}
		Line {
		  Name			  "jets"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  2
		  DstBlock		  "jets"
		  DstPort		  1
		}
		Line {
		  Name			  "enable"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  3
		  DstBlock		  "enable"
		  DstPort		  1
		}
		Line {
		  Name			  "ton"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  4
		  DstBlock		  "ton"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "Clock at counter\ntime tic (0.000625) c"
"lockt"
	      Position		      [590, 416, 640, 434]
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      SampleTime	      "0.000625"
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "Clock at time\ndelt (Sample time)"
	      Position		      [590, 436, 640, 454]
	      BackgroundColor	      "yellow"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead"
	      Position		      [110, 350, 155, 380]
	      ShowName		      off
	      DataStoreName	      "NofJets"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead1"
	      Position		      [322, 30, 368, 60]
	      Orientation	      "down"
	      ShowName		      off
	      DataStoreName	      "NofJets"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreWrite
	      Name		      "Data Store\nWrite"
	      Position		      [195, 30, 245, 60]
	      ShowName		      off
	      DataStoreName	      "e_edot"
	      SampleTime	      "-1"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Dead Zone"
	      Position		      [40, 470, 70, 500]
	      BackgroundColor	      "cyan"
	      Value		      "DB"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Divide\ne and edot\nby N*alph"
	      Ports		      [3, 1]
	      Position		      [200, 236, 220, 284]
	      BackgroundColor	      "cyan"
	      Inputs		      "*//"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Divide DB\nby N*alph"
	      Ports		      [3, 1]
	      Position		      [185, 447, 205, 493]
	      BackgroundColor	      "cyan"
	      Inputs		      "//*"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Jet On TIme Counter"
	      Ports		      [3, 1, 1]
	      Position		      [705, 394, 810, 456]
	      BackgroundColor	      "yellow"
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      Port {
		PortNumber		1
		Name			"Counter\nOutput"
		PropagatedSignals	"Stop Command"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      System {
		Name			"Jet On TIme Counter"
		Location		[299, 76, 1239, 615]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "ton"
		  Position		  [50, 93, 80, 107]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "ton"
		    PropagatedSignals	    "ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "Clock at tics"
		  Position		  [50, 153, 80, 167]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "Time in clockt\nmultiples"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "Clock at\nSample Time"
		  Position		  [50, 218, 80, 232]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "Time in delt\nmultiples"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  EnablePort
		  Name			  "Enable"
		  Ports			  []
		  Position		  [480, 15, 500, 35]
		  StatesWhenEnabling	  "reset"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [400, 170, 430, 200]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  Value			  "0"
		}
		Block {
		  BlockType		  RelationalOperator
		  Name			  "Relational\nOperator"
		  Position		  [400, 92, 430, 123]
		  Operator		  ">"
		  Port {
		    PortNumber		    1
		    Name		    "Stop Command"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [260, 90, 280, 110]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  Port {
		    PortNumber		    1
		    Name		    "Count down of ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [190, 150, 210, 170]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  Port {
		    PortNumber		    1
		    Name		    "Time after last\nsample in clock "
"tics"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Stop jets"
		  Position		  [555, 103, 585, 117]
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  Points		  [-15, 0; 0, -70]
		  DstBlock		  "Relational\nOperator"
		  DstPort		  2
		}
		Line {
		  Name			  "ton"
		  Labels		  [0, 0]
		  SrcBlock		  "ton"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  Name			  "Time in clockt\nmultiples"
		  Labels		  [0, 1]
		  SrcBlock		  "Clock at tics"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "Time in delt\nmultiples"
		  Labels		  [0, 1]
		  SrcBlock		  "Clock at\nSample Time"
		  SrcPort		  1
		  Points		  [115, 0]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  Name			  "Time after last\nsample in clock ti"
"cs"
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [55, 0]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  Name			  "Count down of ton"
		  Labels		  [1, 0]
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  DstBlock		  "Relational\nOperator"
		  DstPort		  1
		}
		Line {
		  Name			  "Stop Command"
		  Labels		  [1, 0]
		  SrcBlock		  "Relational\nOperator"
		  SrcPort		  1
		  DstBlock		  "Stop jets"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator"
	      Ports		      [2, 1]
	      Position		      [840, 229, 865, 256]
	      BackgroundColor	      "yellow"
	      Operator		      "NOR"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator1"
	      Ports		      [2, 1]
	      Position		      [900, 238, 920, 262]
	      BackgroundColor	      "yellow"
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux3"
	      Ports		      [2, 1]
	      Position		      [135, 73, 140, 142]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	      Port {
		PortNumber		1
		ShowPropagatedSignals	"on"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [945, 226, 975, 259]
	      BackgroundColor	      "yellow"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select e/alph"
	      Ports		      [1, 1]
	      Position		      [265, 413, 295, 437]
	      BackgroundColor	      "cyan"
	      Elements		      "[1]"
	      InputPortWidth	      "2"
	      Port {
		PortNumber		1
		Name			"e/alph"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select edot/alph"
	      Ports		      [1, 1]
	      Position		      [300, 247, 335, 273]
	      BackgroundColor	      "cyan"
	      Elements		      "[2]"
	      InputPortWidth	      "2"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Square"
	      Ports		      [2, 1]
	      Position		      [413, 295, 437, 315]
	      Orientation	      "down"
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Port {
		PortNumber		1
		Name			"(edot/alph)^2"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Square root"
	      Ports		      [1, 1]
	      Position		      [525, 275, 555, 305]
	      BackgroundColor	      "cyan"
	      Operator		      "sqrt"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem"
	      Ports		      [2, 1]
	      Position		      [400, 123, 500, 152]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem"
		Location		[303, 80, 1243, 619]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 95, 165, 115]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alph)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "-++"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Firefct1"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Firefct1"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Firefct1\nThis function establishes"
" when the jets are to be fired in a negative sense\nFirefct1 = e + edot ^2/(2"
"*N*alph) - DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem1"
	      Ports		      [2, 1]
	      Position		      [400, 153, 500, 182]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem1"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 90, 165, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alphs)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "-+-"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Coastfct1"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Coastfct1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Coastfct1\nThis function establishe"
"s when the jets are to be turned off (coasting)\nCoastfct1 = e - edot ^2/(2*N"
"*alphs) - DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem2"
	      Ports		      [2, 1]
	      Position		      [400, 183, 500, 212]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem2"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [130, 90, 160, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alph)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "++-"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Firefct2"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [15, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Firefct2"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Firefct2\nThis function establishes"
" when the jets are to be fired in a positive sense\nFirefct2 = e - edot ^2/(2"
"*N*alph) + DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem3"
	      Ports		      [2, 1]
	      Position		      [400, 213, 500, 242]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem3"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 90, 165, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alphs)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "+++"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Coastfct2"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Coastfct2"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Coastfct2\nThis function establishe"
"s when the jets are to be turned off (coasting)\nCoastfct1 = e + edot ^2/(2*N"
"*alphs) + DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [415, 415, 435, 435]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "++-"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "divide by 2"
	      Position		      [406, 355, 444, 385]
	      Orientation	      "down"
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Gain		      "0.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Jet\nCommand"
	      Position		      [1020, 240, 1050, 250]
	      BackgroundColor	      "yellow"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      ">= 0"
	      SrcPort		      1
	      DstBlock		      "Square root"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2*alphs/( alph + alphs )"
	      SrcPort		      1
	      DstBlock		      ">= 0"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead1"
	      SrcPort		      1
	      Points		      [0, 15]
	      Branch {
		Points			[0, 65]
		Branch {
		  Points		  [0, 30]
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Subsystem3"
		    DstPort		    2
		    }
		    Branch {
		    DstBlock		    "Subsystem2"
		    DstPort		    2
		    }
		  }
		  Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    2
		  }
		}
		Branch {
		  DstBlock		  "Subsystem"
		  DstPort		  2
		}
	      }
	      Branch {
		DstBlock		"Chart"
		DstPort			1
	      }
	    }
	    Line {
	      Name		      "edot"
	      Labels		      [0, 1]
	      SrcBlock		      "Rate"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      2
	    }
	    Line {
	      Name		      "e"
	      Labels		      [0, 1]
	      SrcBlock		      "Position"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      1
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Mux3"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, -65]
		DstBlock		"Data Store\nWrite"
		DstPort			1
	      }
	      Branch {
		Labels			[-1, 1]
		DstBlock		"Chart"
		DstPort			2
	      }
	      Branch {
		Labels			[1, 0]
		Points			[80, 0]
		Branch {
		  Points		  [-80, 0; 0, 135]
		  DstBlock		  "Divide\ne and edot\nby N*alph"
		  DstPort		  1
		}
		Branch {
		  Points		  [0, 20]
		  Branch {
		    DstBlock		    "Subsystem"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 30]
		    Branch {
		    DstBlock		    "Subsystem2"
		    DstPort		    1
		    }
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Subsystem3"
		    DstPort		    1
		    }
		    }
		  }
		}
	      }
	    }
	    Line {
	      Name		      "(edot/alph)^2"
	      Labels		      [0, 0]
	      SrcBlock		      "Square"
	      SrcPort		      1
	      DstBlock		      "divide by 2"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Square root"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      8
	    }
	    Line {
	      Name		      "Jet Command"
	      Labels		      [0, 0]
	      SrcBlock		      "Chart"
	      SrcPort		      1
	      Points		      [235, 0; 0, 135]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Select edot/alph"
	      SrcPort		      1
	      Points		      [80, 0]
	      Branch {
		DstBlock		"Square"
		DstPort			1
	      }
	      Branch {
		Points			[10, 0]
		Branch {
		  DstBlock		  "Chart"
		  DstPort		  7
		}
		Branch {
		  DstBlock		  "Square"
		  DstPort		  2
		}
	      }
	    }
	    Line {
	      Name		      "e/alph"
	      Labels		      [0, 0]
	      SrcBlock		      "Select e/alph"
	      SrcPort		      1
	      DstBlock		      "Abs"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "divide by 2"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      Points		      [30, 0]
	      DstBlock		      "2*alphs/( alph + alphs )"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Abs"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Divide\ne and edot\nby N*alph"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		DstBlock		"Select edot/alph"
		DstPort			1
	      }
	      Branch {
		Points			[0, 165]
		DstBlock		"Select e/alph"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, -90]
		DstBlock		"Divide\ne and edot\nby N*alph"
		DstPort			3
	      }
	      Branch {
		DstBlock		"Divide DB\nby N*alph"
		DstPort			1
	      }
	    }
	    Line {
	      Labels		      [1, 0]
	      SrcBlock		      "Accleration\nfrom a Single Jet"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		DstBlock		"Divide\ne and edot\nby N*alph"
		DstPort			2
	      }
	      Branch {
		Points			[0, 210]
		DstBlock		"Divide DB\nby N*alph"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Dead Zone"
	      SrcPort		      1
	      DstBlock		      "Divide DB\nby N*alph"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Divide DB\nby N*alph"
	      SrcPort		      1
	      Points		      [215, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      Name		      "enable"
	      Labels		      [1, 0]
	      SrcBlock		      "Chart"
	      SrcPort		      2
	      Points		      [65, 0; 0, 50]
	      Branch {
		DstBlock		"Jet On TIme Counter"
		DstPort			enable
	      }
	      Branch {
		Labels			[1, 0]
		DstBlock		"Logical\nOperator"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      Name		      "ton"
	      SrcBlock		      "Chart"
	      SrcPort		      3
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Clock at counter\ntime tic (0.000625) c"
"lockt"
	      SrcPort		      1
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Clock at time\ndelt (Sample time)"
	      SrcPort		      1
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      3
	    }
	    Line {
	      Name		      "Counter\nOutput"
	      Labels		      [0, 0]
	      SrcBlock		      "Jet On TIme Counter"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Labels			[-1, 0]
		DstBlock		"Logical\nOperator"
		DstPort			2
	      }
	      Branch {
		Points			[60, 0]
		DstBlock		"Logical\nOperator1"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator"
	      SrcPort		      1
	      DstBlock		      "Logical\nOperator1"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem3"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "Subsystem2"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Subsystem1"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      3
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Jet\nCommand"
	      DstPort		      1
	    }
	    Annotation {
	      Name		      "Logic implements:\n~(enable | stopjets)"
" | stopjets"
	      Position		      [974, 315]
	      BackgroundColor	      "yellow"
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "q,r to u,v \nconversion1"
	  Position		  [430, 114, 485, 136]
	  Orientation		  "left"
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  Value			  "[sqrt(2) sqrt(2); -sqrt(2) sqrt(2)]/2"
	  VectorParams1D	  off
	}
	Block {
	  BlockType		  Constant
	  Name			  "q,r to u,v \nconversion2"
	  Position		  [380, 329, 435, 351]
	  Orientation		  "left"
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  Value			  "[sqrt(2) sqrt(2); -sqrt(2) sqrt(2)]/2"
	  VectorParams1D	  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "u Control Law"
	  Ports			  [2, 1]
	  Position		  [595, 217, 720, 273]
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  AncestorBlock		  "libdap/Pitch Roll Control Law"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Control Law"
	  MaskDescription	  "Implements Control Law for the LM. Works fo"
"r yaw, u and v jet axes."
	  MaskPromptString	  "Single Jet Accel:|Single Jet Switch Curve A"
"ccel:|Dead Band:|Min. Jet On Time:|Sample Time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "alph=@1;alphs=@2;DB=@3;tmin=@4;delt=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "alphu|alphsu|DB|tmin|delt"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortNumber		    1
	    Name		    "u Jets"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "u Control Law"
	    Location		    [94, 137, 1106, 692]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Position"
	      Position		      [15, 83, 45, 97]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"e"
		PropagatedSignals	"u"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Rate"
	      Position		      [15, 118, 45, 132]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"edot"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "2*alphs/( alph + alphs )"
	      Position		      [445, 370, 485, 410]
	      Orientation	      "up"
	      BackgroundColor	      "cyan"
	      Gain		      "2*alphs/( alph + alphs )"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      ">= 0"
	      Position		      [480, 275, 505, 305]
	      BackgroundColor	      "cyan"
	      Expr		      "u*( u >= 0 )"
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs"
	      Position		      [345, 410, 375, 440]
	      BackgroundColor	      "cyan"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Accleration\nfrom a Single Jet"
	      Position		      [35, 252, 80, 268]
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Value		      "alph"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Chart"
	      Ports		      [8, 3]
	      Position		      [570, 57, 685, 313]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskType		      "Stateflow"
	      MaskDescription	      "Stateflow diagram"
	      MaskDisplay	      "plot(sf('Private','sfblk','xIcon'),sf('"
"Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo"
"ntalAl','Center','VerticalAl','Bottom');"
	      MaskSelfModifiable      on
	      MaskIconFrame	      off
	      MaskIconOpaque	      off
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      Port {
		PortNumber		1
		Name			"Jet Command"
		PropagatedSignals	"jets"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		2
		Name			"enable"
		PropagatedSignals	"enable"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"ton"
		PropagatedSignals	"ton"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      System {
		Name			"Chart"
		Location		[257, 457, 812, 717]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Nofjets"
		  Position		  [20, 101, 40, 119]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "e"
		  Position		  [20, 136, 40, 154]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Firefct1"
		  Position		  [20, 171, 40, 189]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Coastfct1"
		  Position		  [20, 206, 40, 224]
		  Port			  "4"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Firefct2"
		  Position		  [20, 246, 40, 264]
		  Port			  "5"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Coastfct2"
		  Position		  [20, 281, 40, 299]
		  Port			  "6"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "tjcalc1"
		  Position		  [20, 316, 40, 334]
		  Port			  "7"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "tjcalc"
		  Position		  [20, 351, 40, 369]
		  Port			  "8"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Demux
		  Name			  " Demux "
		  Ports			  [1, 1]
		  Position		  [270, 285, 320, 325]
		  Outputs		  "1"
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  " SFunction "
		  Tag			  "Stateflow S-Function aero_dap3dof 1"
		  Ports			  [8, 4]
		  Position		  [180, 105, 230, 285]
		  FunctionName		  "sf_sfun"
		  Parameters		  "delt,tmin"
		  PortCounts		  "[8 4]"
		  Port {
		    PortNumber		    2
		    Name		    "jets"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortNumber		    3
		    Name		    "enable"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortNumber		    4
		    Name		    "ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Terminator
		  Name			  " Terminator "
		  Position		  [460, 296, 480, 314]
		}
		Block {
		  BlockType		  Outport
		  Name			  "jets"
		  Position		  [460, 101, 480, 119]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "enable"
		  Position		  [460, 136, 480, 154]
		  Port			  "2"
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "ton"
		  Position		  [460, 171, 480, 189]
		  Port			  "3"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  " SFunction "
		  SrcPort		  1
		  Points		  [0, 175]
		  DstBlock		  " Demux "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  " Demux "
		  SrcPort		  1
		  DstBlock		  " Terminator "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Nofjets"
		  SrcPort		  1
		  Points		  [120, 0]
		  DstBlock		  " SFunction "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Firefct1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Coastfct1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "Firefct2"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "Coastfct2"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  6
		}
		Line {
		  SrcBlock		  "tjcalc1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  7
		}
		Line {
		  SrcBlock		  "tjcalc"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  8
		}
		Line {
		  Name			  "jets"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  2
		  DstBlock		  "jets"
		  DstPort		  1
		}
		Line {
		  Name			  "enable"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  3
		  DstBlock		  "enable"
		  DstPort		  1
		}
		Line {
		  Name			  "ton"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  4
		  DstBlock		  "ton"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "Clock at counter\ntime tic (0.000625) c"
"lockt"
	      Position		      [590, 416, 640, 434]
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      SampleTime	      "0.000625"
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "Clock at time\ndelt (Sample time)"
	      Position		      [590, 436, 640, 454]
	      BackgroundColor	      "yellow"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead"
	      Position		      [100, 349, 165, 381]
	      ShowName		      off
	      DataStoreName	      "PitchRollJets"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead1"
	      Position		      [312, 30, 378, 60]
	      Orientation	      "down"
	      ShowName		      off
	      DataStoreName	      "PitchRollJets"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Dead Zone"
	      Position		      [40, 470, 70, 500]
	      BackgroundColor	      "cyan"
	      Value		      "DB"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Divide\ne and edot\nby N*alph"
	      Ports		      [3, 1]
	      Position		      [200, 236, 220, 284]
	      BackgroundColor	      "cyan"
	      Inputs		      "*//"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Divide DB\nby N*alph"
	      Ports		      [3, 1]
	      Position		      [185, 447, 205, 493]
	      BackgroundColor	      "cyan"
	      Inputs		      "//*"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Jet On TIme Counter"
	      Ports		      [3, 1, 1]
	      Position		      [705, 394, 810, 456]
	      BackgroundColor	      "yellow"
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      Port {
		PortNumber		1
		Name			"Counter\nOutput"
		PropagatedSignals	"Stop Command"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      System {
		Name			"Jet On TIme Counter"
		Location		[297, 74, 1237, 613]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "ton"
		  Position		  [50, 93, 80, 107]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "ton"
		    PropagatedSignals	    "ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "Clock at tics"
		  Position		  [50, 153, 80, 167]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "Time in clockt\nmultiples"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "Clock at\nSample Time"
		  Position		  [50, 218, 80, 232]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "Time in delt\nmultiples"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  EnablePort
		  Name			  "Enable"
		  Ports			  []
		  Position		  [480, 15, 500, 35]
		  StatesWhenEnabling	  "reset"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [400, 170, 430, 200]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  Value			  "0"
		}
		Block {
		  BlockType		  RelationalOperator
		  Name			  "Relational\nOperator"
		  Position		  [400, 92, 430, 123]
		  Operator		  ">"
		  Port {
		    PortNumber		    1
		    Name		    "Stop Command"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [260, 90, 280, 110]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  Port {
		    PortNumber		    1
		    Name		    "Count down of ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [190, 150, 210, 170]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  Port {
		    PortNumber		    1
		    Name		    "Time after last\nsample in clock "
"tics"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Stop jets"
		  Position		  [555, 103, 585, 117]
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "Stop Command"
		  Labels		  [1, 0]
		  SrcBlock		  "Relational\nOperator"
		  SrcPort		  1
		  DstBlock		  "Stop jets"
		  DstPort		  1
		}
		Line {
		  Name			  "Count down of ton"
		  Labels		  [1, 0]
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  DstBlock		  "Relational\nOperator"
		  DstPort		  1
		}
		Line {
		  Name			  "Time after last\nsample in clock ti"
"cs"
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [55, 0]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  Name			  "Time in delt\nmultiples"
		  Labels		  [0, 1]
		  SrcBlock		  "Clock at\nSample Time"
		  SrcPort		  1
		  Points		  [115, 0]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  Name			  "Time in clockt\nmultiples"
		  Labels		  [0, 1]
		  SrcBlock		  "Clock at tics"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "ton"
		  Labels		  [0, 0]
		  SrcBlock		  "ton"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  Points		  [-15, 0; 0, -70]
		  DstBlock		  "Relational\nOperator"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator"
	      Ports		      [2, 1]
	      Position		      [840, 229, 865, 256]
	      BackgroundColor	      "yellow"
	      Operator		      "NOR"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator1"
	      Ports		      [2, 1]
	      Position		      [900, 238, 920, 262]
	      BackgroundColor	      "yellow"
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux3"
	      Ports		      [2, 1]
	      Position		      [135, 73, 140, 142]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	      Port {
		PortNumber		1
		ShowPropagatedSignals	"on"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [945, 226, 975, 259]
	      BackgroundColor	      "yellow"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select e/alph"
	      Ports		      [1, 1]
	      Position		      [265, 413, 295, 437]
	      BackgroundColor	      "cyan"
	      Elements		      "[1]"
	      InputPortWidth	      "2"
	      Port {
		PortNumber		1
		Name			"e/alph"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select edot/alph"
	      Ports		      [1, 1]
	      Position		      [300, 247, 335, 273]
	      BackgroundColor	      "cyan"
	      Elements		      "[2]"
	      InputPortWidth	      "2"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Square"
	      Ports		      [2, 1]
	      Position		      [413, 295, 437, 315]
	      Orientation	      "down"
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Port {
		PortNumber		1
		Name			"(edot/alph)^2"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Square root"
	      Ports		      [1, 1]
	      Position		      [520, 275, 550, 305]
	      BackgroundColor	      "cyan"
	      Operator		      "sqrt"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem"
	      Ports		      [2, 1]
	      Position		      [400, 123, 500, 152]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem"
		Location		[303, 80, 1243, 619]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 95, 165, 115]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alph)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "-++"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Firefct1"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Firefct1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Firefct1\nThis function establishes"
" when the jets are to be fired in a negative sense\nFirefct1 = e + edot ^2/(2"
"*N*alph) - DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem1"
	      Ports		      [2, 1]
	      Position		      [400, 153, 500, 182]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem1"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 90, 165, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alphs)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "-+-"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Coastfct1"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Coastfct1"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Coastfct1\nThis function establishe"
"s when the jets are to be turned off (coasting)\nCoastfct1 = e - edot ^2/(2*N"
"*alphs) - DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem2"
	      Ports		      [2, 1]
	      Position		      [400, 183, 500, 212]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem2"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [130, 90, 160, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alph)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "++-"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Firefct2"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Firefct2"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [15, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Firefct2\nThis function establishes"
" when the jets are to be fired in a positive sense\nFirefct2 = e - edot ^2/(2"
"*N*alph) + DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem3"
	      Ports		      [2, 1]
	      Position		      [400, 213, 500, 242]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem3"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 90, 165, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alphs)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "+++"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Coastfct2"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Coastfct2"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Coastfct2\nThis function establishe"
"s when the jets are to be turned off (coasting)\nCoastfct1 = e + edot ^2/(2*N"
"*alphs) + DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [415, 415, 435, 435]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "++-"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "divide by 2"
	      Position		      [406, 355, 444, 385]
	      Orientation	      "down"
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Gain		      "0.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Jet\nCommand"
	      Position		      [1020, 240, 1050, 250]
	      BackgroundColor	      "yellow"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      ">= 0"
	      SrcPort		      1
	      DstBlock		      "Square root"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2*alphs/( alph + alphs )"
	      SrcPort		      1
	      DstBlock		      ">= 0"
	      DstPort		      1
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Jet\nCommand"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Subsystem1"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Subsystem2"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Subsystem3"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator"
	      SrcPort		      1
	      DstBlock		      "Logical\nOperator1"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Counter\nOutput"
	      Labels		      [0, 0]
	      SrcBlock		      "Jet On TIme Counter"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[60, 0]
		DstBlock		"Logical\nOperator1"
		DstPort			2
	      }
	      Branch {
		Labels			[-1, 0]
		DstBlock		"Logical\nOperator"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Clock at time\ndelt (Sample time)"
	      SrcPort		      1
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Clock at counter\ntime tic (0.000625) c"
"lockt"
	      SrcPort		      1
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      2
	    }
	    Line {
	      Name		      "ton"
	      SrcBlock		      "Chart"
	      SrcPort		      3
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      Name		      "enable"
	      Labels		      [1, 0]
	      SrcBlock		      "Chart"
	      SrcPort		      2
	      Points		      [65, 0; 0, 50]
	      Branch {
		Labels			[1, 0]
		DstBlock		"Logical\nOperator"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Jet On TIme Counter"
		DstPort			enable
	      }
	    }
	    Line {
	      SrcBlock		      "Divide DB\nby N*alph"
	      SrcPort		      1
	      Points		      [215, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Dead Zone"
	      SrcPort		      1
	      DstBlock		      "Divide DB\nby N*alph"
	      DstPort		      3
	    }
	    Line {
	      Labels		      [1, 0]
	      SrcBlock		      "Accleration\nfrom a Single Jet"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, 210]
		DstBlock		"Divide DB\nby N*alph"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Divide\ne and edot\nby N*alph"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		DstBlock		"Divide DB\nby N*alph"
		DstPort			1
	      }
	      Branch {
		Points			[0, -90]
		DstBlock		"Divide\ne and edot\nby N*alph"
		DstPort			3
	      }
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Divide\ne and edot\nby N*alph"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, 165]
		DstBlock		"Select e/alph"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Select edot/alph"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Abs"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "2*alphs/( alph + alphs )"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "divide by 2"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      Name		      "e/alph"
	      Labels		      [0, 0]
	      SrcBlock		      "Select e/alph"
	      SrcPort		      1
	      DstBlock		      "Abs"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Select edot/alph"
	      SrcPort		      1
	      Points		      [80, 0]
	      Branch {
		Points			[10, 0]
		Branch {
		  DstBlock		  "Square"
		  DstPort		  2
		}
		Branch {
		  DstBlock		  "Chart"
		  DstPort		  7
		}
	      }
	      Branch {
		DstBlock		"Square"
		DstPort			1
	      }
	    }
	    Line {
	      Name		      "Jet Command"
	      Labels		      [0, 0]
	      SrcBlock		      "Chart"
	      SrcPort		      1
	      Points		      [235, 0; 0, 135]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Square root"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      8
	    }
	    Line {
	      Name		      "(edot/alph)^2"
	      Labels		      [0, 0]
	      SrcBlock		      "Square"
	      SrcPort		      1
	      DstBlock		      "divide by 2"
	      DstPort		      1
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Mux3"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Labels			[1, 0]
		Points			[80, 0]
		Branch {
		  Points		  [0, 20]
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Subsystem3"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Subsystem2"
		    DstPort		    1
		    }
		    }
		    Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    1
		    }
		  }
		  Branch {
		    DstBlock		    "Subsystem"
		    DstPort		    1
		  }
		}
		Branch {
		  Points		  [-80, 0; 0, 135]
		  DstBlock		  "Divide\ne and edot\nby N*alph"
		  DstPort		  1
		}
	      }
	      Branch {
		Labels			[-1, 1]
		DstBlock		"Chart"
		DstPort			2
	      }
	    }
	    Line {
	      Name		      "e"
	      Labels		      [0, 1]
	      SrcBlock		      "Position"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      1
	    }
	    Line {
	      Name		      "edot"
	      Labels		      [0, 1]
	      SrcBlock		      "Rate"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead1"
	      SrcPort		      1
	      Points		      [0, 15]
	      Branch {
		DstBlock		"Chart"
		DstPort			1
	      }
	      Branch {
		Points			[0, 65]
		Branch {
		  DstBlock		  "Subsystem"
		  DstPort		  2
		}
		Branch {
		  Points		  [0, 30]
		  Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    DstBlock		    "Subsystem2"
		    DstPort		    2
		    }
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Subsystem3"
		    DstPort		    2
		    }
		  }
		}
	      }
	    }
	    Annotation {
	      Name		      "Logic implements:\n~(enable | stopjets)"
" | stopjets"
	      Position		      [974, 315]
	      BackgroundColor	      "yellow"
	    }
	  }
	}
	Block {
	  BlockType		  Constant
	  Name			  "u,v to q,r\nconversion matrix"
	  Position		  [790, 269, 845, 291]
	  Orientation		  "left"
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  Value			  "[1 -1; 1 1]"
	  VectorParams1D	  off
	}
	Block {
	  BlockType		  SubSystem
	  Name			  "v Control Law"
	  Ports			  [2, 1]
	  Position		  [595, 377, 720, 433]
	  BackgroundColor	  "cyan"
	  NamePlacement		  "alternate"
	  AncestorBlock		  "libdap/Pitch Roll Control Law"
	  TreatAsAtomicUnit	  off
	  MinAlgLoopOccurrences	  off
	  RTWSystemCode		  "Auto"
	  MaskType		  "Control Law"
	  MaskDescription	  "Implements Control Law for the LM. Works fo"
"r yaw, u and v jet axes."
	  MaskPromptString	  "Single Jet Accel:|Single Jet Switch Curve A"
"ccel:|Dead Band:|Min. Jet On Time:|Sample Time:"
	  MaskStyleString	  "edit,edit,edit,edit,edit"
	  MaskTunableValueString  "on,on,on,on,on"
	  MaskCallbackString	  "||||"
	  MaskEnableString	  "on,on,on,on,on"
	  MaskVisibilityString	  "on,on,on,on,on"
	  MaskToolTipString	  "on,on,on,on,on"
	  MaskVarAliasString	  ",,,,"
	  MaskVariables		  "alph=@1;alphs=@2;DB=@3;tmin=@4;delt=@5;"
	  MaskIconFrame		  on
	  MaskIconOpaque	  on
	  MaskIconRotate	  "none"
	  MaskIconUnits		  "autoscale"
	  MaskValueString	  "alphv|alphsv|DB|tmin|delt"
	  MaskTabNameString	  ",,,,"
	  Port {
	    PortNumber		    1
	    Name		    "v Jets"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	    ShowSigGenPortName	    on
	  }
	  System {
	    Name		    "v Control Law"
	    Location		    [94, 137, 1106, 692]
	    Open		    off
	    ModelBrowserVisibility  off
	    ModelBrowserWidth	    200
	    ScreenColor		    "white"
	    PaperOrientation	    "landscape"
	    PaperPositionMode	    "auto"
	    PaperType		    "usletter"
	    PaperUnits		    "inches"
	    ZoomFactor		    "100"
	    Block {
	      BlockType		      Inport
	      Name		      "Position"
	      Position		      [15, 83, 45, 97]
	      Port		      "1"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"e"
		PropagatedSignals	"v"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Inport
	      Name		      "Rate"
	      Position		      [15, 118, 45, 132]
	      Port		      "2"
	      IconDisplay	      "Port number"
	      LatchInput	      off
	      Port {
		PortNumber		1
		Name			"edot"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "2*alphs/( alph + alphs )"
	      Position		      [445, 370, 485, 410]
	      Orientation	      "up"
	      BackgroundColor	      "cyan"
	      Gain		      "2*alphs/( alph + alphs )"
	    }
	    Block {
	      BlockType		      Fcn
	      Name		      ">= 0"
	      Position		      [480, 275, 505, 305]
	      BackgroundColor	      "cyan"
	      Expr		      "u*( u >= 0 )"
	    }
	    Block {
	      BlockType		      Abs
	      Name		      "Abs"
	      Position		      [345, 410, 375, 440]
	      BackgroundColor	      "cyan"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Accleration\nfrom a Single Jet"
	      Position		      [35, 252, 80, 268]
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Value		      "alph"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Chart"
	      Ports		      [8, 3]
	      Position		      [570, 57, 685, 313]
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      MaskType		      "Stateflow"
	      MaskDescription	      "Stateflow diagram"
	      MaskDisplay	      "plot(sf('Private','sfblk','xIcon'),sf('"
"Private','sfblk','yIcon'));text(0.5,0,sf('Private', 'sfblk', 'tIcon'),'Horizo"
"ntalAl','Center','VerticalAl','Bottom');"
	      MaskSelfModifiable      on
	      MaskIconFrame	      off
	      MaskIconOpaque	      off
	      MaskIconRotate	      "none"
	      MaskIconUnits	      "autoscale"
	      Port {
		PortNumber		1
		Name			"Jet Command"
		PropagatedSignals	"jets"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		2
		Name			"enable"
		PropagatedSignals	"enable"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      Port {
		PortNumber		3
		Name			"ton"
		PropagatedSignals	"ton"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      System {
		Name			"Chart"
		Location		[257, 457, 812, 717]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "Nofjets"
		  Position		  [20, 101, 40, 119]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "e"
		  Position		  [20, 136, 40, 154]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Firefct1"
		  Position		  [20, 171, 40, 189]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Coastfct1"
		  Position		  [20, 206, 40, 224]
		  Port			  "4"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Firefct2"
		  Position		  [20, 246, 40, 264]
		  Port			  "5"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "Coastfct2"
		  Position		  [20, 281, 40, 299]
		  Port			  "6"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "tjcalc1"
		  Position		  [20, 316, 40, 334]
		  Port			  "7"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "tjcalc"
		  Position		  [20, 351, 40, 369]
		  Port			  "8"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Demux
		  Name			  " Demux "
		  Ports			  [1, 1]
		  Position		  [270, 285, 320, 325]
		  Outputs		  "1"
		}
		Block {
		  BlockType		  "S-Function"
		  Name			  " SFunction "
		  Tag			  "Stateflow S-Function aero_dap3dof 2"
		  Ports			  [8, 4]
		  Position		  [180, 105, 230, 285]
		  FunctionName		  "sf_sfun"
		  Parameters		  "delt,tmin"
		  PortCounts		  "[8 4]"
		  Port {
		    PortNumber		    2
		    Name		    "jets"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortNumber		    3
		    Name		    "enable"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		  Port {
		    PortNumber		    4
		    Name		    "ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Terminator
		  Name			  " Terminator "
		  Position		  [460, 296, 480, 314]
		}
		Block {
		  BlockType		  Outport
		  Name			  "jets"
		  Position		  [460, 101, 480, 119]
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "enable"
		  Position		  [460, 136, 480, 154]
		  Port			  "2"
		  IconDisplay		  "Port number"
		}
		Block {
		  BlockType		  Outport
		  Name			  "ton"
		  Position		  [460, 171, 480, 189]
		  Port			  "3"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  " SFunction "
		  SrcPort		  1
		  Points		  [0, 175]
		  DstBlock		  " Demux "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  " Demux "
		  SrcPort		  1
		  DstBlock		  " Terminator "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Nofjets"
		  SrcPort		  1
		  Points		  [120, 0]
		  DstBlock		  " SFunction "
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Firefct1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Coastfct1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  4
		}
		Line {
		  SrcBlock		  "Firefct2"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  5
		}
		Line {
		  SrcBlock		  "Coastfct2"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  6
		}
		Line {
		  SrcBlock		  "tjcalc1"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  7
		}
		Line {
		  SrcBlock		  "tjcalc"
		  SrcPort		  1
		  DstBlock		  " SFunction "
		  DstPort		  8
		}
		Line {
		  Name			  "jets"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  2
		  DstBlock		  "jets"
		  DstPort		  1
		}
		Line {
		  Name			  "enable"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  3
		  DstBlock		  "enable"
		  DstPort		  1
		}
		Line {
		  Name			  "ton"
		  Labels		  [0, 0]
		  SrcBlock		  " SFunction "
		  SrcPort		  4
		  DstBlock		  "ton"
		  DstPort		  1
		}
	      }
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "Clock at counter\ntime tic (0.000625) c"
"lockt"
	      Position		      [590, 416, 640, 434]
	      BackgroundColor	      "yellow"
	      NamePlacement	      "alternate"
	      SampleTime	      "0.000625"
	    }
	    Block {
	      BlockType		      DigitalClock
	      Name		      "Clock at time\ndelt (Sample time)"
	      Position		      [590, 436, 640, 454]
	      BackgroundColor	      "yellow"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead"
	      Position		      [100, 349, 165, 381]
	      ShowName		      off
	      DataStoreName	      "PitchRollJets"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      DataStoreRead
	      Name		      "Data Store\nRead1"
	      Position		      [312, 30, 378, 60]
	      Orientation	      "down"
	      ShowName		      off
	      DataStoreName	      "PitchRollJets"
	      SampleTime	      "delt"
	    }
	    Block {
	      BlockType		      Constant
	      Name		      "Dead Zone"
	      Position		      [40, 470, 70, 500]
	      BackgroundColor	      "cyan"
	      Value		      "DB"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Divide\ne and edot\nby N*alph"
	      Ports		      [3, 1]
	      Position		      [200, 236, 220, 284]
	      BackgroundColor	      "cyan"
	      Inputs		      "*//"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Divide DB\nby N*alph"
	      Ports		      [3, 1]
	      Position		      [185, 447, 205, 493]
	      BackgroundColor	      "cyan"
	      Inputs		      "//*"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Jet On TIme Counter"
	      Ports		      [3, 1, 1]
	      Position		      [705, 394, 810, 456]
	      BackgroundColor	      "yellow"
	      TreatAsAtomicUnit	      on
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      Port {
		PortNumber		1
		Name			"Counter\nOutput"
		PropagatedSignals	"Stop Command"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	      System {
		Name			"Jet On TIme Counter"
		Location		[297, 74, 1237, 613]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "ton"
		  Position		  [50, 93, 80, 107]
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "ton"
		    PropagatedSignals	    "ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "Clock at tics"
		  Position		  [50, 153, 80, 167]
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "Time in clockt\nmultiples"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Inport
		  Name			  "Clock at\nSample Time"
		  Position		  [50, 218, 80, 232]
		  Port			  "3"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		  Port {
		    PortNumber		    1
		    Name		    "Time in delt\nmultiples"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  EnablePort
		  Name			  "Enable"
		  Ports			  []
		  Position		  [480, 15, 500, 35]
		  StatesWhenEnabling	  "reset"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant"
		  Position		  [400, 170, 430, 200]
		  Orientation		  "left"
		  NamePlacement		  "alternate"
		  Value			  "0"
		}
		Block {
		  BlockType		  RelationalOperator
		  Name			  "Relational\nOperator"
		  Position		  [400, 92, 430, 123]
		  Operator		  ">"
		  Port {
		    PortNumber		    1
		    Name		    "Stop Command"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum"
		  Ports			  [2, 1]
		  Position		  [260, 90, 280, 110]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  Port {
		    PortNumber		    1
		    Name		    "Count down of ton"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [2, 1]
		  Position		  [190, 150, 210, 170]
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "|+-"
		  Port {
		    PortNumber		    1
		    Name		    "Time after last\nsample in clock "
"tics"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Stop jets"
		  Position		  [555, 103, 585, 117]
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "Stop Command"
		  Labels		  [1, 0]
		  SrcBlock		  "Relational\nOperator"
		  SrcPort		  1
		  DstBlock		  "Stop jets"
		  DstPort		  1
		}
		Line {
		  Name			  "Count down of ton"
		  Labels		  [1, 0]
		  SrcBlock		  "Sum"
		  SrcPort		  1
		  DstBlock		  "Relational\nOperator"
		  DstPort		  1
		}
		Line {
		  Name			  "Time after last\nsample in clock ti"
"cs"
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  Points		  [55, 0]
		  DstBlock		  "Sum"
		  DstPort		  2
		}
		Line {
		  Name			  "Time in delt\nmultiples"
		  Labels		  [0, 1]
		  SrcBlock		  "Clock at\nSample Time"
		  SrcPort		  1
		  Points		  [115, 0]
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  Name			  "Time in clockt\nmultiples"
		  Labels		  [0, 1]
		  SrcBlock		  "Clock at tics"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "ton"
		  Labels		  [0, 0]
		  SrcBlock		  "ton"
		  SrcPort		  1
		  DstBlock		  "Sum"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "Constant"
		  SrcPort		  1
		  Points		  [-15, 0; 0, -70]
		  DstBlock		  "Relational\nOperator"
		  DstPort		  2
		}
	      }
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator"
	      Ports		      [2, 1]
	      Position		      [840, 229, 865, 256]
	      BackgroundColor	      "yellow"
	      Operator		      "NOR"
	    }
	    Block {
	      BlockType		      Logic
	      Name		      "Logical\nOperator1"
	      Ports		      [2, 1]
	      Position		      [900, 238, 920, 262]
	      BackgroundColor	      "yellow"
	      Operator		      "OR"
	    }
	    Block {
	      BlockType		      Mux
	      Name		      "Mux3"
	      Ports		      [2, 1]
	      Position		      [135, 73, 140, 142]
	      ShowName		      off
	      Inputs		      "2"
	      DisplayOption	      "bar"
	      Port {
		PortNumber		1
		ShowPropagatedSignals	"on"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Product"
	      Ports		      [2, 1]
	      Position		      [945, 226, 975, 259]
	      BackgroundColor	      "yellow"
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select e/alph"
	      Ports		      [1, 1]
	      Position		      [265, 413, 295, 437]
	      BackgroundColor	      "cyan"
	      Elements		      "[1]"
	      InputPortWidth	      "2"
	      Port {
		PortNumber		1
		Name			"e/alph"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Selector
	      Name		      "Select edot/alph"
	      Ports		      [1, 1]
	      Position		      [300, 247, 335, 273]
	      BackgroundColor	      "cyan"
	      Elements		      "[2]"
	      InputPortWidth	      "2"
	    }
	    Block {
	      BlockType		      Product
	      Name		      "Square"
	      Ports		      [2, 1]
	      Position		      [413, 295, 437, 315]
	      Orientation	      "down"
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Port {
		PortNumber		1
		Name			"(edot/alph)^2"
		RTWStorageClass		"Auto"
		DataLoggingNameMode	"SignalName"
		ShowSigGenPortName	on
	      }
	    }
	    Block {
	      BlockType		      Math
	      Name		      "Square root"
	      Ports		      [1, 1]
	      Position		      [520, 275, 550, 305]
	      BackgroundColor	      "cyan"
	      Operator		      "sqrt"
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem"
	      Ports		      [2, 1]
	      Position		      [400, 123, 500, 152]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem"
		Location		[303, 80, 1243, 619]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 95, 165, 115]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alph)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "-++"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Firefct1"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Firefct1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Firefct1\nThis function establishes"
" when the jets are to be fired in a negative sense\nFirefct1 = e + edot ^2/(2"
"*N*alph) - DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem1"
	      Ports		      [2, 1]
	      Position		      [400, 153, 500, 182]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem1"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 90, 165, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alphs)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "-+-"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Coastfct1"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Coastfct1"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Coastfct1\nThis function establishe"
"s when the jets are to be turned off (coasting)\nCoastfct1 = e - edot ^2/(2*N"
"*alphs) - DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem2"
	      Ports		      [2, 1]
	      Position		      [400, 183, 500, 212]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem2"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [130, 90, 160, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alph)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "++-"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Firefct2"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Firefct2"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [15, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Firefct2\nThis function establishes"
" when the jets are to be fired in a positive sense\nFirefct2 = e - edot ^2/(2"
"*N*alph) + DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      SubSystem
	      Name		      "Subsystem3"
	      Ports		      [2, 1]
	      Position		      [400, 213, 500, 242]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      TreatAsAtomicUnit	      off
	      MinAlgLoopOccurrences   off
	      RTWSystemCode	      "Auto"
	      System {
		Name			"Subsystem3"
		Location		[301, 78, 1241, 617]
		Open			off
		ModelBrowserVisibility	off
		ModelBrowserWidth	200
		ScreenColor		"white"
		PaperOrientation	"landscape"
		PaperPositionMode	"auto"
		PaperType		"usletter"
		PaperUnits		"inches"
		ZoomFactor		"100"
		Block {
		  BlockType		  Inport
		  Name			  "e and edot"
		  Position		  [30, 15, 60, 30]
		  Orientation		  "down"
		  BackgroundColor	  "cyan"
		  Port			  "1"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Inport
		  Name			  "NofJets"
		  Position		  [135, 90, 165, 110]
		  BackgroundColor	  "cyan"
		  NamePlacement		  "alternate"
		  Port			  "2"
		  IconDisplay		  "Port number"
		  LatchInput		  off
		}
		Block {
		  BlockType		  Gain
		  Name			  "1/(2*alph)"
		  Position		  [280, 113, 370, 167]
		  BackgroundColor	  "cyan"
		  Gain			  "1/(2*alphs)"
		}
		Block {
		  BlockType		  Constant
		  Name			  "Constant2"
		  Position		  [315, 15, 345, 45]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  Value			  "DB"
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select e"
		  Ports			  [1, 1]
		  Position		  [75, 48, 105, 72]
		  BackgroundColor	  "cyan"
		  Elements		  "[1]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "e"
		    PropagatedSignals	    "e"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Selector
		  Name			  "Select edot"
		  Ports			  [1, 1]
		  Position		  [75, 129, 105, 151]
		  BackgroundColor	  "cyan"
		  Elements		  "[2]"
		  InputPortWidth	  "2"
		  Port {
		    PortNumber		    1
		    Name		    "edot"
		    PropagatedSignals	    "edot"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Sum
		  Name			  "Sum1"
		  Ports			  [3, 1]
		  Position		  [385, 50, 405, 70]
		  BackgroundColor	  "cyan"
		  ShowName		  off
		  IconShape		  "round"
		  Inputs		  "+++"
		}
		Block {
		  BlockType		  Product
		  Name			  "edot^2"
		  Ports			  [3, 1]
		  Position		  [195, 121, 220, 159]
		  BackgroundColor	  "cyan"
		  Inputs		  "/**"
		  Port {
		    PortNumber		    1
		    Name		    "edot^2"
		    RTWStorageClass	    "Auto"
		    DataLoggingNameMode	    "SignalName"
		    ShowSigGenPortName	    on
		  }
		}
		Block {
		  BlockType		  Outport
		  Name			  "Coastfct2"
		  Position		  [430, 53, 460, 67]
		  BackgroundColor	  "cyan"
		  IconDisplay		  "Port number"
		}
		Line {
		  SrcBlock		  "Sum1"
		  SrcPort		  1
		  DstBlock		  "Coastfct2"
		  DstPort		  1
		}
		Line {
		  Name			  "e"
		  Labels		  [0, 0]
		  SrcBlock		  "Select e"
		  SrcPort		  1
		  DstBlock		  "Sum1"
		  DstPort		  2
		}
		Line {
		  SrcBlock		  "Constant2"
		  SrcPort		  1
		  Points		  [45, 0]
		  DstBlock		  "Sum1"
		  DstPort		  1
		}
		Line {
		  SrcBlock		  "1/(2*alph)"
		  SrcPort		  1
		  Points		  [20, 0]
		  DstBlock		  "Sum1"
		  DstPort		  3
		}
		Line {
		  SrcBlock		  "e and edot"
		  SrcPort		  1
		  Points		  [0, 25]
		  Branch {
		    Points		    [0, 80]
		    DstBlock		    "Select edot"
		    DstPort		    1
		  }
		  Branch {
		    DstBlock		    "Select e"
		    DstPort		    1
		  }
		}
		Line {
		  SrcBlock		  "NofJets"
		  SrcPort		  1
		  Points		  [10, 0]
		  DstBlock		  "edot^2"
		  DstPort		  1
		}
		Line {
		  Name			  "edot"
		  Labels		  [0, 0]
		  SrcBlock		  "Select edot"
		  SrcPort		  1
		  Points		  [35, 0]
		  Branch {
		    Points		    [0, 10]
		    DstBlock		    "edot^2"
		    DstPort		    3
		  }
		  Branch {
		    DstBlock		    "edot^2"
		    DstPort		    2
		  }
		}
		Line {
		  Name			  "edot^2"
		  Labels		  [0, 0]
		  SrcBlock		  "edot^2"
		  SrcPort		  1
		  DstBlock		  "1/(2*alph)"
		  DstPort		  1
		}
		Annotation {
		  Name			  "Coastfct2\nThis function establishe"
"s when the jets are to be turned off (coasting)\nCoastfct1 = e + edot ^2/(2*N"
"*alphs) + DB"
		  Position		  [275, 209]
		}
	      }
	    }
	    Block {
	      BlockType		      Sum
	      Name		      "Sum"
	      Ports		      [3, 1]
	      Position		      [415, 415, 435, 435]
	      BackgroundColor	      "cyan"
	      ShowName		      off
	      IconShape		      "round"
	      Inputs		      "++-"
	    }
	    Block {
	      BlockType		      Gain
	      Name		      "divide by 2"
	      Position		      [406, 355, 444, 385]
	      Orientation	      "down"
	      BackgroundColor	      "cyan"
	      NamePlacement	      "alternate"
	      Gain		      "0.5"
	    }
	    Block {
	      BlockType		      Outport
	      Name		      "Jet\nCommand"
	      Position		      [1020, 240, 1050, 250]
	      BackgroundColor	      "yellow"
	      IconDisplay	      "Port number"
	      InitialOutput	      "0"
	    }
	    Line {
	      SrcBlock		      ">= 0"
	      SrcPort		      1
	      DstBlock		      "Square root"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "2*alphs/( alph + alphs )"
	      SrcPort		      1
	      DstBlock		      ">= 0"
	      DstPort		      1
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Product"
	      SrcPort		      1
	      DstBlock		      "Jet\nCommand"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Subsystem"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Subsystem1"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      4
	    }
	    Line {
	      SrcBlock		      "Subsystem2"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      5
	    }
	    Line {
	      SrcBlock		      "Subsystem3"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      6
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator"
	      SrcPort		      1
	      DstBlock		      "Logical\nOperator1"
	      DstPort		      1
	    }
	    Line {
	      Name		      "Counter\nOutput"
	      Labels		      [0, 0]
	      SrcBlock		      "Jet On TIme Counter"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[60, 0]
		DstBlock		"Logical\nOperator1"
		DstPort			2
	      }
	      Branch {
		Labels			[-1, 0]
		DstBlock		"Logical\nOperator"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Clock at time\ndelt (Sample time)"
	      SrcPort		      1
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Clock at counter\ntime tic (0.000625) c"
"lockt"
	      SrcPort		      1
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      2
	    }
	    Line {
	      Name		      "ton"
	      SrcBlock		      "Chart"
	      SrcPort		      3
	      DstBlock		      "Jet On TIme Counter"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Logical\nOperator1"
	      SrcPort		      1
	      DstBlock		      "Product"
	      DstPort		      2
	    }
	    Line {
	      Name		      "enable"
	      Labels		      [1, 0]
	      SrcBlock		      "Chart"
	      SrcPort		      2
	      Points		      [65, 0; 0, 50]
	      Branch {
		Labels			[1, 0]
		DstBlock		"Logical\nOperator"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Jet On TIme Counter"
		DstPort			enable
	      }
	    }
	    Line {
	      SrcBlock		      "Divide DB\nby N*alph"
	      SrcPort		      1
	      Points		      [215, 0]
	      DstBlock		      "Sum"
	      DstPort		      3
	    }
	    Line {
	      SrcBlock		      "Dead Zone"
	      SrcPort		      1
	      DstBlock		      "Divide DB\nby N*alph"
	      DstPort		      3
	    }
	    Line {
	      Labels		      [1, 0]
	      SrcBlock		      "Accleration\nfrom a Single Jet"
	      SrcPort		      1
	      Points		      [10, 0]
	      Branch {
		Points			[0, 210]
		DstBlock		"Divide DB\nby N*alph"
		DstPort			2
	      }
	      Branch {
		DstBlock		"Divide\ne and edot\nby N*alph"
		DstPort			2
	      }
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead"
	      SrcPort		      1
	      Points		      [0, 0]
	      Branch {
		DstBlock		"Divide DB\nby N*alph"
		DstPort			1
	      }
	      Branch {
		Points			[0, -90]
		DstBlock		"Divide\ne and edot\nby N*alph"
		DstPort			3
	      }
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Divide\ne and edot\nby N*alph"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Points			[0, 165]
		DstBlock		"Select e/alph"
		DstPort			1
	      }
	      Branch {
		DstBlock		"Select edot/alph"
		DstPort			1
	      }
	    }
	    Line {
	      SrcBlock		      "Abs"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Sum"
	      SrcPort		      1
	      DstBlock		      "2*alphs/( alph + alphs )"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "divide by 2"
	      SrcPort		      1
	      DstBlock		      "Sum"
	      DstPort		      1
	    }
	    Line {
	      Name		      "e/alph"
	      Labels		      [0, 0]
	      SrcBlock		      "Select e/alph"
	      SrcPort		      1
	      DstBlock		      "Abs"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Select edot/alph"
	      SrcPort		      1
	      Points		      [80, 0]
	      Branch {
		Points			[10, 0]
		Branch {
		  DstBlock		  "Square"
		  DstPort		  2
		}
		Branch {
		  DstBlock		  "Chart"
		  DstPort		  7
		}
	      }
	      Branch {
		DstBlock		"Square"
		DstPort			1
	      }
	    }
	    Line {
	      Name		      "Jet Command"
	      Labels		      [0, 0]
	      SrcBlock		      "Chart"
	      SrcPort		      1
	      Points		      [235, 0; 0, 135]
	      DstBlock		      "Product"
	      DstPort		      1
	    }
	    Line {
	      SrcBlock		      "Square root"
	      SrcPort		      1
	      DstBlock		      "Chart"
	      DstPort		      8
	    }
	    Line {
	      Name		      "(edot/alph)^2"
	      Labels		      [0, 0]
	      SrcBlock		      "Square"
	      SrcPort		      1
	      DstBlock		      "divide by 2"
	      DstPort		      1
	    }
	    Line {
	      Labels		      [0, 0]
	      SrcBlock		      "Mux3"
	      SrcPort		      1
	      Points		      [20, 0]
	      Branch {
		Labels			[1, 0]
		Points			[80, 0]
		Branch {
		  Points		  [0, 20]
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 30]
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Subsystem3"
		    DstPort		    1
		    }
		    Branch {
		    DstBlock		    "Subsystem2"
		    DstPort		    1
		    }
		    }
		    Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    1
		    }
		  }
		  Branch {
		    DstBlock		    "Subsystem"
		    DstPort		    1
		  }
		}
		Branch {
		  Points		  [-80, 0; 0, 135]
		  DstBlock		  "Divide\ne and edot\nby N*alph"
		  DstPort		  1
		}
	      }
	      Branch {
		Labels			[-1, 1]
		DstBlock		"Chart"
		DstPort			2
	      }
	    }
	    Line {
	      Name		      "e"
	      Labels		      [0, 1]
	      SrcBlock		      "Position"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      1
	    }
	    Line {
	      Name		      "edot"
	      Labels		      [0, 1]
	      SrcBlock		      "Rate"
	      SrcPort		      1
	      DstBlock		      "Mux3"
	      DstPort		      2
	    }
	    Line {
	      SrcBlock		      "Data Store\nRead1"
	      SrcPort		      1
	      Points		      [0, 15]
	      Branch {
		DstBlock		"Chart"
		DstPort			1
	      }
	      Branch {
		Points			[0, 65]
		Branch {
		  DstBlock		  "Subsystem"
		  DstPort		  2
		}
		Branch {
		  Points		  [0, 30]
		  Branch {
		    DstBlock		    "Subsystem1"
		    DstPort		    2
		  }
		  Branch {
		    Points		    [0, 30]
		    Branch {
		    DstBlock		    "Subsystem2"
		    DstPort		    2
		    }
		    Branch {
		    Points		    [0, 30]
		    DstBlock		    "Subsystem3"
		    DstPort		    2
		    }
		  }
		}
	      }
	    }
	    Annotation {
	      Name		      "Logic implements:\n~(enable | stopjets)"
" | stopjets"
	      Position		      [974, 315]
	      BackgroundColor	      "yellow"
	    }
	  }
	}
	Block {
	  BlockType		  Outport
	  Name			  "Yaw Jets"
	  Position		  [785, 58, 815, 72]
	  BackgroundColor	  "cyan"
	  IconDisplay		  "Port number"
	  InitialOutput		  "0"
	}
	Block {
	  BlockType		  Outport
	  Name			  "Pitch/Roll Jets"
	  Position		  [880, 378, 910, 392]
	  BackgroundColor	  "cyan"
	  Port			  "2"
	  IconDisplay		  "Port number"
	  InitialOutput		  "0"
	}
	Line {
	  SrcBlock		  "q,r to u,v \nconversion2"
	  SrcPort		  1
	  Points		  [-15, 0; 0, 30]
	  DstBlock		  "Convert Attitude to\nUV coords."
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "q,r to u,v \nconversion1"
	  SrcPort		  1
	  Points		  [-15, 0; 0, 30]
	  DstBlock		  "Convert Rate to\nUV coords."
	  DstPort		  1
	}
	Line {
	  Name			  "Pitch Rate"
	  Labels		  [1, 1]
	  SrcBlock		  "Rate Derivation (Pitch)"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Mux"
	  DstPort		  2
	}
	Line {
	  Name			  "Roll Rate"
	  Labels		  [1, 0]
	  SrcBlock		  "Rate Derivation (Roll)"
	  SrcPort		  1
	  Points		  [40, 0]
	  DstBlock		  "Mux"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  2
	  DstBlock		  "Rate Derivation (Roll)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  3
	  DstBlock		  "Rate Derivation (Pitch)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux"
	  SrcPort		  1
	  DstBlock		  "Rate Derivation (Yaw)"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Mux"
	  SrcPort		  1
	  DstBlock		  "Convert Rate to\nUV coords."
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Attitude\nMeas."
	  SrcPort		  1
	  Points		  [40, 0]
	  Branch {
	    DstBlock		    "Demux"
	    DstPort		    1
	  }
	  Branch {
	    DstBlock		    "Sum"
	    DstPort		    1
	  }
	}
	Line {
	  Name			  "Yaw Rate"
	  Labels		  [-1, 0]
	  SrcBlock		  "Rate Derivation (Yaw)"
	  SrcPort		  1
	  DstBlock		  "Yaw Control Law"
	  DstPort		  2
	}
	Line {
	  Name			  "Yaw Jets"
	  Labels		  [0, 0]
	  SrcBlock		  "Yaw Control Law"
	  SrcPort		  1
	  DstBlock		  "Yaw Jets"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "From"
	  SrcPort		  1
	  DstBlock		  "Yaw Control Law"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Sum"
	  SrcPort		  1
	  DstBlock		  "Demux1"
	  DstPort		  1
	}
	Line {
	  Name			  "Roll error"
	  Labels		  [0, 0]
	  SrcBlock		  "Demux1"
	  SrcPort		  2
	  DstBlock		  "Mux2"
	  DstPort		  1
	}
	Line {
	  Name			  "Pitch Error"
	  Labels		  [0, 0]
	  SrcBlock		  "Demux1"
	  SrcPort		  3
	  DstBlock		  "Mux2"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Convert Rate to\nUV coords."
	  SrcPort		  1
	  Points		  [5, 0]
	  DstBlock		  "Demux2"
	  DstPort		  1
	}
	Line {
	  Name			  "(u,v)"
	  Labels		  [0, 0]
	  SrcBlock		  "Convert Attitude to\nUV coords."
	  SrcPort		  1
	  DstBlock		  "Demux3"
	  DstPort		  1
	}
	Line {
	  Labels		  [0, 0]
	  SrcBlock		  "Mux2"
	  SrcPort		  1
	  DstBlock		  "Convert Attitude to\nUV coords."
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Attitude\nCmd."
	  SrcPort		  1
	  DstBlock		  "Sum"
	  DstPort		  2
	}
	Line {
	  Name			  "v Jets"
	  Labels		  [0, 0]
	  SrcBlock		  "v Control Law"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Mux3"
	  DstPort		  2
	}
	Line {
	  Name			  "u Jets"
	  Labels		  [0, 1]
	  SrcBlock		  "u Control Law"
	  SrcPort		  1
	  Points		  [20, 0]
	  DstBlock		  "Mux3"
	  DstPort		  1
	}
	Line {
	  Name			  "v"
	  Labels		  [0, 0]
	  SrcBlock		  "Demux3"
	  SrcPort		  2
	  DstBlock		  "v Control Law"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  1
	  DstBlock		  "u Control Law"
	  DstPort		  2
	}
	Line {
	  Name			  "Yaw error"
	  Labels		  [0, 0]
	  SrcBlock		  "Demux1"
	  SrcPort		  1
	  DstBlock		  "Goto"
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "Demux2"
	  SrcPort		  2
	  Points		  [15, 0; 33, 88; 0, 52]
	  DstBlock		  "v Control Law"
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "Mux3"
	  SrcPort		  1
	  DstBlock		  "Convert u,v to\nq,r coords."
	  DstPort		  2
	}
	Line {
	  SrcBlock		  "u,v to q,r\nconversion matrix"
	  SrcPort		  1
	  Points		  [-10, 0]
	  DstBlock		  "Convert u,v to\nq,r coords."
	  DstPort		  1
	}
	Line {
	  Name			  "Pitch and Roll Jets"
	  Labels		  [0, 1]
	  SrcBlock		  "Convert u,v to\nq,r coords."
	  SrcPort		  1
	  Points		  [15, 0]
	  DstBlock		  "Pitch/Roll Jets"
	  DstPort		  1
	}
	Line {
	  Name			  "u"
	  Labels		  [0, 0]
	  SrcBlock		  "Demux3"
	  SrcPort		  1
	  Points		  [15, 0; 34, -88; 0, -52]
	  DstBlock		  "u Control Law"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      DataStoreRead
      Name		      "Read data"
      Position		      [30, 440, 75, 470]
      DataStoreName	      "e_edot"
      SampleTime	      "delt"
    }
    Block {
      BlockType		      Reference
      Name		      "Single Jet (Ascent)\nor Two Jet Yaw\nCouples"
      Ports		      [2, 1]
      Position		      [565, 421, 595, 459]
      SourceBlock	      "simulink/Signal\nRouting/Manual Switch"
      SourceType	      "Manual Switch"
      ShowPortLabels	      on
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      Integrator
      Name		      "Small Angle\nPosition"
      Ports		      [2, 1]
      Position		      [855, 176, 900, 209]
      BackgroundColor	      "yellow"
      InitialConditionSource  "external"
      Port {
	PortNumber		1
	Name			"Position"
	RTWStorageClass		"Auto"
	DataLoggingNameMode	"SignalName"
	ShowSigGenPortName	on
      }
    }
    Block {
      BlockType		      SubSystem
      Name		      "SubSystem"
      Ports		      []
      Position		      [701, 52, 953, 104]
      BackgroundColor	      "yellow"
      ShowName		      off
      OpenFcn		      "web http://www.mathworks.com/company/newsletter"
"/news_notes/sum99/lunar_module.html"
      FontName		      "Arial"
      TreatAsAtomicUnit	      off
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      MaskInitialization      "dispstr = sprintf('Read the \"News & Notes\" ar"
"ticle\\nabout this model over the web.\\n(Double-Click Here)');"
      MaskDisplay	      "disp(dispstr)"
      MaskIconFrame	      on
      MaskIconOpaque	      on
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"SubSystem"
	Location		[261, 459, 759, 759]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	ZoomFactor		"100"
      }
    }
    Block {
      BlockType		      Sum
      Name		      "Sum"
      Ports		      [2, 1]
      Position		      [525, 167, 555, 198]
      BackgroundColor	      "lightBlue"
    }
    Block {
      BlockType		      Constant
      Name		      "Two Jet"
      Position		      [245, 420, 265, 440]
      BackgroundColor	      "green"
      NamePlacement	      "alternate"
      Value		      "2"
    }
    Block {
      BlockType		      Reference
      Name		      "Two Jet or\nFour Jet Yaw\nCouples"
      Ports		      [2, 1]
      Position		      [325, 421, 355, 459]
      SourceBlock	      "simulink/Signal\nRouting/Manual Switch"
      SourceType	      "Manual Switch"
      ShowPortLabels	      on
      sw		      "1"
      action		      "0"
    }
    Block {
      BlockType		      DataStoreWrite
      Name		      "Write\nPitchRoll Var"
      Position		      [625, 423, 695, 457]
      DataStoreName	      "PitchRollJets"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      DataStoreWrite
      Name		      "Write Var"
      Position		      [385, 424, 435, 456]
      DataStoreName	      "NofJets"
      SampleTime	      "-1"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "Zero-Order\nHold at delt"
      Position		      [125, 185, 150, 215]
      BackgroundColor	      "cyan"
      SampleTime	      "delt"
    }
    Block {
      BlockType		      ZeroOrderHold
      Name		      "zoh"
      Position		      [125, 135, 150, 165]
      BackgroundColor	      "cyan"
      NamePlacement	      "alternate"
      ShowName		      off
      SampleTime	      "delt"
    }
    Line {
      SrcBlock		      "Inverse of the\nInertia Matrix"
      SrcPort		      1
      Points		      [-20, 0; 0, 30]
      DstBlock		      "I inverse times\nTorque"
      DstPort		      1
    }
    Line {
      Name		      "Omega dot"
      Labels		      [0, 1]
      SrcBlock		      "I inverse times\nTorque"
      SrcPort		      1
      DstBlock		      "Integrator"
      DstPort		      1
    }
    Line {
      Name		      "Inertia"
      Labels		      [2, 0]
      SrcBlock		      "Inertia Matrix"
      SrcPort		      1
      Points		      [10, 0]
      DstBlock		      "I Omega"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Initial Rate"
      SrcPort		      1
      Points		      [-20, 0; 0, -40]
      DstBlock		      "Integrator"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Initial Position"
      SrcPort		      1
      Points		      [-15, 0; 0, -50]
      DstBlock		      "Small Angle\nPosition"
      DstPort		      2
    }
    Line {
      Name		      "Omega"
      Labels		      [0, 0]
      SrcBlock		      "Integrator"
      SrcPort		      1
      Points		      [0, 0; 35, 0]
      Branch {
	Labels			[-1, 1]
	DstBlock		"Small Angle\nPosition"
	DstPort			1
      }
      Branch {
	Points			[0, 125]
	Branch {
	  Labels		  [-1, 0]
	  DstBlock		  "I Omega"
	  DstPort		  2
	}
	Branch {
	  Labels		  [-1, 1]
	  Points		  [0, 35]
	  DstBlock		  "H x Omega"
	  DstPort		  2
	}
      }
      Branch {
	Points			[0, -50]
	DstBlock		"Rates"
	DstPort			1
      }
    }
    Line {
      Name		      "Position"
      SrcBlock		      "Small Angle\nPosition"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"Attitudes"
	DstPort			1
      }
      Branch {
	Labels			[1, 1]
	Points			[0, 185; -810, 0; 0, -180]
	DstBlock		"Zero-Order\nHold at delt"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Sum"
      SrcPort		      1
      DstBlock		      "I inverse times\nTorque"
      DstPort		      2
    }
    Line {
      Name		      "Momentum (H)"
      Labels		      [0, 0]
      SrcBlock		      "I Omega"
      SrcPort		      1
      Points		      [-30, 0]
      DstBlock		      "H x Omega"
      DstPort		      1
    }
    Line {
      SrcBlock		      "H x Omega"
      SrcPort		      1
      Points		      [-15, 0; 0, -150]
      DstBlock		      "Sum"
      DstPort		      2
    }
    Line {
      Labels		      [1, 0]
      SrcBlock		      "Astronaut Attitude\nCommand\nto Autopilot"
      SrcPort		      1
      DstBlock		      "zoh"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Pitch Accleration"
      SrcPort		      1
      DstBlock		      "Sum"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Mux"
      SrcPort		      1
      DstBlock		      "Pitch Accleration"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Reaction Jet Control"
      SrcPort		      1
      Points		      [0, 0; 10, 0]
      Branch {
	DstBlock		"Mux"
	DstPort			1
      }
      Branch {
	DstBlock		"Jet Commands"
	DstPort			1
      }
    }
    Line {
      SrcBlock		      "Reaction Jet Control"
      SrcPort		      2
      Points		      [0, 0; 25, 0]
      Branch {
	DstBlock		"Mux"
	DstPort			2
      }
      Branch {
	DstBlock		"Jet Commands"
	DstPort			2
      }
    }
    Line {
      SrcBlock		      "zoh"
      SrcPort		      1
      DstBlock		      "Reaction Jet Control"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Zero-Order\nHold at delt"
      SrcPort		      1
      DstBlock		      "Reaction Jet Control"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Ascent Single\nJets"
      SrcPort		      1
      DstBlock		      "Single Jet (Ascent)\nor Two Jet Yaw\nCouples"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Nominal Two Jet Couples"
      SrcPort		      1
      DstBlock		      "Single Jet (Ascent)\nor Two Jet Yaw\nCouples"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Single Jet (Ascent)\nor Two Jet Yaw\nCouples"
      SrcPort		      1
      DstBlock		      "Write\nPitchRoll Var"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Four Jet"
      SrcPort		      1
      DstBlock		      "Two Jet or\nFour Jet Yaw\nCouples"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Two Jet"
      SrcPort		      1
      DstBlock		      "Two Jet or\nFour Jet Yaw\nCouples"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Two Jet or\nFour Jet Yaw\nCouples"
      SrcPort		      1
      DstBlock		      "Write Var"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Read data"
      SrcPort		      1
      DstBlock		      "Phase Plane \nPlot"
      DstPort		      1
    }
    Annotation {
      Name		      "The Lunar Module Digital Autopilot Design"
      Position		      [499, 22]
      BackgroundColor	      "cyan"
      FontName		      "Arial"
      FontSize		      28
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
    Annotation {
      Name		      "How it Would be Done Today!"
      Position		      [493, 65]
      FontName		      "Arial"
      FontSize		      18
      FontWeight	      "bold"
      FontAngle		      "italic"
    }
    Annotation {
      Name		      "Initialize Data Stores"
      Position		      [818, 423]
    }
  }
}

# Finite State Machines
#
#    Stateflow Version 6.2 (R14SP2) dated Jan 21 2005, 03:46:19
#
#

Stateflow {

	machine {
		id                   		1
		name                 		"aero_dap3dof"
		created              		"17-Sep-1997 12:07:59"
		isLibrary            		0
		firstTarget          		149
		debug {
			breakOn              		[1 1 0]
			runTimeCheck         		[0 0 0 0]
		}
		sfVersion            		62014000
		sfDemoChecksum       		[1662672964 2643996128 399404897 2269291940]
	}

	chart {
		id                                        		2
		name                                      		"Reaction Jet Control/u Control Law/Chart"
		windowPosition                            		[81.6 25.92 730.56 519.36]
		viewLimits                                		[8.454 1011.325 23.424 725.351]
		zoomFactor                                		1.486
		screen                                    		[1 1 1600 1200 1.041666666666667]
		treeNode                                  		[0 3 0 0]
		firstTransition                           		13
		firstJunction                             		11
		viewObj                                   		2
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		firstData                                 		36
		updateMethod                              		DISCRETE
		sampleTime                                		"delt"
		chartFileNumber                           		1
	}

	state {
		id                  		3
		labelString         		"Wait_for_stable_rate"
		position            		[83.525 93.999 153.009 50.315]
		fontSize            		14
		arrowSize           		16.511
		chart               		2
		treeNode            		[2 0 0 4]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		4
		labelString         		"Start"
		position            		[511.941 154.84 126.031 94.794]
		fontSize            		14
		arrowSize           		11.145
		chart               		2
		treeNode            		[2 0 3 5]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		5
		labelString         		"Fire_region_1\n"
						"en: jets=-Nofjets;\n"
						"ton=tjcalc+tjcalc1;"
		position            		[327.51 329.367 138.909 60.375]
		fontSize            		14
		arrowSize           		16.511
		chart               		2
		treeNode            		[2 0 4 6]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		6
		labelString         		"Coast_region_2\n"
						"en: jets=0;\n"
						"ton=0;\n"
						"enable=0;"
		position            		[751.507 342.931 113.217 73.567]
		fontSize            		14
		arrowSize           		16.511
		chart               		2
		treeNode            		[2 0 5 7]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		7
		labelString         		"Skip_a_Sample_2\n"
						"en:count--;"
		position            		[482.593 484.99 176.921 38.349]
		fontSize            		14
		arrowSize           		8.16
		chart               		2
		treeNode            		[2 0 6 8]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		8
		labelString         		"Skip_a_Sample_1\n"
						"en:count--;"
		position            		[83.44 486.573 155.316 41.961]
		fontSize            		14
		arrowSize           		8.16
		chart               		2
		treeNode            		[2 0 7 9]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		9
		labelString         		"Coast_region_1\n"
						"en: jets=0;\n"
						"ton=0;\n"
						"enable=0;"
		position            		[328.385 579.061 115.934 73.943]
		fontSize            		14
		arrowSize           		16.511
		chart               		2
		treeNode            		[2 0 8 10]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		10
		labelString         		"Fire_region_2\n"
						"en: jets=Nofjets;\n"
						"ton=tjcalc-tjcalc1;"
		position            		[739.644 582.184 142.381 61.414]
		fontSize            		14
		arrowSize           		16.511
		chart               		2
		treeNode            		[2 0 9 0]
		subviewer           		2
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	junction {
		id         		11
		position   		[280.4678 456.3572 7.8454]
		arrowSize  		8.966
		chart      		2
		linkNode   		[2 0 12]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		12
		position   		[684.1191 536.3828 7.8454]
		arrowSize  		8.966
		chart      		2
		linkNode   		[2 11 0]
		subviewer  		2
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		13
		labelString    		"[count==0]"
		labelPosition  		[280.104 57.788 57.057 18.562]
		fontSize       		14
		arrowSize      		11.145
		src {
			id          		3
			intersection		[2 1 0 0.5252 236.535 120.4236 0 0]
		}
		dst {
			id          		4
			intersection		[1 0 -1 0.4318 566.3605 154.8403 0 0]
		}
		midPoint       		[351.8451 74.2995]
		chart          		2
		linkNode       		[2 0 14]
		dataLimits     		[236.535 569.704 58.521 154.84]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		14
		labelString    		"/count=2;"
		labelPosition  		[63.106 74.61 51.352 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			intersection		[0 0 0 0.4625 42.4078 70.0635 0 0]
		}
		dst {
			id          		3
			intersection		[1 0 -1 0.3345 134.7124 93.9992 0 0]
		}
		midPoint       		[81.7968 68.1506]
		chart          		2
		linkNode       		[2 13 15]
		dataLimits     		[42.408 139.666 64.845 93.999]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		15
		labelString    		"/count--;"
		labelPosition  		[142.768 180.921 55.631 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		3
			intersection		[3 0 1 0.2634 196.2332 144.3137 0 0]
		}
		dst {
			id          		3
			intersection		[3 0 1 0.6655 134.7124 144.3137 0 0]
		}
		midPoint       		[181.8533 175.42]
		chart          		2
		linkNode       		[2 14 16]
		dataLimits     		[129.759 196.233 144.314 179.794]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		16
		labelString    		"[ (e[1]<0 & Firefct2<0) | (e[1]>0 & Coastfct2>0) ]"
		labelPosition  		[711.33 153.107 256.758 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		4
			intersection		[2 1 0 0.1988 637.9718 173.6868 0 0]
		}
		dst {
			id          		10
			intersection		[2 1 0 0.5667 882.025 616.9873 0 0]
		}
		midPoint       		[986.943 500.3482]
		chart          		2
		linkNode       		[2 15 17]
		dataLimits     		[637.972 994.737 172.383 621.941]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		17
		labelString    		"[ (e[1]<0 & Coastfct1<=0 & Firefct2>0) ]"
		labelPosition  		[261.835 161.396 212.539 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		4
			intersection		[4 -1 0 0.769 511.9412 176.7346 0 0]
		}
		dst {
			id          		9
			intersection		[3 0 1 0.5768 377.4487 653.0038 0 0]
		}
		midPoint       		[81.4038 571.0611]
		chart          		2
		linkNode       		[2 16 18]
		dataLimits     		[24.953 511.941 176.735 691.567]
		subviewer      		2
		executionOrder 		4
	}

	transition {
		id             		18
		labelString    		"[ (e[1]>0 & Coastfct2>=0 & Firefct1<0) ]"
		labelPosition  		[648.968 291.156 212.539 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		4
			intersection		[2 1 0 0.5652 637.9718 208.4193 0 0]
		}
		dst {
			id          		6
			intersection		[1 0 -1 0.5509 813.8753 342.9314 0 0]
		}
		midPoint       		[717.8013 220.2549]
		chart          		2
		linkNode       		[2 17 19]
		dataLimits     		[637.972 818.829 208.419 342.931]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		19
		labelString    		"[ (e[1]>0 & Firefct1>0) | (e[1]<0 & Coastfct1<0) ]"
		labelPosition  		[249.265 278.195 256.758 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		4
			intersection		[4 -1 0 0.3696 511.9412 214.6015 0 0]
		}
		dst {
			id          		5
			intersection		[1 0 -1 0.3762 379.7673 329.3671 0 0]
		}
		midPoint       		[446.6596 233.8834]
		chart          		2
		linkNode       		[2 18 20]
		dataLimits     		[374.814 511.941 214.601 329.367]
		subviewer      		2
		executionOrder 		3
	}

	transition {
		id             		20
		labelString    		"[e[1]>0 & Firefct1>0]"
		labelPosition  		[589.328 342.147 111.262 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		6
			intersection		[4 -1 0 0.7362 751.5069 362.3349 0 0]
		}
		dst {
			id          		5
			intersection		[2 1 0 0.5333 466.4194 361.5667 0 0]
		}
		midPoint       		[656.9491 362.1207]
		chart          		2
		linkNode       		[2 19 21]
		dataLimits     		[466.419 751.507 356.613 366.52]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		21
		labelString    		"[count==0]"
		labelPosition  		[582.373 377.752 57.057 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		7
			intersection		[1 0 -1 0.3975 552.9153 484.99 0 0]
		}
		dst {
			id          		6
			intersection		[4 -1 0 0.389 751.5069 387.8808 0 0]
		}
		midPoint       		[602.8577 415.111]
		chart          		2
		linkNode       		[2 20 23]
		dataLimits     		[552.915 751.507 382.928 484.99]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		22
		labelPosition  		[435.114 395.669 9.985 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		5
			intersection		[3 0 1 0.1354 447.6061 389.7417 0 0]
		}
		dst {
			id          		5
			intersection		[3 0 1 0.4174 408.4364 389.7417 0 0]
		}
		midPoint       		[436.2452 413.9739]
		chart          		2
		linkNode       		[2 24 25]
		dataLimits     		[403.483 447.606 389.742 416.107]
		subviewer      		2
		executionOrder 		3
	}

	transition {
		id             		23
		labelString    		"[ton<2*delt]{enable=1;}"
		labelPosition  		[165.24 395.69 121.247 18.562]
		fontSize       		14
		arrowSize      		8.966
		src {
			id          		5
			intersection		[3 0 1 0.8171 352.9153 389.7417 0 0]
		}
		dst {
			id          		11
			intersection		[0 -0.0627 -0.998 -1 279.9762 448.5272 0 0]
		}
		midPoint       		[332.0687 405.3812]
		chart          		2
		linkNode       		[2 21 24]
		dataLimits     		[276.73 352.915 389.742 448.527]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		24
		labelString    		"[e[1]<0 & Coastfct1<=0]"
		labelPosition  		[395.899 441.789 128.379 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		5
			intersection		[3 0 1 0.5403 391.3624 389.7417 0 0]
		}
		dst {
			id          		9
			intersection		[1 0 -1 0.5432 391.3624 579.0608 0 0]
		}
		midPoint       		[391.3624 450.9887]
		chart          		2
		linkNode       		[2 23 22]
		dataLimits     		[386.409 396.316 389.742 579.061]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		25
		labelString    		"{enable=0;}"
		labelPosition  		[755.253 496.795 58.484 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		12
			intersection		[0 0.6479 -0.7617 -1 689.2024 530.4069 0 0]
		}
		dst {
			id          		6
			intersection		[3 0 1 0.5348 804.1811 416.4986 0 0]
		}
		midPoint       		[733.6918 507.9745]
		chart          		2
		linkNode       		[2 22 26]
		dataLimits     		[689.202 809.134 416.499 530.407]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		26
		labelString    		"[e[1]>0 & Coastfct2>0]"
		labelPosition  		[847.181 463.119 122.673 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		10
			intersection		[1 0 -1 0.7211 842.3164 582.184 0 0]
		}
		dst {
			id          		6
			intersection		[3 0 1 0.1938 842.7859 416.4986 0 0]
		}
		midPoint       		[842.4473 529.1573]
		chart          		2
		linkNode       		[2 25 27]
		dataLimits     		[837.833 847.739 416.499 582.184]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		27
		labelString    		"{enable=0;}"
		labelPosition  		[283.082 498.081 58.484 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		11
			intersection		[0 0.9648 0.263 -1 288.037 458.4206 0 0]
		}
		dst {
			id          		9
			intersection		[1 0 -1 0.3424 368.0862 579.0608 0 0]
		}
		midPoint       		[329.1979 478.1175]
		chart          		2
		linkNode       		[2 26 28]
		dataLimits     		[288.037 373.04 458.421 579.061]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		28
		labelString    		"/ton=ton-delt;"
		labelPosition  		[624.384 443.256 79.88 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		7
			intersection		[1 0 -1 0.7957 623.3677 484.99 0 0]
		}
		dst {
			id          		7
			intersection		[1 0 -1 0.5171 574.0841 484.99 0 0]
		}
		midPoint       		[619.3503 467.2046]
		chart          		2
		linkNode       		[2 27 29]
		dataLimits     		[571.636 623.368 458.923 484.99]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		29
		labelString    		"[ton>tmin]{count=2;}"
		labelPosition  		[148.457 440.09 108.409 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		11
			intersection		[0 -0.8849 0.4659 -1 273.5257 460.012 0 0]
		}
		dst {
			id          		8
			intersection		[1 0 -1 0.4369 151.299 486.5732 0 0]
		}
		midPoint       		[223.0767 463.8934]
		chart          		2
		linkNode       		[2 28 30]
		dataLimits     		[148.851 273.526 460.012 486.573]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		30
		labelString    		"[ton>tmin]{count=2;}"
		labelPosition  		[565.989 560.17 108.409 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		12
			intersection		[0 -0.8215 0.5702 -1 677.6741 540.8562 0 0]
		}
		dst {
			id          		7
			intersection		[3 0 1 0.609 551.7747 523.3394 0 0]
		}
		midPoint       		[626.5955 557.6248]
		chart          		2
		linkNode       		[2 29 31]
		dataLimits     		[549.327 677.674 523.339 558.238]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		31
		labelString    		"/ton=ton-delt;"
		labelPosition  		[113.395 550.915 79.88 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		8
			intersection		[3 0 1 0.3535 183.854 528.534 0 0]
		}
		dst {
			id          		8
			intersection		[3 0 1 0.8071 113.4012 528.534 0 0]
		}
		midPoint       		[164.2127 546.7906]
		chart          		2
		linkNode       		[2 30 32]
		dataLimits     		[110.953 183.854 528.534 550.976]
		subviewer      		2
		executionOrder 		2
	}

	transition {
		id             		32
		labelString    		"[count==0]"
		labelPosition  		[245.797 560.855 57.057 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		8
			intersection		[3 0 1 0.2321 202.7097 528.534 0 0]
		}
		dst {
			id          		9
			intersection		[4 -1 0 0.6544 328.3853 604.6169 0 0]
		}
		midPoint       		[223.8029 573.0825]
		chart          		2
		linkNode       		[2 31 33]
		dataLimits     		[202.71 328.385 528.534 609.57]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		33
		labelString    		"[ton<2*delt]{enable=1;}"
		labelPosition  		[712.526 533.075 121.247 18.562]
		fontSize       		14
		arrowSize      		8.966
		src {
			id          		10
			intersection		[1 0 -1 0.3957 795.9845 582.184 0 0]
		}
		dst {
			id          		12
			intersection		[0 0.7304 0.683 -1 689.8493 541.7415 0 0]
		}
		midPoint       		[775.1934 562.335]
		chart          		2
		linkNode       		[2 32 34]
		dataLimits     		[689.849 795.985 541.741 582.184]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		34
		labelString    		"[e[1]<0 & Firefct2<0]"
		labelPosition  		[537.893 621.306 111.262 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		9
			intersection		[2 1 0 0.5464 444.3196 619.464 0 0]
		}
		dst {
			id          		10
			intersection		[4 -1 0 0.3864 739.6444 619.8661 0 0]
		}
		midPoint       		[541.9048 619.5737]
		chart          		2
		linkNode       		[2 33 35]
		dataLimits     		[444.32 739.644 614.913 624.819]
		subviewer      		2
		executionOrder 		1
	}

	transition {
		id             		35
		labelPosition  		[810.996 659.502 9.985 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		10
			intersection		[3 0 1 0.2789 842.3164 643.5976 0 0]
		}
		dst {
			id          		10
			intersection		[3 0 1 0.6134 794.6936 643.5976 0 0]
		}
		midPoint       		[828.2555 670.0837]
		chart          		2
		linkNode       		[2 34 0]
		dataLimits     		[789.74 842.316 643.598 672.627]
		subviewer      		2
		executionOrder 		3
	}

	data {
		id                            		36
		name                          		"jets"
		linkNode                      		[2 0 37]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		37
		name                          		"Nofjets"
		linkNode                      		[2 36 38]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		38
		name                          		"e"
		linkNode                      		[2 37 39]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"2"
			}
		}
		debug                         		[1]
	}

	data {
		id                            		39
		name                          		"enable"
		linkNode                      		[2 38 40]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		40
		name                          		"ton"
		linkNode                      		[2 39 41]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		41
		name                          		"Firefct1"
		linkNode                      		[2 40 42]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		42
		name                          		"Coastfct1"
		linkNode                      		[2 41 43]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		43
		name                          		"Firefct2"
		linkNode                      		[2 42 44]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		44
		name                          		"Coastfct2"
		linkNode                      		[2 43 45]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		45
		name                          		"tjcalc1"
		linkNode                      		[2 44 46]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		46
		name                          		"tjcalc"
		linkNode                      		[2 45 47]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		47
		name                          		"tmin"
		linkNode                      		[2 46 48]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		48
		name                          		"delt"
		linkNode                      		[2 47 49]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		49
		name                          		"count"
		linkNode                      		[2 48 0]
		scope                         		LOCAL_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	instance {
		id     		50
		name   		"Reaction Jet Control/u Control Law/Chart"
		machine		1
		chart  		2
	}

	chart {
		id                                        		51
		name                                      		"Reaction Jet Control/v Control Law/Chart"
		windowPosition                            		[81.6 25.92 730.56 519.36]
		viewLimits                                		[8.454 1011.325 23.424 725.351]
		zoomFactor                                		1.486
		screen                                    		[1 1 1600 1200 1.041666666666667]
		treeNode                                  		[0 52 0 0]
		firstTransition                           		62
		firstJunction                             		60
		viewObj                                   		51
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		firstData                                 		85
		updateMethod                              		DISCRETE
		sampleTime                                		"delt"
		chartFileNumber                           		2
	}

	state {
		id                  		52
		labelString         		"Wait_for_stable_rate"
		position            		[83.525 93.999 153.009 50.315]
		fontSize            		14
		arrowSize           		16.511
		chart               		51
		treeNode            		[51 0 0 53]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		53
		labelString         		"Start"
		position            		[511.941 154.84 126.031 94.794]
		fontSize            		14
		arrowSize           		11.145
		chart               		51
		treeNode            		[51 0 52 54]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		54
		labelString         		"Fire_region_1\n"
						"en: jets=-Nofjets;\n"
						"ton=tjcalc+tjcalc1;"
		position            		[327.51 329.367 138.909 60.375]
		fontSize            		14
		arrowSize           		16.511
		chart               		51
		treeNode            		[51 0 53 55]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		55
		labelString         		"Coast_region_2\n"
						"en: jets=0;\n"
						"ton=0;\n"
						"enable=0;"
		position            		[751.507 342.931 113.217 73.567]
		fontSize            		14
		arrowSize           		16.511
		chart               		51
		treeNode            		[51 0 54 56]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		56
		labelString         		"Skip_a_Sample_2\n"
						"en:count--;"
		position            		[482.593 484.99 176.921 38.349]
		fontSize            		14
		arrowSize           		8.16
		chart               		51
		treeNode            		[51 0 55 57]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		57
		labelString         		"Skip_a_Sample_1\n"
						"en:count--;"
		position            		[83.44 486.573 155.316 41.961]
		fontSize            		14
		arrowSize           		8.16
		chart               		51
		treeNode            		[51 0 56 58]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		58
		labelString         		"Coast_region_1\n"
						"en: jets=0;\n"
						"ton=0;\n"
						"enable=0;"
		position            		[328.385 579.061 115.934 73.943]
		fontSize            		14
		arrowSize           		16.511
		chart               		51
		treeNode            		[51 0 57 59]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		59
		labelString         		"Fire_region_2\n"
						"en: jets=Nofjets;\n"
						"ton=tjcalc-tjcalc1;"
		position            		[739.644 582.184 142.381 61.414]
		fontSize            		14
		arrowSize           		16.511
		chart               		51
		treeNode            		[51 0 58 0]
		subviewer           		51
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	junction {
		id         		60
		position   		[280.4678 456.3572 7.8454]
		arrowSize  		8.966
		chart      		51
		linkNode   		[51 0 61]
		subviewer  		51
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		61
		position   		[684.1191 536.3828 7.8454]
		arrowSize  		8.966
		chart      		51
		linkNode   		[51 60 0]
		subviewer  		51
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		62
		labelString    		"[count==0]"
		labelPosition  		[280.104 57.788 57.057 18.562]
		fontSize       		14
		arrowSize      		11.145
		src {
			id          		52
			intersection		[2 1 0 0.5252 236.535 120.4236 0 0]
		}
		dst {
			id          		53
			intersection		[1 0 -1 0.4318 566.3605 154.8403 0 0]
		}
		midPoint       		[351.8451 74.2995]
		chart          		51
		linkNode       		[51 0 63]
		dataLimits     		[236.535 569.704 58.521 154.84]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		63
		labelString    		"/count=2;"
		labelPosition  		[63.106 74.61 51.352 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			intersection		[0 0 0 0.4625 42.4078 70.0635 0 0]
		}
		dst {
			id          		52
			intersection		[1 0 -1 0.3345 134.7124 93.9992 0 0]
		}
		midPoint       		[81.7968 68.1506]
		chart          		51
		linkNode       		[51 62 64]
		dataLimits     		[42.408 139.666 64.845 93.999]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		64
		labelString    		"/count--;"
		labelPosition  		[142.768 180.921 55.631 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		52
			intersection		[3 0 1 0.2634 196.2332 144.3137 0 0]
		}
		dst {
			id          		52
			intersection		[3 0 1 0.6655 134.7124 144.3137 0 0]
		}
		midPoint       		[181.8533 175.42]
		chart          		51
		linkNode       		[51 63 65]
		dataLimits     		[129.759 196.233 144.314 179.794]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		65
		labelString    		"[ (e[1]<0 & Firefct2<0) | (e[1]>0 & Coastfct2>0) ]"
		labelPosition  		[711.33 153.107 256.758 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		53
			intersection		[2 1 0 0.1988 637.9718 173.6868 0 0]
		}
		dst {
			id          		59
			intersection		[2 1 0 0.5667 882.025 616.9873 0 0]
		}
		midPoint       		[986.943 500.3482]
		chart          		51
		linkNode       		[51 64 66]
		dataLimits     		[637.972 994.737 172.383 621.941]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		66
		labelString    		"[ (e[1]<0 & Coastfct1<=0 & Firefct2>0) ]"
		labelPosition  		[261.835 161.396 212.539 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		53
			intersection		[4 -1 0 0.769 511.9412 176.7346 0 0]
		}
		dst {
			id          		58
			intersection		[3 0 1 0.5768 377.4487 653.0038 0 0]
		}
		midPoint       		[81.4038 571.0611]
		chart          		51
		linkNode       		[51 65 67]
		dataLimits     		[24.953 511.941 176.735 691.567]
		subviewer      		51
		executionOrder 		4
	}

	transition {
		id             		67
		labelString    		"[ (e[1]>0 & Coastfct2>=0 & Firefct1<0) ]"
		labelPosition  		[648.968 291.156 212.539 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		53
			intersection		[2 1 0 0.5652 637.9718 208.4193 0 0]
		}
		dst {
			id          		55
			intersection		[1 0 -1 0.5509 813.8753 342.9314 0 0]
		}
		midPoint       		[717.8013 220.2549]
		chart          		51
		linkNode       		[51 66 68]
		dataLimits     		[637.972 818.829 208.419 342.931]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		68
		labelString    		"[ (e[1]>0 & Firefct1>0) | (e[1]<0 & Coastfct1<0) ]"
		labelPosition  		[249.265 278.195 256.758 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		53
			intersection		[4 -1 0 0.3696 511.9412 214.6015 0 0]
		}
		dst {
			id          		54
			intersection		[1 0 -1 0.3762 379.7673 329.3671 0 0]
		}
		midPoint       		[446.6596 233.8834]
		chart          		51
		linkNode       		[51 67 69]
		dataLimits     		[374.814 511.941 214.601 329.367]
		subviewer      		51
		executionOrder 		3
	}

	transition {
		id             		69
		labelString    		"[e[1]>0 & Firefct1>0]"
		labelPosition  		[589.328 342.147 111.262 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		55
			intersection		[4 -1 0 0.7362 751.5069 362.3349 0 0]
		}
		dst {
			id          		54
			intersection		[2 1 0 0.5333 466.4194 361.5667 0 0]
		}
		midPoint       		[656.9491 362.1207]
		chart          		51
		linkNode       		[51 68 70]
		dataLimits     		[466.419 751.507 356.613 366.52]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		70
		labelString    		"[count==0]"
		labelPosition  		[582.373 377.752 57.057 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		56
			intersection		[1 0 -1 0.3975 552.9153 484.99 0 0]
		}
		dst {
			id          		55
			intersection		[4 -1 0 0.389 751.5069 387.8808 0 0]
		}
		midPoint       		[602.8577 415.111]
		chart          		51
		linkNode       		[51 69 72]
		dataLimits     		[552.915 751.507 382.928 484.99]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		71
		labelPosition  		[435.114 395.669 9.985 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		54
			intersection		[3 0 1 0.1354 447.6061 389.7417 0 0]
		}
		dst {
			id          		54
			intersection		[3 0 1 0.4174 408.4364 389.7417 0 0]
		}
		midPoint       		[436.2452 413.9739]
		chart          		51
		linkNode       		[51 73 74]
		dataLimits     		[403.483 447.606 389.742 416.107]
		subviewer      		51
		executionOrder 		3
	}

	transition {
		id             		72
		labelString    		"[ton<2*delt]{enable=1;}"
		labelPosition  		[165.24 395.69 121.247 18.562]
		fontSize       		14
		arrowSize      		8.966
		src {
			id          		54
			intersection		[3 0 1 0.8171 352.9153 389.7417 0 0]
		}
		dst {
			id          		60
			intersection		[0 -0.0627 -0.998 -1 279.9762 448.5272 0 0]
		}
		midPoint       		[332.0687 405.3812]
		chart          		51
		linkNode       		[51 70 73]
		dataLimits     		[276.73 352.915 389.742 448.527]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		73
		labelString    		"[e[1]<0 & Coastfct1<=0]"
		labelPosition  		[395.899 441.789 128.379 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		54
			intersection		[3 0 1 0.5403 391.3624 389.7417 0 0]
		}
		dst {
			id          		58
			intersection		[1 0 -1 0.5432 391.3624 579.0608 0 0]
		}
		midPoint       		[391.3624 450.9887]
		chart          		51
		linkNode       		[51 72 71]
		dataLimits     		[386.409 396.316 389.742 579.061]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		74
		labelString    		"{enable=0;}"
		labelPosition  		[755.253 496.795 58.484 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		61
			intersection		[0 0.6479 -0.7617 -1 689.2024 530.4069 0 0]
		}
		dst {
			id          		55
			intersection		[3 0 1 0.5348 804.1811 416.4986 0 0]
		}
		midPoint       		[733.6918 507.9745]
		chart          		51
		linkNode       		[51 71 75]
		dataLimits     		[689.202 809.134 416.499 530.407]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		75
		labelString    		"[e[1]>0 & Coastfct2>0]"
		labelPosition  		[847.181 463.119 122.673 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		59
			intersection		[1 0 -1 0.7211 842.3164 582.184 0 0]
		}
		dst {
			id          		55
			intersection		[3 0 1 0.1938 842.7859 416.4986 0 0]
		}
		midPoint       		[842.4473 529.1573]
		chart          		51
		linkNode       		[51 74 76]
		dataLimits     		[837.833 847.739 416.499 582.184]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		76
		labelString    		"{enable=0;}"
		labelPosition  		[283.082 498.081 58.484 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		60
			intersection		[0 0.9648 0.263 -1 288.037 458.4206 0 0]
		}
		dst {
			id          		58
			intersection		[1 0 -1 0.3424 368.0862 579.0608 0 0]
		}
		midPoint       		[329.1979 478.1175]
		chart          		51
		linkNode       		[51 75 77]
		dataLimits     		[288.037 373.04 458.421 579.061]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		77
		labelString    		"/ton=ton-delt;"
		labelPosition  		[624.384 443.256 79.88 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		56
			intersection		[1 0 -1 0.7957 623.3677 484.99 0 0]
		}
		dst {
			id          		56
			intersection		[1 0 -1 0.5171 574.0841 484.99 0 0]
		}
		midPoint       		[619.3503 467.2046]
		chart          		51
		linkNode       		[51 76 78]
		dataLimits     		[571.636 623.368 458.923 484.99]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		78
		labelString    		"[ton>tmin]{count=2;}"
		labelPosition  		[148.457 440.09 108.409 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		60
			intersection		[0 -0.8849 0.4659 -1 273.5257 460.012 0 0]
		}
		dst {
			id          		57
			intersection		[1 0 -1 0.4369 151.299 486.5732 0 0]
		}
		midPoint       		[223.0767 463.8934]
		chart          		51
		linkNode       		[51 77 79]
		dataLimits     		[148.851 273.526 460.012 486.573]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		79
		labelString    		"[ton>tmin]{count=2;}"
		labelPosition  		[565.989 560.17 108.409 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		61
			intersection		[0 -0.8215 0.5702 -1 677.6741 540.8562 0 0]
		}
		dst {
			id          		56
			intersection		[3 0 1 0.609 551.7747 523.3394 0 0]
		}
		midPoint       		[626.5955 557.6248]
		chart          		51
		linkNode       		[51 78 80]
		dataLimits     		[549.327 677.674 523.339 558.238]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		80
		labelString    		"/ton=ton-delt;"
		labelPosition  		[113.395 550.915 79.88 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		57
			intersection		[3 0 1 0.3535 183.854 528.534 0 0]
		}
		dst {
			id          		57
			intersection		[3 0 1 0.8071 113.4012 528.534 0 0]
		}
		midPoint       		[164.2127 546.7906]
		chart          		51
		linkNode       		[51 79 81]
		dataLimits     		[110.953 183.854 528.534 550.976]
		subviewer      		51
		executionOrder 		2
	}

	transition {
		id             		81
		labelString    		"[count==0]"
		labelPosition  		[245.797 560.855 57.057 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		57
			intersection		[3 0 1 0.2321 202.7097 528.534 0 0]
		}
		dst {
			id          		58
			intersection		[4 -1 0 0.6544 328.3853 604.6169 0 0]
		}
		midPoint       		[223.8029 573.0825]
		chart          		51
		linkNode       		[51 80 82]
		dataLimits     		[202.71 328.385 528.534 609.57]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		82
		labelString    		"[ton<2*delt]{enable=1;}"
		labelPosition  		[712.526 533.075 121.247 18.562]
		fontSize       		14
		arrowSize      		8.966
		src {
			id          		59
			intersection		[1 0 -1 0.3957 795.9845 582.184 0 0]
		}
		dst {
			id          		61
			intersection		[0 0.7304 0.683 -1 689.8493 541.7415 0 0]
		}
		midPoint       		[775.1934 562.335]
		chart          		51
		linkNode       		[51 81 83]
		dataLimits     		[689.849 795.985 541.741 582.184]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		83
		labelString    		"[e[1]<0 & Firefct2<0]"
		labelPosition  		[537.893 621.306 111.262 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		58
			intersection		[2 1 0 0.5464 444.3196 619.464 0 0]
		}
		dst {
			id          		59
			intersection		[4 -1 0 0.3864 739.6444 619.8661 0 0]
		}
		midPoint       		[541.9048 619.5737]
		chart          		51
		linkNode       		[51 82 84]
		dataLimits     		[444.32 739.644 614.913 624.819]
		subviewer      		51
		executionOrder 		1
	}

	transition {
		id             		84
		labelPosition  		[810.996 659.502 9.985 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		59
			intersection		[3 0 1 0.2789 842.3164 643.5976 0 0]
		}
		dst {
			id          		59
			intersection		[3 0 1 0.6134 794.6936 643.5976 0 0]
		}
		midPoint       		[828.2555 670.0837]
		chart          		51
		linkNode       		[51 83 0]
		dataLimits     		[789.74 842.316 643.598 672.627]
		subviewer      		51
		executionOrder 		3
	}

	data {
		id                            		85
		name                          		"jets"
		linkNode                      		[51 0 86]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		86
		name                          		"Nofjets"
		linkNode                      		[51 85 87]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		87
		name                          		"e"
		linkNode                      		[51 86 88]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"2"
			}
		}
		debug                         		[1]
	}

	data {
		id                            		88
		name                          		"enable"
		linkNode                      		[51 87 89]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		89
		name                          		"ton"
		linkNode                      		[51 88 90]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		90
		name                          		"Firefct1"
		linkNode                      		[51 89 91]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		91
		name                          		"Coastfct1"
		linkNode                      		[51 90 92]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		92
		name                          		"Firefct2"
		linkNode                      		[51 91 93]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		93
		name                          		"Coastfct2"
		linkNode                      		[51 92 94]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		94
		name                          		"tjcalc1"
		linkNode                      		[51 93 95]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		95
		name                          		"tjcalc"
		linkNode                      		[51 94 96]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		96
		name                          		"tmin"
		linkNode                      		[51 95 97]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		97
		name                          		"delt"
		linkNode                      		[51 96 98]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		98
		name                          		"count"
		linkNode                      		[51 97 0]
		scope                         		LOCAL_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	instance {
		id     		99
		name   		"Reaction Jet Control/v Control Law/Chart"
		machine		1
		chart  		51
	}

	chart {
		id                                        		100
		name                                      		"Reaction Jet Control/Yaw Control Law/Chart"
		windowPosition                            		[48 25.92 730.56 519.36]
		viewLimits                                		[8.454 1011.325 23.424 725.351]
		zoomFactor                                		1.486
		screen                                    		[1 1 1600 1200 1.041666666666667]
		treeNode                                  		[0 101 0 0]
		firstTransition                           		111
		firstJunction                             		109
		viewObj                                   		100
		machine                                   		1
		decomposition                             		CLUSTER_CHART
		firstData                                 		134
		updateMethod                              		DISCRETE
		sampleTime                                		"delt"
		chartFileNumber                           		4
	}

	state {
		id                  		101
		labelString         		"Wait_for_stable_rate"
		position            		[83.525 93.999 153.009 50.315]
		fontSize            		14
		arrowSize           		16.511
		chart               		100
		treeNode            		[100 0 0 102]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		102
		labelString         		"Start"
		position            		[511.941 154.84 126.031 94.794]
		fontSize            		14
		arrowSize           		11.145
		chart               		100
		treeNode            		[100 0 101 103]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		103
		labelString         		"Fire_region_1\n"
						"en: jets=-Nofjets;\n"
						"ton=tjcalc+tjcalc1;"
		position            		[327.51 329.367 138.909 60.375]
		fontSize            		14
		arrowSize           		16.511
		chart               		100
		treeNode            		[100 0 102 104]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		104
		labelString         		"Coast_region_2\n"
						"en: jets=0;\n"
						"ton=0;\n"
						"enable=0;"
		position            		[751.507 342.931 113.217 73.567]
		fontSize            		14
		arrowSize           		16.511
		chart               		100
		treeNode            		[100 0 103 105]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		105
		labelString         		"Skip_a_Sample_2\n"
						"en:count--;"
		position            		[482.593 484.99 176.921 38.349]
		fontSize            		14
		arrowSize           		8.16
		chart               		100
		treeNode            		[100 0 104 106]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		106
		labelString         		"Skip_a_Sample_1\n"
						"en:count--;"
		position            		[83.44 486.573 155.316 41.961]
		fontSize            		14
		arrowSize           		8.16
		chart               		100
		treeNode            		[100 0 105 107]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		107
		labelString         		"Coast_region_1\n"
						"en: jets=0;\n"
						"ton=0;\n"
						"enable=0;"
		position            		[328.385 579.061 115.934 73.943]
		fontSize            		14
		arrowSize           		16.511
		chart               		100
		treeNode            		[100 0 106 108]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	state {
		id                  		108
		labelString         		"Fire_region_2\n"
						"en: jets=Nofjets;\n"
						"ton=tjcalc-tjcalc1;"
		position            		[739.644 582.184 142.381 61.414]
		fontSize            		14
		arrowSize           		16.511
		chart               		100
		treeNode            		[100 0 107 0]
		subviewer           		100
		subviewS {
			pos       		[0 0 0 0]
			fontSize  		2
		}
		type                		OR_STATE
		decomposition       		CLUSTER_STATE
	}

	junction {
		id         		109
		position   		[280.4678 456.3572 7.8454]
		arrowSize  		8.966
		chart      		100
		linkNode   		[100 0 110]
		subviewer  		100
		type       		CONNECTIVE_JUNCTION
	}

	junction {
		id         		110
		position   		[684.1191 536.3828 7.8454]
		arrowSize  		8.966
		chart      		100
		linkNode   		[100 109 0]
		subviewer  		100
		type       		CONNECTIVE_JUNCTION
	}

	transition {
		id             		111
		labelString    		"[count==0]"
		labelPosition  		[280.104 57.788 57.057 18.562]
		fontSize       		14
		arrowSize      		11.145
		src {
			id          		101
			intersection		[2 1 0 0.5252 236.535 120.4236 0 0]
		}
		dst {
			id          		102
			intersection		[1 0 -1 0.4318 566.3605 154.8403 0 0]
		}
		midPoint       		[351.8451 74.2995]
		chart          		100
		linkNode       		[100 0 112]
		dataLimits     		[236.535 569.704 58.521 154.84]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		112
		labelString    		"/count=2;"
		labelPosition  		[63.106 74.61 51.352 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			intersection		[0 0 0 0.4625 42.4078 70.0635 0 0]
		}
		dst {
			id          		101
			intersection		[1 0 -1 0.3345 134.7124 93.9992 0 0]
		}
		midPoint       		[81.7968 68.1506]
		chart          		100
		linkNode       		[100 111 113]
		dataLimits     		[42.408 139.666 64.845 93.999]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		113
		labelString    		"/count--;"
		labelPosition  		[142.768 180.921 55.631 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		101
			intersection		[3 0 1 0.2634 196.2332 144.3137 0 0]
		}
		dst {
			id          		101
			intersection		[3 0 1 0.6655 134.7124 144.3137 0 0]
		}
		midPoint       		[181.8533 175.42]
		chart          		100
		linkNode       		[100 112 114]
		dataLimits     		[129.759 196.233 144.314 179.794]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		114
		labelString    		"[ (e[1]<0 & Firefct2<0) | (e[1]>0 & Coastfct2>0) ]"
		labelPosition  		[711.33 153.107 256.758 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		102
			intersection		[2 1 0 0.1988 637.9718 173.6868 0 0]
		}
		dst {
			id          		108
			intersection		[2 1 0 0.5667 882.025 616.9873 0 0]
		}
		midPoint       		[986.943 500.3482]
		chart          		100
		linkNode       		[100 113 115]
		dataLimits     		[637.972 994.737 172.383 621.941]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		115
		labelString    		"[ (e[1]<0 & Coastfct1<=0 & Firefct2>0) ]"
		labelPosition  		[261.835 161.396 212.539 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		102
			intersection		[4 -1 0 0.769 511.9412 176.7346 0 0]
		}
		dst {
			id          		107
			intersection		[3 0 1 0.5768 377.4487 653.0038 0 0]
		}
		midPoint       		[81.4038 571.0611]
		chart          		100
		linkNode       		[100 114 116]
		dataLimits     		[24.953 511.941 176.735 691.567]
		subviewer      		100
		executionOrder 		4
	}

	transition {
		id             		116
		labelString    		"[ (e[1]>0 & Coastfct2>=0 & Firefct1<0) ]"
		labelPosition  		[648.968 291.156 212.539 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		102
			intersection		[2 1 0 0.5652 637.9718 208.4193 0 0]
		}
		dst {
			id          		104
			intersection		[1 0 -1 0.5509 813.8753 342.9314 0 0]
		}
		midPoint       		[717.8013 220.2549]
		chart          		100
		linkNode       		[100 115 117]
		dataLimits     		[637.972 818.829 208.419 342.931]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		117
		labelString    		"[ (e[1]>0 & Firefct1>0) | (e[1]<0 & Coastfct1<0) ]"
		labelPosition  		[249.265 278.195 256.758 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		102
			intersection		[4 -1 0 0.3696 511.9412 214.6015 0 0]
		}
		dst {
			id          		103
			intersection		[1 0 -1 0.3762 379.7673 329.3671 0 0]
		}
		midPoint       		[446.6596 233.8834]
		chart          		100
		linkNode       		[100 116 118]
		dataLimits     		[374.814 511.941 214.601 329.367]
		subviewer      		100
		executionOrder 		3
	}

	transition {
		id             		118
		labelString    		"[e[1]>0 & Firefct1>0]"
		labelPosition  		[589.328 342.147 111.262 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		104
			intersection		[4 -1 0 0.7362 751.5069 362.3349 0 0]
		}
		dst {
			id          		103
			intersection		[2 1 0 0.5333 466.4194 361.5667 0 0]
		}
		midPoint       		[656.9491 362.1207]
		chart          		100
		linkNode       		[100 117 119]
		dataLimits     		[466.419 751.507 356.613 366.52]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		119
		labelString    		"[count==0]"
		labelPosition  		[582.373 377.752 57.057 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		105
			intersection		[1 0 -1 0.3975 552.9153 484.99 0 0]
		}
		dst {
			id          		104
			intersection		[4 -1 0 0.389 751.5069 387.8808 0 0]
		}
		midPoint       		[602.8577 415.111]
		chart          		100
		linkNode       		[100 118 121]
		dataLimits     		[552.915 751.507 382.928 484.99]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		120
		labelPosition  		[435.114 395.669 9.985 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		103
			intersection		[3 0 1 0.1354 447.6061 389.7417 0 0]
		}
		dst {
			id          		103
			intersection		[3 0 1 0.4174 408.4364 389.7417 0 0]
		}
		midPoint       		[436.2452 413.9739]
		chart          		100
		linkNode       		[100 122 123]
		dataLimits     		[403.483 447.606 389.742 416.107]
		subviewer      		100
		executionOrder 		3
	}

	transition {
		id             		121
		labelString    		"[ton<2*delt]{enable=1;}"
		labelPosition  		[165.24 395.69 121.247 18.562]
		fontSize       		14
		arrowSize      		8.966
		src {
			id          		103
			intersection		[3 0 1 0.8171 352.9153 389.7417 0 0]
		}
		dst {
			id          		109
			intersection		[0 -0.0627 -0.998 -1 279.9762 448.5272 0 0]
		}
		midPoint       		[332.0687 405.3812]
		chart          		100
		linkNode       		[100 119 122]
		dataLimits     		[276.73 352.915 389.742 448.527]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		122
		labelString    		"[e[1]<0 & Coastfct1<=0]"
		labelPosition  		[395.899 441.789 128.379 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		103
			intersection		[3 0 1 0.5403 391.3624 389.7417 0 0]
		}
		dst {
			id          		107
			intersection		[1 0 -1 0.5432 391.3624 579.0608 0 0]
		}
		midPoint       		[391.3624 450.9887]
		chart          		100
		linkNode       		[100 121 120]
		dataLimits     		[386.409 396.316 389.742 579.061]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		123
		labelString    		"{enable=0;}"
		labelPosition  		[755.253 496.795 58.484 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		110
			intersection		[0 0.6479 -0.7617 -1 689.2024 530.4069 0 0]
		}
		dst {
			id          		104
			intersection		[3 0 1 0.5348 804.1811 416.4986 0 0]
		}
		midPoint       		[733.6918 507.9745]
		chart          		100
		linkNode       		[100 120 124]
		dataLimits     		[689.202 809.134 416.499 530.407]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		124
		labelString    		"[e[1]>0 & Coastfct2>0]"
		labelPosition  		[847.181 463.119 122.673 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		108
			intersection		[1 0 -1 0.7211 842.3164 582.184 0 0]
		}
		dst {
			id          		104
			intersection		[3 0 1 0.1938 842.7859 416.4986 0 0]
		}
		midPoint       		[842.4473 529.1573]
		chart          		100
		linkNode       		[100 123 125]
		dataLimits     		[837.833 847.739 416.499 582.184]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		125
		labelString    		"{enable=0;}"
		labelPosition  		[283.082 498.081 58.484 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		109
			intersection		[0 0.9648 0.263 -1 288.037 458.4206 0 0]
		}
		dst {
			id          		107
			intersection		[1 0 -1 0.3424 368.0862 579.0608 0 0]
		}
		midPoint       		[329.1979 478.1175]
		chart          		100
		linkNode       		[100 124 126]
		dataLimits     		[288.037 373.04 458.421 579.061]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		126
		labelString    		"/ton=ton-delt;"
		labelPosition  		[624.384 443.256 79.88 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		105
			intersection		[1 0 -1 0.7957 623.3677 484.99 0 0]
		}
		dst {
			id          		105
			intersection		[1 0 -1 0.5171 574.0841 484.99 0 0]
		}
		midPoint       		[619.3503 467.2046]
		chart          		100
		linkNode       		[100 125 127]
		dataLimits     		[571.636 623.368 458.923 484.99]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		127
		labelString    		"[ton>tmin]{count=2;}"
		labelPosition  		[148.457 440.09 108.409 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		109
			intersection		[0 -0.8849 0.4659 -1 273.5257 460.012 0 0]
		}
		dst {
			id          		106
			intersection		[1 0 -1 0.4369 151.299 486.5732 0 0]
		}
		midPoint       		[223.0767 463.8934]
		chart          		100
		linkNode       		[100 126 128]
		dataLimits     		[148.851 273.526 460.012 486.573]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		128
		labelString    		"[ton>tmin]{count=2;}"
		labelPosition  		[565.989 560.17 108.409 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		110
			intersection		[0 -0.8215 0.5702 -1 677.6741 540.8562 0 0]
		}
		dst {
			id          		105
			intersection		[3 0 1 0.609 551.7747 523.3394 0 0]
		}
		midPoint       		[626.5955 557.6248]
		chart          		100
		linkNode       		[100 127 129]
		dataLimits     		[549.327 677.674 523.339 558.238]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		129
		labelString    		"/ton=ton-delt;"
		labelPosition  		[113.395 550.915 79.88 18.562]
		fontSize       		14
		arrowSize      		8.16
		src {
			id          		106
			intersection		[3 0 1 0.3535 183.854 528.534 0 0]
		}
		dst {
			id          		106
			intersection		[3 0 1 0.8071 113.4012 528.534 0 0]
		}
		midPoint       		[164.2127 546.7906]
		chart          		100
		linkNode       		[100 128 130]
		dataLimits     		[110.953 183.854 528.534 550.976]
		subviewer      		100
		executionOrder 		2
	}

	transition {
		id             		130
		labelString    		"[count==0]"
		labelPosition  		[245.797 560.855 57.057 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		106
			intersection		[3 0 1 0.2321 202.7097 528.534 0 0]
		}
		dst {
			id          		107
			intersection		[4 -1 0 0.6544 328.3853 604.6169 0 0]
		}
		midPoint       		[223.8029 573.0825]
		chart          		100
		linkNode       		[100 129 131]
		dataLimits     		[202.71 328.385 528.534 609.57]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		131
		labelString    		"[ton<2*delt]{enable=1;}"
		labelPosition  		[712.526 533.075 121.247 18.562]
		fontSize       		14
		arrowSize      		8.966
		src {
			id          		108
			intersection		[1 0 -1 0.3957 795.9845 582.184 0 0]
		}
		dst {
			id          		110
			intersection		[0 0.7304 0.683 -1 689.8493 541.7415 0 0]
		}
		midPoint       		[775.1934 562.335]
		chart          		100
		linkNode       		[100 130 132]
		dataLimits     		[689.849 795.985 541.741 582.184]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		132
		labelString    		"[e[1]<0 & Firefct2<0]"
		labelPosition  		[537.893 621.306 111.262 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		107
			intersection		[2 1 0 0.5464 444.3196 619.464 0 0]
		}
		dst {
			id          		108
			intersection		[4 -1 0 0.3864 739.6444 619.8661 0 0]
		}
		midPoint       		[541.9048 619.5737]
		chart          		100
		linkNode       		[100 131 133]
		dataLimits     		[444.32 739.644 614.913 624.819]
		subviewer      		100
		executionOrder 		1
	}

	transition {
		id             		133
		labelPosition  		[810.996 659.502 9.985 18.562]
		fontSize       		14
		arrowSize      		16.511
		src {
			id          		108
			intersection		[3 0 1 0.2789 842.3164 643.5976 0 0]
		}
		dst {
			id          		108
			intersection		[3 0 1 0.6134 794.6936 643.5976 0 0]
		}
		midPoint       		[828.2555 670.0837]
		chart          		100
		linkNode       		[100 132 0]
		dataLimits     		[789.74 842.316 643.598 672.627]
		subviewer      		100
		executionOrder 		3
	}

	data {
		id                            		134
		name                          		"jets"
		linkNode                      		[100 0 135]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		135
		name                          		"Nofjets"
		linkNode                      		[100 134 136]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		136
		name                          		"e"
		linkNode                      		[100 135 137]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
			array {
				size      		"2"
			}
		}
		debug                         		[1]
	}

	data {
		id                            		137
		name                          		"enable"
		linkNode                      		[100 136 138]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		138
		name                          		"ton"
		linkNode                      		[100 137 139]
		scope                         		OUTPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		139
		name                          		"Firefct1"
		linkNode                      		[100 138 140]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		140
		name                          		"Coastfct1"
		linkNode                      		[100 139 141]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		141
		name                          		"Firefct2"
		linkNode                      		[100 140 142]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		142
		name                          		"Coastfct2"
		linkNode                      		[100 141 143]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		143
		name                          		"tjcalc1"
		linkNode                      		[100 142 144]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		144
		name                          		"tjcalc"
		linkNode                      		[100 143 145]
		scope                         		INPUT_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	data {
		id                            		145
		name                          		"tmin"
		linkNode                      		[100 144 146]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		paramIndexForInitFromWorkspace		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		146
		name                          		"delt"
		linkNode                      		[100 145 147]
		scope                         		PARAMETER_DATA
		initFromWorkspace             		1
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
	}

	data {
		id                            		147
		name                          		"count"
		linkNode                      		[100 146 0]
		scope                         		LOCAL_DATA
		machine                       		1
		dataType                      		"double"
		fixptType {
			bias    		0
			slope   		1
			exponent		0
			baseType		SF_INT16_TYPE
			lock    		0
		}
		dlgFixptMode                  		0
		props {
			range {
				minimum		""
				maximum		""
			}
		}
		debug                         		[1]
	}

	instance {
		id     		148
		name   		"Reaction Jet Control/Yaw Control Law/Chart"
		machine		1
		chart  		100
	}

	target {
		id                        		149
		name                      		"sfun"
		description               		"Default Simulink S-Function Target."
		codeFlags                 		" debug=1 telemetry=0 preservenames=0 preservenameswithparent"
						"=0 exportcharts=0 project=0 multiinstanced=0 statebitsets=0 "
						"databitsets=0 comments=1 echo=1 initializer=1 ioformat=1"
		machine                   		1
		linkNode                  		[1 0 150]
		checksumOld               		[3519414036 451097640 917818198 2368130067]
	}

	target {
		id                        		150
		name                      		"rtw"
		description               		"Default RTW target."
		codeFlags                 		" debug=0 telemetry=0 preservenames=0 preservenameswithparent"
						"=0 exportcharts=0 project=0 multiinstanced=0 statebitsets=0 "
						"databitsets=0 comments=1 echo=1 initializer=1 ioformat=1"
		machine                   		1
		linkNode                  		[1 149 151]
	}

	target {
		id                        		151
		codeFlags                 		" debug=0 telemetry=0 preservenames=0 preservenameswithparent"
						"=0 exportcharts=0 project=0 multiinstanced=0 statebitsets=0 "
						"databitsets=0 comments=1 echo=1 initializer=1 ioformat=1"
		machine                   		1
		linkNode                  		[1 150 0]
	}
}
