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

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

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

leftEngRPM.channelNumber=12;leftEngRPM.minV=110;leftEngRPM.maxV=10;rightEngRPM.channelNumber=13;rightEngRPM.minV=10;rightEngRPM.maxV=110;verspeedIndicator.channelNumber=15;verspeedIndicator.minV=-sqrt(6000);verspeedIndicator.maxV=sqrt(6000);/***** DACChannel 12 bit channels *****/yawForceOut.channelNumber=11;yawForceOut.minV=-1;yawForceOut.maxV=1;rollForceOut.channelNumber=12;rollForceOut.minV=-1;rollForceOut.maxV=1;pitchForceOut.channelNumber=13;pitchForceOut.minV=-1;pitchForceOut.maxV=1;errorChecking=1;DACCardInit(&d16);DACCardInit(&d12);DACChannelInit(&altimeter,&d16);DACChannelInit(&pitch8Ball,&d16);DACChannelInit(&roll8Ball,&d16);DACChannelInit(&yaw8Ball,&d16);DACChannelInit(&rudderBall,&d16);DACChannelInit(&airspeed,&d16);DACChannelInit(&dirGyro,&d16);DACChannelInit(&gMeter,&d16);DACChannelInit(&aoaIndicator,&d16);DACChannelInit(&sideslip<strong>An</strong>gle,&d16);DACChannelInit(&leftEngRPM,&d16);DACChannelInit(&rightEngRPM,&d16);DACChannelInit(&verspeedIndicator,&d16);DACChannelInit(&yawForceOut,&d12);DACChannelInit(&rollForceOut,&d12);DACChannelInit(&pitchForceOut,&d12);}#endif /* MDL_START *//* Function: mdlOutputs =======================================================* Abstract:* y = 2*u*/static void mdlOutputs(SimStruct *S, int_T tid){127

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

Saved successfully!

Ooh no, something went wrong!