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.

ollTrimPos.cNumber = 10;rollTrimPos.minV = -1.0;rollTrimPos.maxV = 1.0;rollVelocity.cNumber = 11;rollVelocity.minV = -1.0;rollVelocity.maxV = 1.0;rudderPos.cNumber = 12;rudderPos.minV = -1.0;rudderPos.maxV = 1.0;rudderForce.cNumber = 13;rudderForce.minV = 1.0;rudderForce.maxV = 1.0;rudderTrimPos.cNumber = 14;rudderTrimPos.minV = -1.0;rudderTrimPos.maxV = 1.0;rudderVelocity.cNumber = 15;rudderVelocity.minV = -1.0;rudderVelocity.maxV = 1.0;/* Set up <strong>for</strong> the card and the channels */PCLabCardInit(&aToD12);ADCChannelInit(&pitchPos, &aToD12);ADCChannelInit(&pitchForce, &aToD12);ADCChannelInit(&pitchTrimDef, &aToD12);ADCChannelInit(&pitchTrimPos, &aToD12);ADCChannelInit(&pitchVelocity, &aToD12);ADCChannelInit(&rollPos, &aToD12);ADCChannelInit(&rollForce, &aToD12);ADCChannelInit(&rollTrimDef, &aToD12);ADCChannelInit(&rollTrimPos, &aToD12);ADCChannelInit(&rollVelocity, &aToD12);ADCChannelInit(&rudderPos, &aToD12);ADCChannelInit(&rudderForce, &aToD12);ADCChannelInit(&rudderTrimPos, &aToD12);ADCChannelInit(&rudderVelocity, &aToD12);ADCChannelInit(&rThrottle, &aToD12);ADCChannelInit(&lThrottle, &aToD12);}#endif /* MDL_START */#define MDL_INITIALIZE_CONDITIONS /* Change to #undef to remove function */#if defined(MDL_INITIALIZE_CONDITIONS)/* Function: mdlInitializeConditions ========================================* Abstract:* Initialize the state. Note, that if this S-function is placed119

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

Saved successfully!

Ooh no, something went wrong!