13.07.2015 Views

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

An Integrated, Modular Simulation System for Education ... - Cal Poly

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

struct DACChannelaltimeter,pitch8Ball,roll8Ball,yaw8Ball,rudderBall,airspeed,dirGyro,gMeter,vertDevPoint,aoaIndicator,machIndicator,airspeed,sideslip<strong>An</strong>gle,leftEngRPM,rightEngRPM,verspeedIndicator,rightNozz,leftNozz,internalPress,courseDirIndicator,cdHorIndicator,cdVerIndicator,leftEngTemp,rightEngTemp,leftEngFuel,rightEngFuel,pTotGauge,yawForceOut,rollForceOut,pitchForceOut;/* Function: mdlInitializeSizes ===============================================* Abstract:* Setup sizes of the various vectors.*/static void mdlInitializeSizes(SimStruct *S){ssSetNumSFcnParams(S, 0);if (ssGetNumSFcnParams(S) != ssGetSFcnParamsCount(S)) {return; /* Parameter mismatch will be reported by Simulink */}if (!ssSetNumInputPorts(S, 1)) return;ssSetInputPortWidth(S, 0, 29);ssSetInputPortDirectFeedThrough(S, 0, 1);if (!ssSetNumOutputPorts(S,0)) return;/* ssSetOutputPortWidth(S, 0, 1); */ssSetNumSampleTimes(S, 1);}/* Take care when specifying exception free code - see sfuntmpl.doc */ssSetOptions(S, SS_OPTION_EXCEPTION_FREE_CODE);107

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

Saved successfully!

Ooh no, something went wrong!