Simulink UCGN Hello World

From UcgnWiki

Jump to: navigation, search
Line 73: Line 73:
And a section from the source file '''TST_HelloWorldModel.c''':
And a section from the source file '''TST_HelloWorldModel.c''':
-
<pre>
+
<source lang="c">
   /*
   /*
       (RelationalOperator) TST_HelloWorldModel.TST_HelloWorldModel.LowAltitude
       (RelationalOperator) TST_HelloWorldModel.TST_HelloWorldModel.LowAltitude
Line 106: Line 106:
   } /* end of else */
   } /* end of else */
-
 
+
</source>
-
</pre>
+
This is the type definition resulting from the bus object FCS_FlightControlSystem_Status
This is the type definition resulting from the bus object FCS_FlightControlSystem_Status
-
<pre>
+
<source lang="c">
typedef struct FCS_FlightControlSystem_StatusStructuredTypeTag {
typedef struct FCS_FlightControlSystem_StatusStructuredTypeTag {
Line 121: Line 120:
} FCS_FlightControlSystem_StatusStructuredType;
} FCS_FlightControlSystem_StatusStructuredType;
-
</pre>
+
</source>
The (emulated) enumerated type definition in GBL_Definitions looks like this
The (emulated) enumerated type definition in GBL_Definitions looks like this
-
<pre>
+
<source lang="c">
typedef enum GBL_Definitions_EjectionCmdEnumeratedTypeTag {
typedef enum GBL_Definitions_EjectionCmdEnumeratedTypeTag {
Line 133: Line 132:
} GBL_Definitions_EjectionCmdEnumeratedType;
} GBL_Definitions_EjectionCmdEnumeratedType;
-
</pre>
+
</source>

Revision as of 20:28, 22 June 2010

Personal tools