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.

See Inputs and Outputs for details on signals and signal groups.

Dialog Box

FlightGear version

Select your FlightGear software version: v0.9.3, v0.9.8/0.9.8a, v0.9.9, v0.9.10, v1.0, v1.9.1, v2.0, v2.4, v2.6, v2.8, v2.10, v2.12, v3.0.

    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

Input Signals Supported for FlightGear 0.9.3

This table lists all the input signals supported for Version 0.9.3:

Signal Group 1: ShowPositionAttitudeInputs

NameUnitsTypeWidthDescription

l

rad

double

1

Geodetic longitude

μ

rad

double

1

Geodetic altitude

h

m

double

1

Altitude above sea level

Φ

rad

single

1

Roll

Θ

rad

single

1

Pitch

ψ

rad

single

1

Yaw or true heading

Signal Group 2: ShowVelocityAccelerationInputs

NameUnitsTypeWidthDescription

dΦ/dt

rad/sec

single

1

Roll rate

dΦ/dt

rad/sec

single

1

Pitch rate

dψ/dt

rad/sec

single

1

Yaw rate

vcas

kts

single

1

Calibrated airspeed

climb_rate

ft/sec

single

1

Climb rate

v_north

ft/sec

single

1

North velocity in local/body frame

v_east

ft/sec

single

1

East velocity in local/body frame

v_down

ft/sec

single

1

Down/vertical velocity in local/body frame

v_wind_body_north

ft/sec

single

1

Body north velocity relative to local airmass

v_wind_body_east

ft/sec

single

1

Body east velocity relative to local airmass

v_wind_body_down

ft/sec

single

1

Body down/vertical velocity relative to local airmass

stall_warning

single

1

0.0–1.0, indicating the amount of stall

A_X_pilot

ft/sec2

single

1

X acceleration in body frame

A_Y_pilot

ft/sec2

single

1

Y acceleration in body frame

A_Z_pilot

ft/sec2

single

1

Z acceleration in body frame

Signal Group 3: ShowControlSurfacePositionInputs

NameUnitsTypeWidthDescription

elevator

geometry-
specific units

single

1

Elevator position

flaps

geometry-
specific units

single

1

Flaps position

left_aileron

geometry-
specific units

single

1

Left aileron position

right_aileron

geometry-
specific units

single

1

Right aileron position

rudder

geometry-
specific units

single

1

Rudder position

speedbrake

geometry-
specific units

single

1

Speed brake position

spoilers

geometry-
specific units

single

1

Spoilers position

Signal Group 4: ShowEngineFuelInputs

NameUnitsTypeWidthDescription

num_engines

int32

1

Number of valid engines

eng_state

enum

int32

4

Engine state (0=off, 1=cranking, 2=running)

rpm

rev/min

single

4

Engine RPM

fuel_flow

gal/hr

single

4

Fuel flow

EGT

oF

single

4

Exhaust gas temp

oil_temp

oF

single

4

Oil temp

oil_px

lbf/in2

single

4

Oil pressure

num_tanks

int32

1

Max number of fuel tanks

fuel_quantity

single

4

Amount of fuel in tanks (0–1 fraction)

Signal Group 5: ShowLandingGearInputs

NameUnitsTypeWidthDescription

num_wheels

int32

1

Maximum number of wheels

wow

boolean

3

Weight on wheels signal (1=wheel is on ground)

gear_pos

single

3

Landing gear position (0-1, indicating amount deployed)

gear_steer

single

3

Landing gear steering angle

gear_compression

single

3

Landing gear compression

Signal Group 6: ShowEnvironmentInputs

NameUnitsTypeWidthDescription

agl

m

single

1

Above ground level

cur_time

sec

int32

1

Current UNIX® time

warp

sec

int32

1

Offset in seconds to UNIX time

visibility

m

single

1

Visibility in meters (for visual effects)

Input Signals Supported for FlightGear 0.9.8/0.9.8a

This table lists all the input signals supported for Versions 0.9.8/0.9.8a:

Signal Group 1: ShowPositionAttitudeInputs

NameUnitsTypeWidthDescription

l

rad

double

1

Geodetic longitude

μ

rad

double

1

Geodetic altitude

h

m

double

1

Altitude above sea level

Φ

rad

single

1

Roll

Θ

rad

single

1

Pitch

ψ

rad

single

1

Yaw or true heading

Signal Group 2: ShowVelocityAccelerationInputs

NameUnitsTypeWidthDescription

α

rad

single

1

Angle of attack

β

rad

single

1

sideslip angle

dΦ/dt

rad/sec

single

1

Roll rate

dΦ/dt

rad/sec

single

1

Pitch rate

dψ/dt

rad/sec

single

1

Yaw rate

vcas

kts

single

1

Calibrated airspeed

climb_rate

ft/sec

single

1

Climb rate

v_north

ft/sec

single

1

North velocity in local/body frame

v_east

ft/sec

single

1

East velocity in local/body frame

v_down

ft/sec

single

1

Down/vertical velocity in local/body frame

v_wind_body_north

ft/sec

single

1

Body north velocity relative to local airmass

v_wind_body_east

ft/sec

single

1

Body east velocity relative to local airmass

v_wind_body_down

ft/sec

single

1

Body down/vertical velocity relative to local airmass

A_X_pilot

ft/sec2

single

1

X acceleration in body frame

A_Y_pilot

ft/sec2

single

1

Y acceleration in body frame

A_Z_pilot

ft/sec2

single

1

Z acceleration in body frame

stall_warning

single

1

0.0–1.0, indicating the amount of stall

slip_deg

deg

single

1

Slip ball deflection

Signal Group 3: ShowControlSurfacePositionInputs

NameUnitsTypeWidthDescription

elevator

geometry-
specific units

single

1

Elevator position

elevator_trim_tab

geometry-
specific units

single

1

Elevator trim position

left_flap

geometry-
specific units

single

1

Left flap position

right_flap

geometry-
specific units

single

1

Right flap position

left_aileron

geometry-
specific units

single

1

Left aileron position

right_aileron

geometry-
specific units

single

1

Right aileron position

rudder

geometry-
specific units

single

1

Rudder position

nose_wheel

geometry-
specific units

single

1

Nose wheel position

speedbrake

geometry-
specific units

single

1

Speed brake position

spoilers

geometry-
specific units

single

1

Spoilers position

Signal Group 4: ShowEngineFuelInputs

NameUnitsTypeWidthDescription

num_engines

int32

1

Number of valid engines

eng_state

enum

int32

4

Engine state (0=off, 1=cranking, 2=running)

rpm

rev/min

single

4

Engine RPM

fuel_flow

gal/hr

single

4

Fuel flow

EGT

oF

single

4

Exhaust gas temp

cht

oF

single

4

Cylinder head temperature

mp_osi

psi

single

4

Manifold pressure

tit

oF

single

4

Turbine inlet temperature

oil_temp

oF

single

4

Oil temp

oil_px

lbf/in2

single

4

Oil pressure

num_tanks

int32

1

Max number of fuel tanks

fuel_quantity

single

4

Amount of fuel in tanks (0–1 fraction)

Signal Group 5: ShowLandingGearInputs

NameUnitsTypeWidthDescription

num_wheels

int32

1

Maximum number of wheels

wow

boolean

3

Weight on wheels signal (1=wheel is on ground)

gear_pos

single

3

Landing gear position (0–1, indicating amount deployed)

gear_steer

single

3

Landing gear steering angle

gear_compression

single

3

Landing gear compression

Signal Group 6: ShowEnvironmentInputs

NameUnitsTypeWidthDescription

agl

m

single

1

Above ground level

cur_time

sec

int32

1

Current UNIX time

warp

sec

int32

1

Offset in seconds to UNIX time

visibility

m

single

1

Visibility in meters (for visual effects)

Input Signals Supported for FlightGear 0.9.9

This table lists all the input signals supported for Version 0.9.9:

Signal Group 1: ShowPositionAttitudeInputs

NameUnitsTypeWidthDescription

l

rad

double

1

Geodetic longitude

μ

rad

double

1

Geodetic latitude

h

m

double

1

Altitude above sea level

Φ

rad

single

1

Roll

Θ

rad

single

1

Pitch

ψ

rad

single

1

Yaw or true heading

Signal Group 2: ShowVelocityAccelerationInputs

NameUnitsTypeWidthDescription

α

rad

single

1

Angle of attack

β

rad

single

1

sideslip angle

dΦ/dt

rad/sec

single

1

Roll rate

dΦ/dt

rad/sec

single

1

Pitch rate

dψ/dt

rad/sec

single

1

Yaw rate

vcas

kts

single

1

Calibrated airspeed

climb_rate

ft/sec

single

1

Climb rate

v_north

ft/sec

single

1

North velocity in local/body frame

v_east

ft/sec

single

1

East velocity in local/body frame

v_down

ft/sec

single

1

Down/vertical velocity in local/body frame

v_wind_body_north

ft/sec

single

1

Body north velocity relative to local airmass

v_wind_body_east

ft/sec

single

1

Body east velocity relative to local airmass

v_wind_body_down

ft/sec

single

1

Body down/vertical velocity relative to local airmass

A_X_pilot

ft/sec2

single

1

X acceleration in body frame

A_Y_pilot

ft/sec2

single

1

Y acceleration in body frame

A_Z_pilot

ft/sec2

single

1

Z acceleration in body frame

stall_warning

single

1

0.0–1.0, indicating the amount of stall

slip_deg

deg

single

1

Slip ball deflection

Signal Group 3: ShowControlSurfacePositionInputs

NameUnitsTypeWidthDescription

elevator

geometry-
specific units

single

1

Elevator position

elevator_trim_tab

geometry-
specific units

single

1

Elevator trim position

left_flap

geometry-
specific units

single

1

Left flap position

right_flap

geometry-
specific units

single

1

Right flap position

left_aileron

geometry-
specific units

single

1

Left aileron position

right_aileron

geometry-
specific units

single

1

Right aileron position

rudder

geometry-
specific units

single

1

Rudder position

nose_wheel

geometry-
specific units

single

1

Nose wheel position

speedbrake

geometry-
specific units

single

1

Speed brake position

spoilers

geometry-
specific units

single

1

Spoilers position

Signal Group 4: ShowEngineFuelInputs

NameUnitsTypeWidthDescription

num_engines

uint32

1

Number of valid engines

eng_state

enum

uint32

4

Engine state (0=off, 1=cranking, 2=running)

rpm

rev/min

single

4

Engine RPM

fuel_flow

gal/hr

single

4

Fuel flow

EGT

oF

single

4

Exhaust gas temp

cht

oF

single

4

Cylinder head temperature

mp_osi

psi

single

4

Manifold pressure

tit

oF

single

4

Turbine inlet temperature

oil_temp

oF

single

4

Oil temp

oil_px

lbf/in2

single

4

Oil pressure

num_tanks

uint32

1

Max number of fuel tanks

fuel_quantity

single

4

Amount of fuel in tanks (0–1 fraction)

Signal Group 5: ShowLandingGearInputs

NameUnitsTypeWidthDescription

num_wheels

uint32

1

Maximum number of wheels

wow

uint32

3

Weight on wheels signal (1=wheel is on ground)

gear_pos

single

3

Landing gear position (0-1, indicating amount deployed)

gear_steer

single

3

Landing gear steering angle

gear_compression

single

3

Landing gear compression

Signal Group 6: ShowEnvironmentInputs

NameUnitsTypeWidthDescription

agl

m

single

1

Above ground level

cur_time

sec

uint32

1

Current UNIX time

warp

sec

int32

1

Offset in seconds to UNIX time

visibility

m

single

1

Visibility in meters (for visual effects)

Input Signals Supported for FlightGear 0.9.10/1.0/1.9.1/2.0/2.4/2.6/2.8/2.10/2.12/3.0

This table lists all the input signals supported for Version 0.9.10, 1.0, 1.9.1, 2.0, 2.4, 2.6, 2.8, 2.10, 2.12, and 3.0:

Signal Group 1: ShowPositionAttitudeInputs

NameUnitsTypeWidthDescription

l

rad

double

1

Geodetic longitude

μ

rad

double

1

Geodetic latitude

h

m

double

1

Altitude above sea level

Φ

rad

single

1

Roll

Θ

rad

single

1

Pitch

ψ

rad

single

1

Yaw or true heading

Signal Group 2: ShowVelocityAccelerationInputs

NameUnitsTypeWidthDescription

α

rad

single

1

Angle of attack

β

rad

single

1

sideslip angle

dΦ/dt

rad/sec

single

1

Roll rate

dΦ/dt

rad/sec

single

1

Pitch rate

dψ/dt

rad/sec

single

1

Yaw rate

vcas

kts

single

1

Calibrated airspeed

climb_rate

ft/sec

single

1

Climb rate

v_north

ft/sec

single

1

North velocity in local/body frame

v_east

ft/sec

single

1

East velocity in local/body frame

v_down

ft/sec

single

1

Down/vertical velocity in local/body frame

v_wind_body_north

ft/sec

single

1

Body north velocity relative to local airmass

v_wind_body_east

ft/sec

single

1

Body east velocity relative to local airmass

v_wind_body_down

ft/sec

single

1

Body down/vertical velocity relative to local airmass

A_X_pilot

ft/sec2

single

1

X acceleration in body frame

A_Y_pilot

ft/sec2

single

1

Y acceleration in body frame

A_Z_pilot

ft/sec2

single

1

Z acceleration in body frame

stall_warning

single

1

0.0–1.0, indicating the amount of stall

slip_deg

deg

single

1

Slip ball deflection

Signal Group 3: ShowControlSurfacePositionInputs

NameUnitsTypeWidthDescription

elevator

geometry-
specific units

single

1

Elevator position

elevator_trim_tab

geometry-
specific units

single

1

Elevator trim position

left_flap

geometry-
specific units

single

1

Left flap position

right_flap

geometry-
specific units

single

1

Right flap position

left_aileron

geometry-
specific units

single

1

Left aileron position

right_aileron

geometry-
specific units

single

1

Right aileron position

rudder

geometry-
specific units

single

1

Rudder position

nose_wheel

geometry-
specific units

single

1

Nose wheel position

speedbrake

geometry-
specific units

single

1

Speed brake position

spoilers

geometry-
specific units

single

1

Spoilers position

Signal Group 4: ShowEngineFuelInputs

NameUnitsTypeWidthDescription

num_engines

uint32

1

Number of valid engines

eng_state

enum

uint32

4

Engine state (0=off, 1=cranking, 2=running)

rpm

rev/min

single

4

Engine RPM

fuel_flow

gal/hr

single

4

Fuel flow

fuel_px

psi

single

4

Fuel pressure

EGT

oF

single

4

Exhaust gas temp

cht

oF

single

4

Cylinder head temperature

mp_osi

psi

single

4

Manifold pressure

tit

oF

single

4

Turbine inlet temperature

oil_temp

oF

single

4

Oil temp

oil_px

lbf/in2

single

4

Oil pressure

num_tanks

uint32

1

Max number of fuel tanks

fuel_quantity

single

4

Amount of fuel in tanks (0–1 fraction)

Signal Group 5: ShowLandingGearInputs

NameUnitsTypeWidthDescription

num_wheels

uint32

1

Maximum number of wheels

wow

uint32

3

Weight on wheels signal (1=wheel is on ground)

gear_pos

single

3

Landing gear position (0–1, indicating amount deployed)

gear_steer

single

3

Landing gear steering angle

gear_compression

single

3

Landing gear compression

Signal Group 6: ShowEnvironmentInputs

NameUnitsTypeWidthDescription

agl

m

single

1

Above ground level

cur_time

sec

uint32

1

Current UNIX time

warp

sec

int32

1

Offset in seconds to UNIX time

visibility

m

single

1

Visibility in meters (for visual effects)

Output Signal

The output signal is the FlightGear net_fdm data packet.

Examples

See asbhl20asbhl20 for an example of this block.

Was this topic helpful?