Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Unpack net_ctrl Packet from FlightGear

Unpack net_ctrl variable packet received from FlightGear

Library

Animation/Flight Simulator Interfaces

Description

The Unpack net_ctrl Packet from FlightGear block unpacks net_ctrl variable packets received from FlightGear and makes them available for the Simulink® environment.

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.

    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 control surface position outputs

Select this check box to include the control surface position outputs (signal group 1) from the FlightGear net_ctrl data packet.

Show engine/fuel outputs

Select this check box to include the engine and fuel outputs (signal group 2) from the FlightGear net_ctrl data packet.

Show landing gear outputs

Select this check box to include the landing gear outputs (signal group 3) from the FlightGear net_ctrl data packet.

Show avionic outputs

Select this check box to include the avionic outputs (signal group 4) from the FlightGear net_ctrl data packet.

Show environment outputs

Select this check box to include the environment outputs (signal group 5) from the FlightGear net_ctrl data packet.

Sample time

Specify the sample time (-1 for inherited).

Inputs and Outputs

Input 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

InputDimension TypeDescription

First

Array

Contains the packet to be unpacked.

Output 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

This table lists all the output 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:

Signal Group 1: Control surface position outputs

NameUnitsTypeWidthDescription

aileron

1 (dimensionless)

double

1

Normalized aileron position [-1,1].

elevator

1 (dimensionless)

double

1

Normalized elevator position [-1,1].

rudder

1 (dimensionless)

double

1

Normalized rudder position [-1,1].

aileron_trim

1 (dimensionless)

double

1

Normalized aileron trim position [-1,1].

elevator_trim

1 (dimensionless)

double

1

Normalized elevator trim position [-1,1].

rudder_trim

1 (dimensionless)

double

1

Normalized rudder trim position [-1,1].

flaps

1 (dimensionless)

double

1

Normalized flaps position [-0,1].

spoilers

1 (dimensionless)

double

1

Normalized spoilers position [0,1].

speedbrake

1 (dimensionless)

double

1

Normalized speedbrake position [0,1].

flaps_power

1 (dimensionless)

uint32

1

Power for flaps (1 = power available).

flap_motor_ok

uint32

1

Flap motor powered.

Signal Group 2: Engine/fuel outputs

NameUnitsTypeWidthDescription

num_engines

uint32

1

Number of valid engines.

master_bat

uint32

4

Master battery switch.

master_alt

uint32

4

Master alternator switch.

magnetos

uint32

4

Magnetos switch.

starter_power

uint32

4

Power to starter motor (1 = starter power available).

throttle

1 (dimensionless)

double

4

Normalized throttle position [0,1].

mixture

1 (dimensionless)

double

4

Normalized mixture lever position [0,1].

condition

1 (dimensionless)

double

4

Normalized condition [0,1].

fuel_pump_power

uint32

4

Power to fuel pump 1 = on).

prop_advance

1 (dimensionless)

double

4

Propeller advance [0,1].

feed_tank_to

uint32

4

Feed tank to switch.

reverse

uint32

4

Reverse switch.

engine_ok

uint32

4

Engine status indicator.

mag_left_ok

uint32

4

Left magneto status indicator.

mag_right_ok

uint32

4

Right magneto status indicator.

spark_plugs_ok

uint32

4

Spark plugs status indicator (0 = failed plugs).

oil_press_status

uint32

4

Oil pressure status indicator (0 = normal, 1 = low, 2 = full failure).

fuel_pump_ok

uint32

4

Fuel management status indicator.

num_tanks

uint32

1

Number of valid tanks.

fuel_selector

uint32

8

Fuel selector. (0 = off, 1 = on).

xfer_pump

uint32

5

Specifies transfer from array value to tank specified by value.

cross_feed

uint32

1

Cross feed valve (0 = false, 1 = on).

Signal Group 3: Landing gear outputs

NameUnitsTypeWidthDescription

brake_left

double

1

Left brake pedal position pilot.

brake_right

double

1

Right brake pedal position pilot.

copilot_brake_left

double

1

Left brake pedal position copilot.

copilot_brake_right

double

1

Right brake pedal position copilot.

brake_parking

double

1

Brake parking position.

gear_handle

uint32

1

Gear handle position (1 = gear handle down, 0 = gear handle up).

Signal Group 4: Avionics outputs

NameUnitsTypeWidthDescription

master_avionics

uint32

1

Master avionics switch.

comm_1

Hz

double

1

Comm 1 frequency.

comm_2

Hz

double

1

Comm 2 frequency.

nav_1

Hz

double

1

Nav 1 frequency.

nav_2

Hz

double

1

Nav 2 frequency.

Signal Group 5: Environment outputs

NameUnitsTypeWidthDescription

wind_speed_kt

knot

double

1

Wind speed.

wind_dir_deg

deg

double

1

Wind direction.

turbulence_norm

double

1

Turbulence norm.

temp_c

deg C

double

1

Ambient temperature.

press_inhg

inHg

double

1

Ambient pressure.

hground

m

double

1

Ground elevation.

magvar

deg

double

1

Local magnetic variation.

icing

uint32

1

Icing status.

Examples

See asbhl20.

Introduced in R2012a

Was this topic helpful?