12.07.2015 Views

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

Developement Of An Instrument Landing Simulation ... - Cal Poly

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

* Initialize the state. Note, that if this S-function is placed* with in an enabled subsystem which is configured to reset states,* this routine will be called during the reset of the states.*/static void mdlInitializeConditions(SimStruct *S){}#endif /* MDL_INITIALIZE_CONDITIONS *//* Function: mdlOutputs===========================================* Abstract:* simply passes states y[n] = x[n]*/static void mdlOutputs(SimStruct *S, int_T tid){InputRealPtrsType uPtrs = ssGetInputPortRealSignalPtrs(S,0);real_T*y = ssGetOutputPortRealSignal(S,0);//read in inputsLThrottle=*uPtrs[0];RThrottle=*uPtrs[1];if ((oldVals[0]-LThrottle)>0)LTauDN = 1; //.25 second time delay on spool down80

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!