Download An Integrated, Modular Simulation System for Education and
Transcript
12 13 14 15 0 1 2 3 4 5 5 7 8 9 10 11 12 13 left engine rpm right engine rpm vertical speed indicator vertical speed indicator 12 bit channels right nozzel left nozzel internal pressure course deviation indicator cd horizontal indicator cd vertical indicator right engine temp left engine temp left fuel right fuel ptotal stick pitch force stick roll force pedal yaw force 10 110 10 110 0 60,000 0 6,000 0 100 0 100 1 12 +-1 +-1 +-1 200 1,400 200 1,400 0 100 0 100 0 7,000 +-1 +-1 +-1 percent rpm percent rpm feet feet/min psi deg deg percent percent psi not calibrated not calibrated not calibrated Input - A to D The same changes to the c++ code were made to the stick, pedal and throttle A/D functions. The function sets the gain and offset so that the input to the model is normalized to +-1. Stick The stick was tested by connecting the stick block to a numerical output block and scope to view the numerical and dynamic output from the stick block. The stick output units were normalized to allow any commanded units to be set from the Simulink diagram. Note that some of the ranges have reversed signs from the rest of the outputs and the throttles are normalized to between 0 and 1. This has no effect on the output from the S-Function as the output is a single numerical value per time step. Table 9 shows the inputs that are available from the stick through the stick computer: 45