Documentation

Pack net_fdm Packet for FlightGear

Generate net_fdm packet for FlightGear

Library

Animation/Flight Simulator Interfaces

Description

The Pack net_fdm Packet for FlightGear block creates, from separate inputs, a FlightGear net_fdm data packet compatible with a particular version of FlightGear flight simulator. All the signals supported by the FlightGear net_fdm data packet are supported by this block. The signals are arranged into six groups. Any group can be turned on or off. Zeros are inserted for packet values that are part of inactive signal groups.

Parameters

FlightGear version

Select your FlightGear software version: v2.0, v2.4, v2.6, v2.8, v2.10, v2.12, v3.0, v3.2, v3.4, v2016.1, v2016.3, v2017.1.

Note

If you are using a FlightGear version older than 2.0, the model displays a notification from the Simulink® Upgrade Advisor. Consider using the Upgrade Advisor to upgrade your FlightGear version. For more information, see Supported FlightGear Versions.

Show position/altitude inputs

Select this check box to include the position and altitude inputs (signal group 1) into the FlightGear net_fdm data packet.

Show velocity/acceleration inputs

Select this check box to include the velocity and acceleration inputs (signal group 2) into the FlightGear net_fdm data packet.

Show control surface position inputs

Select this check box to include the control surface position inputs (signal group 3) into the FlightGear net_fdm data packet.

Show engine/fuel inputs

Select this check box to include the engine and fuel inputs (signal group 4) into the FlightGear net_fdm data packet.

Show landing gear inputs

Select this check box to include the landing gear inputs (signal group 5) into the FlightGear net_fdm data packet.

Show environment inputs

Select this check box to include the environment inputs (signal group 6) into the FlightGear net_fdm data packet.

Sample time

Specify the sample time (-1 for inherited).

Inputs and Outputs

Output Signal Supported for FlightGear 2.0/2.4/2.6/2.8/2.10/2.12/3.0/3.2/3.4/2016.1/2016.3/2017.1

OutputDimension TypeDescription

First

Array

Contains the packet generated for FlightGear.

Input Signals Supported for FlightGear 2.0/2.4/2.6/2.8/2.10/2.12/3.0/3.2/3.4/2016.1/2016.3/2017.1

This table lists all the input signals supported for Versions 2.0, 2.4, 2.6, 2.8, 2.10, 2.12, 3.0, 3.2, 3.4, 2016.1, 2016.3, 2017.1:

Signal Group 1: Position/altitude inputs

NameUnitsTypeWidthDescription

longitude

rad

double

1

Geodetic longitude.

latitude

rad

double

1

Geodetic latitude.

altitude

m

double

1

Altitude above sea level.

theta

rad

single

1

Pitch.

phi

rad

single

1

Roll.

psi

rad

single

1

Yaw.

Signal Group 2: Velocity/acceleration inputs

NameUnitsTypeWidthDescription

alpha

rad

single

1

Angle of Attack.

beta

rad

single

1

Sideslip angle.

dphi/dt

rad/sec

single

1

Roll rate.

dtheta/dt

rad/sec

single

1

Pitch rate.

dpsi/dt

rad/sec

single

1

Yaw rate.

Vcas

knot

single

1

Calibrated airspeed.

climb_rate

feet/sec

single

1

Rate of climb.

v_north

feet/sec

single

1

North velocity in body frame.

v_east

feet/sec

single

1

East velocity in body frame.

v_down

feet/sec

single

1

Down velocity.

v_wind_body_north

feet/sec

single

1

North velocity in body frame relative to local airmass.

v_wind_body_east

feet/sec

single

1

East velocity in body frame relative to local airmass.

v_wind_body_down

feet/sec

single

1

Down velocity in body frame relative to airmass.

Axpilot

feet/sec2

single

1

X acceleration in body frame.

Aypilot

feet/sec2

single

1

Y acceleration in body frame.

Azpilot

feet/sec2

single

1

Z acceleration in body frame.

stall_warning

single

1

Amount of stall [0-1].

slip_deg

deb

single

1

Slip ball deflection.

Signal Group 3: Control surface position inputs

NameUnitsTypeWidthDescription

elevator

1 (dimensionless)

single

1

Normalized elevator position.

elevator_trim_tab

1 (dimensionless)

single

1

Normalized elevator trim tab position.

left_flap

1 (dimensionless)

single

1

Normalized left flap position.

right_flap

1 (dimensionless)

single

1

Normalized right flap position.

left_aileron

1 (dimensionless)

single

1

Normalized left aileron position.

right_aileron

1 (dimensionless)

single

1

Normalized right aileron position

rudder

1 (dimensionless)

single

1

Normalized rudder position.

nose_wheel

1 (dimensionless)

single

1

Normalized nose wheel position.

speedbrake

1 (dimensionless)

single

1

Normalized speedbrake position.

spoilers

1 (dimensionless)

single

1

Normalized spoilers position.

Signal Group 4: Engine/fuel inputs

NameUnitsTypeWidthDescription

num_engines

uint32

1

Number of engines.

eng_state

uint32

4

Engine state (off, cranking, running).

rpm

rev/min

single

4

Engine RPM.

fuel_flow

gal/hour

single

4

Fuel flow.

fuel_px

psi

single

4

Fuel pressure.

egt

deg F

single

4

Exhaust gas temperature.

cht

deg F

single

4

Cylinder head temperature.

mp_osi

psi

single

4

Manifold pressure.

tit

deg F

single

4

Turbine inlet temperature.

oil_temp

deg F

single

4

Oil temperature.

oil_px

psi

single

4

Oil pressure.

num_tanks

uint32

1

Number of fuel tanks.

fuel_quantity

gal

single

4

Fuel quantity per tank.

Signal Group 5: Landing gear inputs

NameUnitsTypeWidthDescription

num_wheels

uint32

1

Number of wheels.

wow

uint32

3

Weight on wheels switch.

gear_pos

single

3

Landing gear normalized position.

gear_steer

single

3

Landing gear normalized steering.

gear_compression

single

3

Landing gear normalized compression.

Signal Group 6: Environment inputs

NameUnitsTypeWidthDescription

agl

m

single

1

Above ground level.

cur_time

sec

uint32

1

Current UNIX® time.

warp

sec

uint32

1

Offset in seconds to UNIX time.

visibility

m

single

1

Visibility in meters (for visual effects).

Examples

See asbhl20 for an example of this block.

Introduced before R2006a

Was this topic helpful?