Simulink UCGN Hello World
From UcgnWiki
(→Generated source code) |
|||
Line 68: | Line 68: | ||
TST_HelloWorldModel_Calculate(FCS_FlightControlSystem_StatusStructuredType *FcsStatus, /* Input */ | TST_HelloWorldModel_Calculate(FCS_FlightControlSystem_StatusStructuredType *FcsStatus, /* Input */ | ||
GBL_Types_Double TerrainElevationM, /* Input */ | GBL_Types_Double TerrainElevationM, /* Input */ | ||
- | + | GBL_Definitions_EjectionCmdEnumeratedType *PilotRecommendation); /* Output */ | |
</source> | </source> | ||
Line 99: | Line 99: | ||
if (FcsStatus->InAir && (FcsStatus->LeftEngFailed || FcsStatus->RightEngFailed) && LowAltitude) { | if (FcsStatus->InAir && (FcsStatus->LeftEngFailed || FcsStatus->RightEngFailed) && LowAltitude) { | ||
- | *(PilotRecommendation) = | + | *(PilotRecommendation) = GBL_Definitions_EjectionCmd_EjectAsap; |
} /* end of if */ | } /* end of if */ | ||
else { | else { | ||
- | *(PilotRecommendation) = | + | *(PilotRecommendation) = GBL_Definitions_EjectionCmd_DontEject; |
} /* end of else */ | } /* end of else */ |