FCS Connection Block

Description:

This block connects a Simulink flight control simulation (FCS) simulation to AVDS through shared memory. User inputs, vehicle outputs and elapsed time are collected from AVDS and sent through shared memory to this block. Simulink calculates the FCS outputs based on the inputs and sends them back through shared memory to AVDS for display. This block uses the S-function "AVDSSimulation" to connect to AVDS.

Inputs:

The signals that are input to this block are sent to the "MATLAB_FCS" user defined simulation block in AVDS. There is one input port that contains 14 signals.

Input Signal

Input Name

Input Definition

1.

ElevatorCmd

The elevator command from the Simulink FCS.

2.

AileronCmd

The aileron command from the Simulink FCS.

3.

RudderCmd

The rudder command from the Simulink FCS.

5.

ThrottleCmd

The throttle command from the Simulink FCS.

4.

ElapsedTime

The elapsed simulation time based on the computer’s clock. This should be very close to real-time.

5. - 14.

ToAVDS01 - ToAVDS10

These are generic signals to AVDS for user definition.

Outputs:

The signals that are output from this block are sent from the "MATLAB_FCS" user defined simulation block in AVDS. There is one input port that contains 19 signals. Note: the definitions in this table are for the default use of these signals in AVDS. The user can change the meaning of these signals by changing the simulation configuration in AVDS.

Output Signal

Output Name

Output Definition

1.

Alive

A flag sent from AVDS to indicate if AVDS is running the simulation. When the simulation is running this flag is set to 1. Otherwise it is set to 0.

2. - 5.

StickPitch, StickRoll. StickYaw, StickThrottle

User inputs from the input device, i.e. joystick, mouse, keyboard. These inputs are in the range [-1.0,1.0].

6. – 8.

P, Q, R

The vehicle’s angular rates about the x, y and z body axes, respectively. These values are in radians.

9.

ElapsedTime

The elapsed simulation time based on the computer’s clock. This should be very close to real-time.

9. - 19.

ToMATLAB01 - ToMATLAB10

These are generic signals for user definition.

Parameters:

None.

Examples:

The FCS Connection block is used in the example:

"MATLABToolbox\Examples\SimulationExample\ExampleFCS.mdl".