Model {
  Name			  "UAV_SENSORS_IMU_GPS_PWM"
  Version		  7.0
  MdlSubVersion		  0
  GraphicalInterface {
    NumRootInports	    0
    NumRootOutports	    0
    ParameterArgumentNames  ""
    ComputedModelVersion    "1.84"
    NumModelReferences	    0
    NumTestPointedSignals   0
  }
  SavedCharacterEncoding  "windows-1252"
  SaveDefaultBlockParams  on
  SampleTimeColors	  off
  LibraryLinkDisplay	  "none"
  WideLines		  off
  ShowLineDimensions	  off
  ShowPortDataTypes	  off
  ShowLoopsOnError	  on
  IgnoreBidirectionalLines off
  ShowStorageClass	  off
  ShowTestPointIcons	  on
  ShowViewerIcons	  on
  SortedOrder		  off
  ExecutionContextIcon	  off
  ShowLinearizationAnnotations on
  ScopeRefreshTime	  0.035000
  OverrideScopeRefreshTime on
  DisableAllScopes	  off
  DataTypeOverride	  "UseLocalSettings"
  MinMaxOverflowLogging	  "UseLocalSettings"
  MinMaxOverflowArchiveMode "Overwrite"
  BlockNameDataTip	  off
  BlockParametersDataTip  off
  BlockDescriptionStringDataTip	off
  ToolBar		  on
  StatusBar		  on
  BrowserShowLibraryLinks off
  BrowserLookUnderMasks	  off
  Created		  "Wed Mar 14 23:59:06 2007"
  Creator		  "Lubin"
  UpdateHistory		  "UpdateHistoryNever"
  ModifiedByFormat	  "%<Auto>"
  LastModifiedBy	  "Admin"
  ModifiedDateFormat	  "%<Auto>"
  LastModifiedDate	  "Mon Jul 04 20:23:56 2011"
  RTWModifiedTimeStamp	  0
  ModelVersionFormat	  "1.%<AutoIncrement:84>"
  ConfigurationManager	  "None"
  SimulationMode	  "normal"
  LinearizationMsg	  "none"
  Profile		  off
  ParamWorkspaceSource	  "MATLABWorkspace"
  AccelSystemTargetFile	  "accel.tlc"
  AccelTemplateMakefile	  "accel_default_tmf"
  AccelMakeCommand	  "make_rtw"
  TryForcingSFcnDF	  off
  RecordCoverage	  off
  CovPath		  "/"
  CovSaveName		  "covdata"
  CovMetricSettings	  "dw"
  CovNameIncrementing	  off
  CovHtmlReporting	  on
  covSaveCumulativeToWorkspaceVar on
  CovSaveSingleToWorkspaceVar on
  CovCumulativeVarName	  "covCumulativeData"
  CovCumulativeReport	  off
  CovReportOnPause	  on
  ExtModeBatchMode	  off
  ExtModeEnableFloating	  on
  ExtModeTrigType	  "manual"
  ExtModeTrigMode	  "normal"
  ExtModeTrigPort	  "1"
  ExtModeTrigElement	  "any"
  ExtModeTrigDuration	  1000
  ExtModeTrigDurationFloating "auto"
  ExtModeTrigHoldOff	  0
  ExtModeTrigDelay	  0
  ExtModeTrigDirection	  "rising"
  ExtModeTrigLevel	  0
  ExtModeArchiveMode	  "off"
  ExtModeAutoIncOneShot	  off
  ExtModeIncDirWhenArm	  off
  ExtModeAddSuffixToVar	  off
  ExtModeWriteAllDataToWs off
  ExtModeArmWhenConnect	  on
  ExtModeSkipDownloadWhenConnect off
  ExtModeLogAll		  on
  ExtModeAutoUpdateStatusClock on
  BufferReuse		  on
  ShowModelReferenceBlockVersion off
  ShowModelReferenceBlockIO off
  Array {
    Type		    "Handle"
    Dimension		    1
    Simulink.ConfigSet {
      $ObjectID		      1
      Version		      "1.3.0"
      Array {
	Type			"Handle"
	Dimension		7
	Simulink.SolverCC {
	  $ObjectID		  2
	  Version		  "1.3.0"
	  StartTime		  "0.0"
	  StopTime		  "10.0"
	  AbsTol		  "auto"
	  FixedStep		  "0.01"
	  InitialStep		  "auto"
	  MaxNumMinSteps	  "-1"
	  MaxOrder		  5
	  ConsecutiveZCsStepRelTol "10*128*eps"
	  MaxConsecutiveZCs	  "1000"
	  ExtrapolationOrder	  4
	  NumberNewtonIterations  1
	  MaxStep		  "auto"
	  MinStep		  "auto"
	  MaxConsecutiveMinStep	  "1"
	  RelTol		  "1e-3"
	  SolverMode		  "SingleTasking"
	  Solver		  "FixedStepDiscrete"
	  SolverName		  "FixedStepDiscrete"
	  ZeroCrossControl	  "UseLocalSettings"
	  AlgebraicLoopSolver	  "TrustRegion"
	  SolverResetMethod	  "Fast"
	  PositivePriorityOrder	  off
	  AutoInsertRateTranBlk	  off
	  SampleTimeConstraint	  "Unconstrained"
	  RateTranMode		  "Deterministic"
	}
	Simulink.DataIOCC {
	  $ObjectID		  3
	  Version		  "1.3.0"
	  Decimation		  "1"
	  ExternalInput		  "[t, u]"
	  FinalStateName	  "xFinal"
	  InitialState		  "xInitial"
	  LimitDataPoints	  on
	  MaxDataPoints		  "1000"
	  LoadExternalInput	  off
	  LoadInitialState	  off
	  SaveFinalState	  off
	  SaveFormat		  "Array"
	  SaveOutput		  on
	  SaveState		  off
	  SignalLogging		  on
	  InspectSignalLogs	  off
	  SaveTime		  on
	  StateSaveName		  "xout"
	  TimeSaveName		  "tout"
	  OutputSaveName	  "yout"
	  SignalLoggingName	  "logsout"
	  OutputOption		  "RefineOutputTimes"
	  OutputTimes		  "[]"
	  Refine		  "1"
	}
	Simulink.OptimizationCC {
	  $ObjectID		  4
	  Version		  "1.3.0"
	  BlockReduction	  on
	  BooleanDataType	  on
	  ConditionallyExecuteInputs on
	  InlineParams		  on
	  InlineInvariantSignals  off
	  OptimizeBlockIOStorage  on
	  BufferReuse		  on
	  EnforceIntegerDowncast  on
	  ExpressionFolding	  on
	  ExpressionDepthLimit	  2147483647
	  FoldNonRolledExpr	  on
	  LocalBlockOutputs	  on
	  RollThreshold		  5
	  SystemCodeInlineAuto	  off
	  StateBitsets		  off
	  DataBitsets		  off
	  UseTempVars		  off
	  ZeroExternalMemoryAtStartup on
	  ZeroInternalMemoryAtStartup on
	  InitFltsAndDblsToZero	  on
	  NoFixptDivByZeroProtection off
	  EfficientFloat2IntCast  off
	  OptimizeModelRefInitCode on
	  LifeSpan		  "1"
	  BufferReusableBoundary  on
	  SimCompilerOptimization "Off"
	  AccelVerboseBuild	  off
	}
	Simulink.DebuggingCC {
	  $ObjectID		  5
	  Version		  "1.3.0"
	  RTPrefix		  "error"
	  ConsistencyChecking	  "none"
	  ArrayBoundsChecking	  "none"
	  SignalInfNanChecking	  "none"
	  SignalRangeChecking	  "none"
	  ReadBeforeWriteMsg	  "UseLocalSettings"
	  WriteAfterWriteMsg	  "UseLocalSettings"
	  WriteAfterReadMsg	  "UseLocalSettings"
	  AlgebraicLoopMsg	  "warning"
	  ArtificialAlgebraicLoopMsg "warning"
	  SaveWithDisabledLinksMsg "warning"
	  SaveWithParameterizedLinksMsg	"none"
	  CheckSSInitialOutputMsg on
	  CheckExecutionContextPreStartOutputMsg off
	  CheckExecutionContextRuntimeOutputMsg	off
	  SignalResolutionControl "TryResolveAllWithWarning"
	  BlockPriorityViolationMsg "warning"
	  MinStepSizeMsg	  "warning"
	  TimeAdjustmentMsg	  "none"
	  MaxConsecutiveZCsMsg	  "error"
	  SolverPrmCheckMsg	  "warning"
	  InheritedTsInSrcMsg	  "warning"
	  DiscreteInheritContinuousMsg "warning"
	  MultiTaskDSMMsg	  "error"
	  MultiTaskCondExecSysMsg "error"
	  MultiTaskRateTransMsg	  "error"
	  SingleTaskRateTransMsg  "none"
	  TasksWithSamePriorityMsg "warning"
	  SigSpecEnsureSampleTimeMsg "warning"
	  CheckMatrixSingularityMsg "none"
	  IntegerOverflowMsg	  "warning"
	  Int32ToFloatConvMsg	  "warning"
	  ParameterDowncastMsg	  "error"
	  ParameterOverflowMsg	  "error"
	  ParameterUnderflowMsg	  "none"
	  ParameterPrecisionLossMsg "warning"
	  ParameterTunabilityLossMsg "warning"
	  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"
	  StateNameClashWarn	  "warning"
	  StrictBusMsg		  "Warning"
	  LoggingUnavailableSignals "error"
	}
	Simulink.HardwareCC {
	  $ObjectID		  6
	  Array {
	    Type		    "Cell"
	    Dimension		    2
	    Cell		    "ProdHWDeviceType"
	    Cell		    "ProdEqTarget"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.3.0"
	  ProdBitPerChar	  8
	  ProdBitPerShort	  16
	  ProdBitPerInt		  16
	  ProdBitPerLong	  32
	  ProdIntDivRoundTo	  "Undefined"
	  ProdEndianess		  "LittleEndian"
	  ProdWordSize		  16
	  ProdShiftRightIntArith  on
	  ProdHWDeviceType	  "16-bit Generic"
	  TargetBitPerChar	  8
	  TargetBitPerShort	  16
	  TargetBitPerInt	  32
	  TargetBitPerLong	  32
	  TargetShiftRightIntArith on
	  TargetIntDivRoundTo	  "Undefined"
	  TargetEndianess	  "Unspecified"
	  TargetWordSize	  32
	  TargetTypeEmulationWarnSuppressLevel 0
	  TargetPreprocMaxBitsSint 32
	  TargetPreprocMaxBitsUint 32
	  TargetHWDeviceType	  "32-bit Generic"
	  TargetUnknown		  off
	  ProdEqTarget		  on
	}
	Simulink.ModelReferenceCC {
	  $ObjectID		  7
	  Version		  "1.3.0"
	  UpdateModelReferenceTargets "IfOutOfDateOrStructuralChange"
	  CheckModelReferenceTargetMessage "error"
	  ModelReferenceNumInstancesAllowed "Multi"
	  ModelReferencePassRootInputsByReference on
	  ModelReferenceMinAlgLoopOccurrences off
	}
	Simulink.RTWCC {
	  $BackupClass		  "Simulink.RTWCC"
	  $ObjectID		  8
	  Array {
	    Type		    "Cell"
	    Dimension		    1
	    Cell		    "TargetLang"
	    PropName		    "DisabledProps"
	  }
	  Version		  "1.3.0"
	  SystemTargetFile	  "dspic.tlc"
	  GenCodeOnly		  off
	  MakeCommand		  "make_CreateMPLAB"
	  GenerateMakefile	  on
	  TemplateMakefile	  "dspic_pic30_gcc.tmf"
	  PostCodeGenCommand	  "dsPIC_Compile()"
	  Description		  "Embedded Target for Microchip dsPIC (real-time)"
	  GenerateReport	  off
	  SaveLog		  off
	  RTWVerbose		  on
	  RetainRTWFile		  off
	  ProfileTLC		  off
	  TLCDebug		  off
	  TLCCoverage		  off
	  TLCAssert		  off
	  ProcessScriptMode	  "Default"
	  ConfigurationMode	  "Optimized"
	  ProcessScript		  "dspic_make_rtw_hook"
	  ConfigAtBuild		  off
	  CustomHeaderCode	  "#include \"apDefinitions.h\""
	  CustomInclude		  "\\mavlink\\include\\slugs\\"
	  CustomSource		  "clib\\circBuffer.c\nclib\\sbrk.c\nclib\\gps.c\nclib\\interProcCommMaster.c\nclib\\mavlinkSensorMcu.c"
	  IncludeHyperlinkInReport off
	  LaunchReport		  off
	  TargetLang		  "C"
	  IncludeBusHierarchyInRTWFileBlockHierarchyMap	off
	  IncludeERTFirstTime	  off
	  GenerateTraceInfo	  off
	  RTWCompilerOptimization "Off"
	  Array {
	    Type		    "Handle"
	    Dimension		    2
	    Simulink.CodeAppCC {
	      $ObjectID		      9
	      Version		      "1.3.0"
	      ForceParamTrailComments off
	      GenerateComments	      on
	      IgnoreCustomStorageClasses off
	      IncHierarchyInIds	      off
	      MaxIdLength	      31
	      PreserveName	      off
	      PreserveNameWithParent  off
	      ShowEliminatedStatement off
	      IncAutoGenComments      off
	      SimulinkDataObjDesc     off
	      SFDataObjDesc	      off
	      IncDataTypeInIds	      off
	      MangleLength	      1
	      CustomSymbolStrGlobalVar "$R$N$M"
	      CustomSymbolStrType     "$N$R$M"
	      CustomSymbolStrField    "$N$M"
	      CustomSymbolStrFcn      "$R$N$M$F"
	      CustomSymbolStrBlkIO    "rtb_$N$M"
	      CustomSymbolStrTmpVar   "$N$M"
	      CustomSymbolStrMacro    "$R$N$M"
	      DefineNamingRule	      "None"
	      ParamNamingRule	      "None"
	      SignalNamingRule	      "None"
	      InsertBlockDesc	      off
	      SimulinkBlockComments   on
	      EnableCustomComments    off
	      InlinedPrmAccess	      "Literals"
	      ReqsInCode	      off
	    }
	    Simulink.STFCustomTargetCC {
	      $BackupClass	      "Simulink.TargetCC"
	      $ObjectID		      10
	      Array {
		Type			"Cell"
		Dimension		6
		Cell			"GenerateSampleERTMain"
		Cell			"MatFileLogging"
		Cell			"SupportNonInlinedSFcns"
		Cell			"UtilityFuncGeneration"
		Cell			"IncludeMdlTerminateFcn"
		Cell			"ModelReferenceCompliant"
		PropName		"DisabledProps"
	      }
	      Version		      "1.3.0"
	      TargetFcnLib	      "ansi_tfl_tmw.mat"
	      TargetLibSuffix	      ""
	      TargetPreCompLibLocation ""
	      GenFloatMathFcnCalls    "ANSI_C"
	      UtilityFuncGeneration   "Auto"
	      GenerateFullHeader      on
	      GenerateSampleERTMain   off
	      GenerateTestInterfaces  off
	      IsPILTarget	      off
	      ModelReferenceCompliant on
	      CompOptLevelCompliant   off
	      IncludeMdlTerminateFcn  off
	      CombineOutputUpdateFcns on
	      SuppressErrorStatus     on
	      IncludeFileDelimiter    "Auto"
	      ERTCustomFileBanners    on
	      SupportAbsoluteTime     off
	      LogVarNameModifier      "rt_"
	      MatFileLogging	      off
	      MultiInstanceERTCode    off
	      SupportNonFinite	      off
	      SupportComplex	      off
	      PurelyIntegerCode	      off
	      SupportContinuousTime   off
	      SupportNonInlinedSFcns  off
	      EnableShiftOperators    on
	      ParenthesesLevel	      "Nominal"
	      PortableWordSizes	      off
	      ModelStepFunctionPrototypeControlCompliant on
	      SystemTargetFile	      "dspic.tlc"
	      DialogCategory	      0
	      Array {
		Type			"Handle"
		Dimension		1
		Simulink.ERTTargetCC {
		  $BackupClass		  "Simulink.TargetCC"
		  $ObjectID		  11
		  Array {
		    Type		    "Cell"
		    Dimension		    9
		    Cell		    "GenerateSampleERTMain"
		    Cell		    "GenerateErtSFunction"
		    Cell		    "MatFileLogging"
		    Cell		    "GRTInterface"
		    Cell		    "ERTCustomFileTemplate"
		    Cell		    "SupportNonInlinedSFcns"
		    Cell		    "UtilityFuncGeneration"
		    Cell		    "IncludeMdlTerminateFcn"
		    Cell		    "ModelReferenceCompliant"
		    PropName		    "DisabledProps"
		  }
		  Version		  "1.3.0"
		  TargetFcnLib		  "ansi_tfl_tmw.mat"
		  TargetLibSuffix	  ""
		  TargetPreCompLibLocation ""
		  GenFloatMathFcnCalls	  "ANSI_C"
		  UtilityFuncGeneration	  "Auto"
		  GenerateFullHeader	  on
		  GenerateSampleERTMain	  off
		  GenerateTestInterfaces  off
		  IsPILTarget		  off
		  ModelReferenceCompliant on
		  CompOptLevelCompliant	  off
		  IncludeMdlTerminateFcn  off
		  CombineOutputUpdateFcns on
		  SuppressErrorStatus	  on
		  IncludeFileDelimiter	  "Auto"
		  ERTCustomFileBanners	  on
		  SupportAbsoluteTime	  off
		  LogVarNameModifier	  "rt_"
		  MatFileLogging	  off
		  MultiInstanceERTCode	  off
		  SupportNonFinite	  off
		  SupportComplex	  off
		  PurelyIntegerCode	  off
		  SupportContinuousTime	  off
		  SupportNonInlinedSFcns  off
		  EnableShiftOperators	  on
		  ParenthesesLevel	  "Nominal"
		  PortableWordSizes	  off
		  ModelStepFunctionPrototypeControlCompliant on
		  GenerateErtSFunction	  off
		  GenerateASAP2		  off
		  ExtMode		  off
		  ExtModeTransport	  0
		  ExtModeStaticAlloc	  off
		  ExtModeStaticAllocSize  1000000
		  ExtModeTesting	  off
		  ExtModeMexFile	  "ext_serial_win32_comm"
		  ExtModeIntrfLevel	  "Level1"
		  InlinedParameterPlacement "NonHierarchical"
		  TargetOS		  "BareBoardExample"
		  MultiInstanceErrorCode  "Error"
		  RateGroupingCode	  on
		  RootIOFormat		  "Individual arguments"
		  RTWCAPISignals	  off
		  RTWCAPIParams		  off
		  RTWCAPIStates		  off
		  ERTSrcFileBannerTemplate "dsPIC_code_template.cgt"
		  ERTHdrFileBannerTemplate "dsPIC_code_template.cgt"
		  ERTDataSrcFileTemplate  "dsPIC_code_template.cgt"
		  ERTDataHdrFileTemplate  "dsPIC_code_template.cgt"
		  ERTCustomFileTemplate	  "dsPIC_main.tlc"
		  ModuleNamingRule	  "Unspecified"
		  SignalDisplayLevel	  10
		  ParamTuneLevel	  10
		  GlobalDataDefinition	  "Auto"
		  DataDefinitionFile	  "global.c"
		  GlobalDataReference	  "Auto"
		  DataReferenceFile	  "global.h"
		  GRTInterface		  off
		  PreserveExpressionOrder off
		  PreserveIfCondition	  off
		  EnableUserReplacementTypes off
		  Array {
		    Type		    "Struct"
		    Dimension		    1
		    MATStruct {
		    double		    ""
		    single		    ""
		    int32		    ""
		    int16		    ""
		    int8		    ""
		    uint32		    ""
		    uint16		    ""
		    uint8		    ""
		    boolean		    ""
		    int			    ""
		    uint		    ""
		    char		    ""
		    }
		    PropName		    "ReplacementTypes"
		  }
		  MemSecPackage		  "--- None ---"
		  MemSecDataConstants	  "Default"
		  MemSecDataIO		  "Default"
		  MemSecDataInternal	  "Default"
		  MemSecDataParameters	  "Default"
		  MemSecFuncInitTerm	  "Default"
		  MemSecFuncExecute	  "Default"
		}
		PropName		"Components"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GMAKE_PLACE"
		Value			"C:\\PROGRA~1\\MATLAB\\R2007b\\bin\\win32\\gmake"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"OPTIM_GCC"
		Value			"-mcpu=33fJ256MC710 -O3 -fschedule-insns -fschedule-insns2"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDFLAGS"
		Value			" -Xlinker -t -Xlinker --report-mem -Xlinker -Map=../untitled.map -Xlinker --heap=0 -Xlinker -cref"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDPICTYPE"
		Value			" -Xlinker --script=C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\support\\dsPIC33F\\gld\\p33fJ256MC710.gld"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"LDLIBPIC"
		Value			" C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libpic30-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\dsPIC33F\\libp33fJ256MC710-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libc-coff.a C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\lib\\libm-coff.a"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_INCLUDES"
		Value			" -I C:\\PROGRA~1\\MICROC~1\\MPLABC~2\\include"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"PIC_REF"
		Value			"33fJ256MC710"
	      }
	      CustomProperty {
		DataType		"string"
		Name			"GCCPATH"
		Value			"''"
	      }
	    }
	    PropName		    "Components"
	  }
	}
	PropName		"Components"
      }
      Name		      "Configuration"
      ExtraOptions	      "-aGenerateTraceInfo=0 "
      CurrentDlgPage	      "Solver"
    }
    PropName		    "ConfigurationSets"
  }
  Simulink.ConfigSet {
    $PropName		    "ActiveConfigurationSet"
    $ObjectID		    1
  }
  BlockDefaults {
    Orientation		    "right"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    NamePlacement	    "normal"
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    ShowName		    on
  }
  BlockParameterDefaults {
    Block {
      BlockType		      DataTypeConversion
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via back propagation"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      LockScale		      off
      ConvertRealWorld	      "Real World Value (RWV)"
      RndMeth		      "Zero"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Demux
      Outputs		      "4"
      DisplayOption	      "none"
      BusSelectionMode	      off
    }
    Block {
      BlockType		      DiscreteTransferFcn
      Numerator		      "[1]"
      Denominator	      "[1 0.5]"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
      Realization	      "auto"
    }
    Block {
      BlockType		      Ground
    }
    Block {
      BlockType		      Inport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      SignalType	      "auto"
      SamplingMode	      "auto"
      LatchByDelayingOutsideSignal off
      LatchByCopyingInsideSignal off
      Interpolate	      on
    }
    Block {
      BlockType		      Outport
      Port		      "1"
      UseBusObject	      off
      BusObject		      "BusObject"
      BusOutputAsStruct	      off
      PortDimensions	      "-1"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      SignalType	      "auto"
      SamplingMode	      "auto"
      OutputWhenDisabled      "held"
      InitialOutput	      "[]"
    }
    Block {
      BlockType		      SignalSpecification
      Dimensions	      "-1"
      SampleTime	      "-1"
      OutMin		      "[]"
      OutMax		      "[]"
      DataType		      "auto"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      SignalType	      "auto"
      SamplingMode	      "auto"
    }
    Block {
      BlockType		      "S-Function"
      FunctionName	      "system"
      SFunctionModules	      "''"
      PortCounts	      "[]"
    }
    Block {
      BlockType		      SubSystem
      ShowPortLabels	      "FromPortIcon"
      Permissions	      "ReadWrite"
      PermitHierarchicalResolution "All"
      TreatAsAtomicUnit	      off
      SystemSampleTime	      "-1"
      RTWFcnNameOpts	      "Auto"
      RTWFileNameOpts	      "Auto"
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      SimViewingDevice	      off
      DataTypeOverride	      "UseLocalSettings"
      MinMaxOverflowLogging   "UseLocalSettings"
    }
    Block {
      BlockType		      Sum
      IconShape		      "rectangular"
      Inputs		      "++"
      CollapseMode	      "All dimensions"
      CollapseDim	      "1"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Same as first input"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Switch
      Criteria		      "u2 >= Threshold"
      Threshold		      "0"
      InputSameDT	      on
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit via internal rule"
      OutDataType	      "fixdt(1,16,0)"
      OutScaling	      "[]"
      LockScale		      off
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	on
      ZeroCross		      on
      SampleTime	      "-1"
    }
    Block {
      BlockType		      Terminator
    }
    Block {
      BlockType		      UnitDelay
      X0		      "0"
      SampleTime	      "1"
      StateMustResolveToSignalObject off
      RTWStateStorageClass    "Auto"
    }
    Block {
      BlockType		      Constant
      Value		      "1"
      VectorParams1D	      on
      SamplingMode	      "Sample based"
      OutMin		      "[]"
      OutMax		      "[]"
      OutDataTypeMode	      "Inherit from 'Constant value'"
      OutDataType	      "fixdt(1,16,0)"
      ConRadixGroup	      "Use specified scaling"
      OutScaling	      "[]"
      SampleTime	      "inf"
      FramePeriod	      "inf"
    }
  }
  AnnotationDefaults {
    HorizontalAlignment	    "center"
    VerticalAlignment	    "middle"
    ForegroundColor	    "black"
    BackgroundColor	    "white"
    DropShadow		    off
    FontName		    "Arial"
    FontSize		    10
    FontWeight		    "normal"
    FontAngle		    "normal"
    UseDisplayTextAsClickCallback off
  }
  LineDefaults {
    FontName		    "Arial"
    FontSize		    9
    FontWeight		    "normal"
    FontAngle		    "normal"
  }
  System {
    Name		    "UAV_SENSORS_IMU_GPS_PWM"
    Location		    [2, 82, 1259, 748]
    Open		    on
    ModelBrowserVisibility  off
    ModelBrowserWidth	    200
    ScreenColor		    "white"
    PaperOrientation	    "landscape"
    PaperPositionMode	    "auto"
    PaperType		    "A4"
    PaperUnits		    "centimeters"
    TiledPaperMargins	    [0.500000, 0.500000, 0.500000, 0.500000]
    TiledPageScale	    1
    ShowPageBoundaries	    off
    ZoomFactor		    "100"
    ReportName		    "simulink-default.rpt"
    Block {
      BlockType		      Reference
      Name		      "0.5Hz2"
      Ports		      [0, 1]
      Position		      [750, 25, 780, 55]
      SourceBlock	      "simulink/Sources/Counter\nFree-Running"
      SourceType	      "Counter Free-Running"
      ShowPortLabels	      "FromPortIcon"
      SystemSampleTime	      "-1"
      FunctionWithSeparateData off
      RTWMemSecFuncInitTerm   "Inherit from model"
      RTWMemSecFuncExecute    "Inherit from model"
      RTWMemSecDataConstants  "Inherit from model"
      RTWMemSecDataInternal   "Inherit from model"
      RTWMemSecDataParameters "Inherit from model"
      NumBits		      "1"
      tsamp		      "0.5"
    }
    Block {
      BlockType		      Reference
      Name		      "ADC Input1"
      Tag		      "dsPIC_ADC"
      Ports		      [0, 1]
      Position		      [290, 44, 375, 86]
      Priority		      "5"
      List {
	ListType		RTWdata
	DMAChannel		"0"
      }
      SourceBlock	      "dsPICdrivers/Peripheral I//O/ADC Input"
      SourceType	      "dsPIC : ADC10"
      ADC_TYPE		      "12 bits"
      ADC_MODE		      "Continuous sampling & get last channel value"
      NbrSampleStep	      "1"
      VoltRefpopup	      "AVdd  -  AVss"
      OutFormatBitspopup      "0000 dddd dddd dddd : Integer"
      InterruptPriority	      "6"
      ANCHANNELS	      "[3]"
      MaxName		      "ANmax = 4095"
      Rin		      "5e6"
      ADCS		      "53"
      SAMC		      "31"
      Temperature	      "25"
      DMAChannel	      "0"
      SampleTime	      ".1"
      Status		      "OK  |  Tsmp=2.093e-005 |  T/Channel=3.038e-005 |  Tall=3.038e-005"
      SSRC		      "auto convert"
    }
    Block {
      BlockType		      Reference
      Name		      "ADC Input2"
      Tag		      "dsPIC_ADC"
      Ports		      [0, 1]
      Position		      [240, 94, 325, 136]
      Priority		      "5"
      List {
	ListType		RTWdata
	DMAChannel		"0"
      }
      SourceBlock	      "dsPICdrivers/Peripheral I//O/ADC Input"
      SourceType	      "dsPIC : ADC10"
      ADC_TYPE		      "12 bits"
      ADC_MODE		      "Continuous sampling & get last channel value"
      NbrSampleStep	      "1"
      VoltRefpopup	      "AVdd  -  AVss"
      OutFormatBitspopup      "0000 dddd dddd dddd : Integer"
      InterruptPriority	      "6"
      ANCHANNELS	      "[4]"
      MaxName		      "ANmax = 4095"
      Rin		      "5e6"
      ADCS		      "53"
      SAMC		      "31"
      Temperature	      "25"
      DMAChannel	      "0"
      SampleTime	      ".1"
      Status		      "OK  |  Tsmp=2.093e-005 |  T/Channel=3.038e-005 |  Tall=3.038e-005"
      SSRC		      "auto convert"
    }
    Block {
      BlockType		      Reference
      Name		      "ADC Input3"
      Tag		      "dsPIC_ADC"
      Ports		      [0, 1]
      Position		      [340, 134, 425, 176]
      Priority		      "5"
      List {
	ListType		RTWdata
	DMAChannel		"0"
      }
      SourceBlock	      "dsPICdrivers/Peripheral I//O/ADC Input"
      SourceType	      "dsPIC : ADC10"
      ADC_TYPE		      "12 bits"
      ADC_MODE		      "Continuous sampling & get last channel value"
      NbrSampleStep	      "1"
      VoltRefpopup	      "AVdd  -  AVss"
      OutFormatBitspopup      "0000 dddd dddd dddd : Integer"
      InterruptPriority	      "6"
      ANCHANNELS	      "[9]"
      MaxName		      "ANmax = 4095"
      Rin		      "5e6"
      ADCS		      "53"
      SAMC		      "31"
      Temperature	      "25"
      DMAChannel	      "0"
      SampleTime	      ".1"
      Status		      "OK  |  Tsmp=2.093e-005 |  T/Channel=3.038e-005 |  Tall=3.038e-005"
      SSRC		      "auto convert"
    }
    Block {
      BlockType		      Reference
      Name		      "ADC Input4"
      Tag		      "dsPIC_ADC"
      Ports		      [0, 1]
      Position		      [235, 164, 320, 206]
      Priority		      "5"
      List {
	ListType		RTWdata
	DMAChannel		"0"
      }
      SourceBlock	      "dsPICdrivers/Peripheral I//O/ADC Input"
      SourceType	      "dsPIC : ADC10"
      ADC_TYPE		      "12 bits"
      ADC_MODE		      "Continuous sampling & get last channel value"
      NbrSampleStep	      "1"
      VoltRefpopup	      "AVdd  -  AVss"
      OutFormatBitspopup      "0000 dddd dddd dddd : Integer"
      InterruptPriority	      "6"
      ANCHANNELS	      "[11]"
      MaxName		      "ANmax = 4095"
      Rin		      "5e6"
      ADCS		      "53"
      SAMC		      "31"
      Temperature	      "25"
      DMAChannel	      "0"
      SampleTime	      ".1"
      Status		      "OK  |  Tsmp=2.093e-005 |  T/Channel=3.038e-005 |  Tall=3.038e-005"
      SSRC		      "auto convert"
    }
    Block {
      BlockType		      Reference
      Name		      "ADC Input5"
      Tag		      "dsPIC_ADC"
      Ports		      [0, 1]
      Position		      [345, 204, 430, 246]
      Priority		      "5"
      List {
	ListType		RTWdata
	DMAChannel		"0"
      }
      SourceBlock	      "dsPICdrivers/Peripheral I//O/ADC Input"
      SourceType	      "dsPIC : ADC10"
      ADC_TYPE		      "12 bits"
      ADC_MODE		      "Continuous sampling & get last channel value"
      NbrSampleStep	      "1"
      VoltRefpopup	      "AVdd  -  AVss"
      OutFormatBitspopup      "0000 dddd dddd dddd : Integer"
      InterruptPriority	      "6"
      ANCHANNELS	      "[12]"
      MaxName		      "ANmax = 4095"
      Rin		      "5e6"
      ADCS		      "53"
      SAMC		      "31"
      Temperature	      "25"
      DMAChannel	      "0"
      SampleTime	      ".1"
      Status		      "OK  |  Tsmp=2.093e-005 |  T/Channel=3.038e-005 |  Tall=3.038e-005"
      SSRC		      "auto convert"
    }
    Block {
      BlockType		      Reference
      Name		      "ADC Input6"
      Tag		      "dsPIC_ADC"
      Ports		      [0, 1]
      Position		      [375, 264, 460, 306]
      Priority		      "5"
      List {
	ListType		RTWdata
	DMAChannel		"0"
      }
      SourceBlock	      "dsPICdrivers/Peripheral I//O/ADC Input"
      SourceType	      "dsPIC : ADC10"
      ADC_TYPE		      "12 bits"
      ADC_MODE		      "Continuous sampling & get last channel value"
      NbrSampleStep	      "1"
      VoltRefpopup	      "AVdd  -  AVss"
      OutFormatBitspopup      "0000 dddd dddd dddd : Integer"
      InterruptPriority	      "6"
      ANCHANNELS	      "[15]"
      MaxName		      "ANmax = 4095"
      Rin		      "5e6"
      ADCS		      "53"
      SAMC		      "31"
      Temperature	      "25"
      DMAChannel	      "0"
      SampleTime	      ".1"
      Status		      "OK  |  Tsmp=2.093e-005 |  T/Channel=3.038e-005 |  Tall=3.038e-005"
      SSRC		      "auto convert"
    }
    Block {
      BlockType		      Reference
      Name		      "Configure Model \nfor dsPIC"
      Ports		      []
      Position		      [90, 54, 202, 110]
      ForegroundColor	      "blue"
      BackgroundColor	      "yellow"
      SourceBlock	      "dsPICdrivers/Simulink Configuration/Configure Model \nfor dsPIC"
      SourceType	      ""
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion"
      Position		      [425, 55, 480, 75]
      OutDataTypeMode	      "double"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion1"
      Position		      [785, 105, 840, 125]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion10"
      Position		      [760, 355, 815, 375]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion11"
      Position		      [755, 395, 810, 415]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion12"
      Position		      [770, 445, 825, 465]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion2"
      Position		      [765, 80, 820, 100]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion3"
      Position		      [795, 145, 850, 165]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion4"
      Position		      [725, 180, 780, 200]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion5"
      Position		      [735, 205, 790, 225]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion6"
      Position		      [835, 23, 905, 57]
      OutDataTypeMode	      "boolean"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion7"
      Position		      [715, 235, 770, 255]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion8"
      Position		      [755, 275, 810, 295]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      DataTypeConversion
      Name		      "Data Type Conversion9"
      Position		      [775, 315, 830, 335]
      OutDataTypeMode	      "uint16"
      OutDataType	      "sfix(16)"
      OutScaling	      "2^0"
      RndMeth		      "Floor"
      SaturateOnIntegerOverflow	off
    }
    Block {
      BlockType		      Demux
      Name		      "Demux3"
      Ports		      [1, 5]
      Position		      [455, 330, 470, 500]
      BackgroundColor	      "black"
      ShowName		      off
      Outputs		      "5"
      DisplayOption	      "bar"
    }
    Block {
      BlockType		      Reference
      Name		      "Digital Output Write"
      Tag		      "dsPIC_Digital_Output"
      Ports		      [1]
      Position		      [1120, 14, 1190, 96]
      Priority		      "5"
      SourceBlock	      "dsPICdrivers/Digital I//O/Digital Output Write"
      SourceType	      ""
      PORT		      "A"
      Pin		      "[2]"
      Simultaneous	      off
      OrderingInOutPopup      "None"
    }
    Block {
      BlockType		      SubSystem
      Name		      "Embedded\nMATLAB Function"
      Ports		      [1, 1]
      Position		      [640, 67, 710, 113]
      PermitHierarchicalResolution "ExplicitOnly"
      MinAlgLoopOccurrences   off
      RTWSystemCode	      "Auto"
      FunctionWithSeparateData off
      MaskType		      "Stateflow"
      MaskDescription	      "Embedded MATLAB block"
      MaskDisplay	      "disp('fcn');"
      MaskSelfModifiable      on
      MaskIconFrame	      on
      MaskIconOpaque	      off
      MaskIconRotate	      "none"
      MaskIconUnits	      "autoscale"
      System {
	Name			"Embedded\nMATLAB Function"
	Location		[257, 457, 812, 717]
	Open			off
	ModelBrowserVisibility	off
	ModelBrowserWidth	200
	ScreenColor		"white"
	PaperOrientation	"landscape"
	PaperPositionMode	"auto"
	PaperType		"usletter"
	PaperUnits		"inches"
	TiledPaperMargins	[0.500000, 0.500000, 0.500000, 0.500000]
	TiledPageScale		1
	ShowPageBoundaries	off
	ZoomFactor		"100"
	Block {
	  BlockType		  Inport
	  Name			  "u"
	  Position		  [20, 101, 40, 119]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Block {
	  BlockType		  Demux
	  Name			  " Demux "
	  Ports			  [1, 1]
	  Position		  [270, 160, 320, 200]
	  Outputs		  "1"
	}
	Block {
	  BlockType		  "S-Function"
	  Name			  " SFunction "
	  Tag			  "Stateflow S-Function UAV_SENSORS_IMU_GPS_PWM 2"
	  Ports			  [1, 2]
	  Position		  [180, 100, 230, 160]
	  FunctionName		  "sf_sfun"
	  PortCounts		  "[1 2]"
	  EnableBusSupport	  on
	  Port {
	    PortNumber		    2
	    Name		    "y"
	    RTWStorageClass	    "Auto"
	    DataLoggingNameMode	    "SignalName"
	  }
	}
	Block {
	  BlockType		  Terminator
	  Name			  " Terminator "
	  Position		  [460, 171, 480, 189]
	}
	Block {
	  BlockType		  Outport
	  Name			  "y"
	  Position		  [460, 101, 480, 119]
	  IconDisplay		  "Port number"
	  OutDataType		  "sfix(16)"
	  OutScaling		  "2^0"
	}
	Line {
	  SrcBlock		  " SFunction "
	  SrcPort		  1
	  Points		  [0, 65]
	  DstBlock		  " Demux "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  " Demux "
	  SrcPort		  1
	  DstBlock		  " Terminator "
	  DstPort		  1
	}
	Line {
	  SrcBlock		  "u"
	  SrcPort		  1
	  DstBlock		  " SFunction "
	  DstPort		  1
	}
	Line {
	  Name			  "y"
	  Labels		  [0, 0]
	  SrcBlock		  " SFunction "
	  SrcPort		  2
	  DstBlock		  "y"
	  DstPort		  1
	}
      }
    }
    Block {
      BlockType		      Reference
      Name		      "Initialize Sensor MCU\n[interProcCommMaster.c]"
      Tag		      "dsPIC_dsPIC_CFunctionCall"
      Ports		      []
      Position		      [55, 357, 160, 393]
      BackgroundColor	      "orange"
      List {
	ListType		RTWdata
	isFctUpdate		"1"
	FctDeclaration		"extern void sensorMCUInit();"
	FctCall			"sensorMCUInit();"
	fctName			"sensorMCUInit"
	INPUT_SIZE		"1"
	OUTPUT_SIZE		"1"
	NBR_INPUT		"0"
	NBR_OUTPUT		"0"
	isFctStart		"0"
	FctStart_Declaration	"inline extern void Init_onlyOnce();"
	FctStart_Call		"Init_onlyOnce();"
	FctStart_Name		"Init_onlyOnce"
	isFctInit		"0"
	FctInit_Declaration	"inline extern void Init_Reset();"
	FctInit_Call		"Init_Reset();"
	FctInit_Name		"Init_Reset"
      }
      SourceBlock	      "dsPICdrivers/OTHERS/C Function Call"
      SourceType	      "C Function Call"
      FctUpdate		      "Output Function"
      fctName		      "'sensorMCUInit'"
      INPUT_SIZE	      "1"
      INPUT1		      "--"
      INPUT2		      "--"
      INPUT3		      "--"
      OUTPUT_SIZE	      "1"
      OUTPUT1		      "--"
      SampleTime	      "inf"
      InputType		      "[ ]"
      OutputType	      "[ ]"
      FctDeclaration	      "extern void sensorMCUInit();"
      FctCall		      "sensorMCUInit();"
      OrderingInOutPopup      "None"
      FctStart		      "None"
      FctStart_Name	      "Init_onlyOnce"
      FctStart_Declaration    "inline extern void Init_onlyOnce();"
      FctStart_Call	      "Init_onlyOnce();"
      FctInit		      "None"
      FctInit_Name	      "Init_Reset"
      FctInit_Declaration     "inline extern void Init_Reset();"
      FctInit_Call	      "Init_Reset();"
    }
    Block {
      BlockType		      Reference
      Name		      "Input Capture"
      Tag		      "dsPIC_PWM_IC"
      Ports		      [0, 5]
      Position		      [430, 493, 590, 667]
      BackgroundColor	      "lightBlue"
      Priority		      "5"
      SourceBlock	      "dsPICdrivers/Peripheral I//O/Input Capture"
      SourceType	      "Input driver for Input Capture Peripheral"
      IntPriority	      "6"
      Channel		      "[ 2 3 4 5 8]"
      Channel_UP_Down_Periode "[1  1  1  1  1]"
      MaxChannel	      "[0.0025      0.0025      0.0025      0.0025      0.0025]"
      SafeMarge		      "[10  10  10  10  10]"
      MaxName		      " ' IC2max , IC3max , IC4max , IC5max , IC8max ' "
      Precision		      "[13.7469      13.7469      13.7469      13.7469      13.7469]"
      Timer		      "[2  2  2  2  2]"
      ChangeDetected	      "[0  0  0  0  0]"
      ChangeDetectedPortRef   "3"
      SampleTime	      ".01"
      Status		      "OK"
    }
    Block {
      BlockType		      DiscreteTransferFcn
      Name		      "Low Pass Filter"
      Position		      [550, 52, 620, 88]
      Numerator		      "[.01478 .01478]"
      Denominator	      "[1 -.9704]"
      SampleTime	      ".01"
    }
    Block {
      BlockType		      Reference
      Name		      "Master"
      Tag		      "dsPIC_MASTER"
      Ports		      []
      Position		      [79, 130, 180, 187]
      BackgroundColor	      "lightBlue"
      Priority		      "1"
      List {
	ListType		RTWdata
	NumBusyPort		"-1"
      }
      SourceBlock	      "dsPICdrivers/Master"
      SourceType	      "Master"
      TimeStepType	      "Timer1"
      picType		      "33fJ256MC710"
      fcy		      "40000000"
      Quartz_33f	      "4e6"
      PLLActive_33f	      on
      fcyDesired_33f	      "40e6"
      tmr1		      "[8  49999  0]"
      tmr1Info		      "Time Step : 0.01  ;   Error : 0%  PR1=49999"
      tmr2345		      "[1  0  0  0  0  0  0  0]"
      tmr2345cfg	      "[-1 -1 -1 -1 -1 -1 -1 -1]"
      IOautoConf	      on
      typePort		      "[ 0   0  10   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   8   8   0   0   0   0   8   0   8   8   0   0   8   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   6   6   6   6   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   4   5   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0 ]"
      TRIS		      "[ 65531  65535  65535  65535  65535  65535  65535 ]"
      ADPCFG		      "0"
      MasterBusyPort	      "None"
      MasterOverloadPort      "None"
      FOSC		      "Quartz (XT - HS)"
      ClockSwitchMonitor      "Both disabled"
      TempProtection_33f      "TEMP_ON"
      FPBOR		      "<empty>"
      PWRT		      "64ms"
      MCLR		      "<empty>"
      ICD		      "ICS_PGD1"
      JTAGEN		      "JTAGEN_OFF"
      PowerSave		      off
      OverrideFcy	      off
      NewFcy		      "1e6"
      PR2345		      "[65535  65535  65535  65535  65535  65535  65535  65535]"
    }
    Block {
      BlockType		      Reference
      Name		      "Produce the GPS Main\nData and update the AP State\n(lat lon hei cog sog)\n[gps.c]"
      Tag		      "dsPIC_dsPIC_CFunctionCall"
      Ports		      [0, 1]
      Position		      [255, 397, 395, 443]
      BackgroundColor	      "orange"
      List {
	ListType		RTWdata
	isFctUpdate		"1"
	FctDeclaration		"extern void getGpsMainData(real32_T* y1);"
	FctCall			"getGpsMainData(*%y1);"
	fctName			"getGpsMainData"
	INPUT_SIZE		"1"
	OUTPUT_SIZE		"5"
	NBR_INPUT		"0"
	NBR_OUTPUT		"1"
	isFctStart		"0"
	FctStart_Declaration	"inline extern void Init_onlyOnce();"
	FctStart_Call		"Init_onlyOnce();"
	FctStart_Name		"Init_onlyOnce"
	isFctInit		"0"
	FctInit_Declaration	"inline extern void Init_Reset();"
	FctInit_Call		"Init_Reset();"
	FctInit_Name		"Init_Reset"
      }
      SourceBlock	      "dsPICdrivers/OTHERS/C Function Call"
      SourceType	      "C Function Call"
      FctUpdate		      "Output Function"
      fctName		      "'getGpsMainData'"
      INPUT_SIZE	      "1"
      INPUT1		      "--"
      INPUT2		      "--"
      INPUT3		      "--"
      OUTPUT_SIZE	      "5"
      OUTPUT1		      "real32"
      SampleTime	      ".01"
      InputType		      "[ ]"
      OutputType	      "[ 7 ]"
      FctDeclaration	      "extern void getGpsMainData(real32_T* y1);"
      FctCall		      "getGpsMainData(*%y1);"
      OrderingInOutPopup      "None"
      FctStart		      "None"
      FctStart_Name	      "Init_onlyOnce"
      FctStart_Declaration    "inline extern void Init_onlyOnce();"
      FctStart_Call	      "Init_onlyOnce();"
      FctInit		      "None"
      FctInit_Name	      "Init_Reset"
      FctInit_Declaration     "inline extern void Init_Reset();"
      FctInit_Call	      "Init_Reset();"
    }
    Block {
      BlockType		      Reference
      Name		      "TX Output Multiplexed\nfor Matlab / Labview"
      Tag		      "dsPIC_TX_Multiplexed"
      Ports		      [16]
      Position		      [900, 76, 1160, 649]
      Priority		      "5"
      SourceBlock	      "dsPICdrivers/Serial PORT/TX Output Multiplexed\nfor Matlab // Labview"
      SourceType	      "send structured data frame to Matlab / Labview"
      UART		      "2"
      CleverSpreadingChk      on
      CleverSpreading	      "1"
      CHANNEL		      "[0 1 2  3  4  5 6 7 8 9 10 11 12 13 14  15]"
      CHANNELBLOCKED	      "[]"
      CHANNELBLOCKED_BITEWISE "0"
      Status		      "OK"
    }
    Block {
      BlockType		      Reference
      Name		      "UART Configuration"
      Tag		      "dsPIC_config_UART"
      Ports		      []
      Position		      [75, 214, 182, 260]
      BackgroundColor	      "lightBlue"
      Priority		      "2"
      List {
	ListType		RTWdata
	RxBufferSize		"32"
	DoNotImplementRxInterrupt "0"
	DoNotImplementTxInterrupt "0"
      }
      SourceBlock	      "dsPICdrivers/Serial PORT/UART Configuration"
      SourceType	      "Configure UART"
      UART		      "2"
      proposed_BAUD	      "115200"
      BAUD		      "115200"
      ALT_TX_RX		      on
      InterruptTxWhen	      "When Transmit Buffer is empty"
      TXInterruptPri	      "1"
      TxBufferSize	      "32"
      TXEN		      on
      InterruptRxWhen	      "When Receive Buffer is full (contain 4 characters)"
      RXInterruptPri	      "1"
      RxBufferSize	      "32"
      DoNotImplementRxInterrupt	off
      DoNotImplementTxInterrupt	off
      UxBRG		      "21"
      Info		      "UxBRG = 21   ||  Real Baud : 113636   ||  % error : -1.3573  ||  max 113.6364 Bytes / Step"
      RealBaud		      "0"
      ERROR		      "-1.3573"
      BYTES_STEP	      "113.6364"
    }
    Block {
      BlockType		      Reference
      Name		      "dbl-click to open\nGraphical interface"
      Ports		      []
      Position		      [87, 285, 165, 318]
      BackgroundColor	      "cyan"
      SourceBlock	      "dsPICdrivers/Serial PORT/dbl-click to open\nGraphical interface"
      SourceType	      ""
      Nothing		      "0"
    }
    Line {
      SrcBlock		      "0.5Hz2"
      SrcPort		      1
      DstBlock		      "Data Type Conversion6"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Data Type Conversion6"
      SrcPort		      1
      Points		      [50, 0; 0, 5; 145, 0]
      DstBlock		      "Digital Output Write"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input2"
      SrcPort		      1
      DstBlock		      "Data Type Conversion1"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input3"
      SrcPort		      1
      DstBlock		      "Data Type Conversion3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input4"
      SrcPort		      1
      Points		      [300, 0; 0, 5]
      DstBlock		      "Data Type Conversion4"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input5"
      SrcPort		      1
      Points		      [180, 0; 0, -10]
      DstBlock		      "Data Type Conversion5"
      DstPort		      1
    }
    Line {
      SrcBlock		      "ADC Input6"
      SrcPort		      1
      Points		      [140, 0; 0, -40]
      DstBlock		      "Data Type Conversion7"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Produce the GPS Main\nData and update the AP State\n(lat lon hei cog sog)\n[gps.c]"
      SrcPort		      1
      Points		      [20, 0; 0, -5]
      DstBlock		      "Demux3"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux3"
      SrcPort		      1
      Points		      [265, 0]
      DstBlock		      "Data Type Conversion8"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux3"
      SrcPort		      2
      Points		      [205, 0; 0, -55]
      DstBlock		      "Data Type Conversion9"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux3"
      SrcPort		      3
      Points		      [195, 0; 0, -50]
      DstBlock		      "Data Type Conversion10"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux3"
      SrcPort		      4
      Points		      [185, 0; 0, -45]
      DstBlock		      "Data Type Conversion11"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Demux3"
      SrcPort		      5
      Points		      [175, 0; 0, -30]
      DstBlock		      "Data Type Conversion12"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Data Type Conversion2"
      SrcPort		      1
      Points		      [60, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Data Type Conversion1"
      SrcPort		      1
      Points		      [40, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      2
    }
    Line {
      SrcBlock		      "Data Type Conversion3"
      SrcPort		      1
      Points		      [30, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      3
    }
    Line {
      SrcBlock		      "Data Type Conversion4"
      SrcPort		      1
      Points		      [100, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      4
    }
    Line {
      SrcBlock		      "Data Type Conversion5"
      SrcPort		      1
      Points		      [90, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      5
    }
    Line {
      SrcBlock		      "Data Type Conversion7"
      SrcPort		      1
      Points		      [110, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      6
    }
    Line {
      SrcBlock		      "Data Type Conversion8"
      SrcPort		      1
      Points		      [70, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      7
    }
    Line {
      SrcBlock		      "Data Type Conversion9"
      SrcPort		      1
      Points		      [50, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      8
    }
    Line {
      SrcBlock		      "Data Type Conversion10"
      SrcPort		      1
      Points		      [65, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      9
    }
    Line {
      SrcBlock		      "Data Type Conversion11"
      SrcPort		      1
      Points		      [70, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      10
    }
    Line {
      SrcBlock		      "Data Type Conversion12"
      SrcPort		      1
      Points		      [55, 0]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      11
    }
    Line {
      SrcBlock		      "ADC Input1"
      SrcPort		      1
      DstBlock		      "Data Type Conversion"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Low Pass Filter"
      SrcPort		      1
      DstBlock		      "Embedded\nMATLAB Function"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Data Type Conversion"
      SrcPort		      1
      Points		      [50, 0]
      DstBlock		      "Low Pass Filter"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Embedded\nMATLAB Function"
      SrcPort		      1
      DstBlock		      "Data Type Conversion2"
      DstPort		      1
    }
    Line {
      SrcBlock		      "Input Capture"
      SrcPort		      1
      Points		      [150, 0; 0, -5; 70, 0; 0, -20]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      12
    }
    Line {
      SrcBlock		      "Input Capture"
      SrcPort		      2
      Points		      [145, 0; 0, -25]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      13
    }
    Line {
      SrcBlock		      "Input Capture"
      SrcPort		      3
      Points		      [200, 0; 0, -25]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      14
    }
    Line {
      SrcBlock		      "Input Capture"
      SrcPort		      4
      Points		      [145, 0; 0, -25]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      15
    }
    Line {
      SrcBlock		      "Input Capture"
      SrcPort		      5
      Points		      [145, 0; 0, -25]
      DstBlock		      "TX Output Multiplexed\nfor Matlab / Labview"
      DstPort		      16
    }
    Annotation {
      Name		      "Configure the Model for dsPIC Target (dbl click on the yellow block). \nThen, Compile using the incremental build icon \n(second icon on right of the simulation mode (Normal))"
      Position		      [387, 43]
    }
  }
}
# Finite State Machines
#
#    Stateflow Version 6.7 (R2007b) dated Aug  7 2007, 16:48:14
#
#


Stateflow {
  machine {
    id			    1
    name		    "UAV_SENSORS_IMU_GPS_PWM"
    created		    "22-May-2011 20:05:13"
    isLibrary		    0
    firstTarget		    9
    sfVersion		    67014000.000001
  }
  chart {
    id			    2
    name		    "Embedded\nMATLAB Function"
    windowPosition	    [311.813 324 200.25 189.75]
    viewLimits		    [0 156.75 0 153.75]
    screen		    [1 1 1280 800 1.333333333333333]
    treeNode		    [0 3 0 0]
    firstTransition	    5
    firstJunction	    4
    viewObj		    2
    machine		    1
    subviewS {
    }
    decomposition	    CLUSTER_CHART
    type		    EML_CHART
    firstData		    6
    chartFileNumber	    2
    disableImplicitCasting  1
    eml {
      name		      "fcn"
    }
  }
  state {
    id			    3
    labelString		    "eML_blk_kernel()"
    position		    [18 64.5 118 66]
    fontSize		    12
    chart		    2
    treeNode		    [2 0 0 0]
    superState		    SUBCHART
    subviewer		    2
    type		    FUNC_STATE
    decomposition	    CLUSTER_STATE
    eml {
      isEML		      1
      script		      "function y = fcn(u)\n% This block supports the Embedded MATLAB subset.\n% See the help menu for details. \nA=3.3/2^12;\ny = u*A;\nend"
      editorLayout	      "100 M4x1[146 214 671 364]"
    }
  }
  junction {
    id			    4
    position		    [23.5747 49.5747 7]
    chart		    2
    linkNode		    [2 0 0]
    subviewer		    2
    type		    CONNECTIVE_JUNCTION
  }
  transition {
    id			    5
    labelString		    "{eML_blk_kernel();}"
    labelPosition	    [32.125 19.875 102.544 14.964]
    fontSize		    12
    src {
      intersection	      [0 0 1 0 23.5747 14.625 0 0]
    }
    dst {
      id		      4
      intersection	      [7 0 -1 -1 23.5747 42.5747 0 0]
    }
    midPoint		    [23.5747 24.9468]
    chart		    2
    linkNode		    [2 0 0]
    dataLimits		    [23.575 23.575 14.625 34.575]
    subviewer		    2
    drawStyle		    SMART
    executionOrder	    1
  }
  data {
    id			    6
    name		    "u"
    linkNode		    [2 0 7]
    scope		    INPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
    }
    dataType		    "inherited"
    fixptType {
      slope		      1
      baseType		      SF_INT16_TYPE
    }
    complexity		    SF_COMPLEX_INHERITED
  }
  data {
    id			    7
    name		    "y"
    linkNode		    [2 6 0]
    scope		    OUTPUT_DATA
    machine		    1
    props {
      array {
	size			"-1"
      }
      type {
	method			SF_INHERITED_TYPE
      }
      complexity	      SF_COMPLEX_INHERITED
      frame		      SF_FRAME_NO
    }
    dataType		    "inherited"
    fixptType {
      slope		      1
      baseType		      SF_INT16_TYPE
    }
    complexity		    SF_COMPLEX_INHERITED
  }
  instance {
    id			    8
    name		    "Embedded\nMATLAB Function"
    machine		    1
    chart		    2
  }
  target {
    id			    9
    name		    "sfun"
    description		    "Default Simulink S-Function Target."
    machine		    1
    linkNode		    [1 0 10]
  }
  target {
    id			    10
    name		    "rtw"
    codeFlags		    " comments=1 statebitsets=1 databitsets=1 emitlogicalops=1 elseifdetection=1 constantfolding=1 redundantloadelimination=0 preservenames=0 preservenameswithparent=0 exportcharts=0"
    machine		    1
    linkNode		    [1 9 0]
  }
}
