Simulink UCGN Hello World
From UcgnWiki
Line 73: | Line 73: | ||
And a section from the source file '''TST_HelloWorldModel.c''': | And a section from the source file '''TST_HelloWorldModel.c''': | ||
- | < | + | <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> | |
- | </ | + | |
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 | ||
- | < | + | <source lang="c"> |
typedef struct FCS_FlightControlSystem_StatusStructuredTypeTag { | typedef struct FCS_FlightControlSystem_StatusStructuredTypeTag { | ||
Line 121: | Line 120: | ||
} FCS_FlightControlSystem_StatusStructuredType; | } FCS_FlightControlSystem_StatusStructuredType; | ||
- | </ | + | </source> |
The (emulated) enumerated type definition in GBL_Definitions looks like this | The (emulated) enumerated type definition in GBL_Definitions looks like this | ||
- | < | + | <source lang="c"> |
typedef enum GBL_Definitions_EjectionCmdEnumeratedTypeTag { | typedef enum GBL_Definitions_EjectionCmdEnumeratedTypeTag { | ||
Line 133: | Line 132: | ||
} GBL_Definitions_EjectionCmdEnumeratedType; | } GBL_Definitions_EjectionCmdEnumeratedType; | ||
- | </ | + | </source> |