Documentation Center

  • 評価版
  • 製品アップデート

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.

Supported FlightGear versions:

  • 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

Dialog Box

FlightGear version

Select your FlightGear software version.

Supported FlightGear versions: 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.

    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

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

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

Signal Group 1: Control surface position outputs

NameUnitsTypeWidthDescription

aileron

geometry specific units [-1,1]

double

1

Aileron position.

elevator

geometry specific units [-1,1]

double

1

Elevator position.

rudder

geometry specific units [-1,1]

double

1

Rudder position.

aileron_trim

geometry specific units [-1,1]

double

1

Aileron trim position.

elevator_trim

geometry specific units [-1,1]

double

1

Elevator trim position.

rudder_trim

geometry specific units [0,1]

double

1

Rudder trim position.

flaps

geometry specific units

double

1

Flaps position.

spoilers

geometry specific units

double

1

Spoilers position.

flaps_power

single

1

Power administered to the flaps (1 = power available).

flap_motor_ok

single

1

Shows whether or not the flap motor is working properly.

Signal Group 2: Engine/fuel outputs

NameUnitsTypeWidthDescription

num_engines

single

1

Number of valid engines.

master_bat

single

1

Master battery switch position.

master_alt

single

1

Master alternator switch position.

magnetos

single

1

Magnetos switch position.

starter_power

geometry specific units [0,1]

single

1

Starter power switch position (1 = starter power).

throttle

geometry specific units [0,1]

double

1

Throttle position.

mixture

geometry specific units [0,1]

double

1

Fuel mixture lever position.

condition

double

1

Condition lever position.

fuel_pump_power

single

1

Fuel pump power switch position (1 = on).

prop_advance

double

1

Propeller blade advance ratio.

feed_tank_to

single

1

Tank feed switch position.

reverse

single

1

Reverse switch position.

engine_ok

single

1

Indicates whether the engine is okay or not.

mag_left_ok

single

1

Indicates whether the left magneto is okay or not.

mag_right_ok

single

1

Indicates whether the right magneto is okay or not.

spark_plugs_ok

single

 

Indicates whether the spark plugs are fouled or not (0 = fouled plugs).

oil_press_status

single

 

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

fuel_pump_ok

single

 

Indicates fuel pump status.

num_tanks

single

 

Number of valid tanks.

fuel_selector

single

 

Fuel selector switch position. There is one per each fuel tank. (0 = off, 1 = on).

xfer_pump

single

 

Specifies transfer from array value to tank specified by an integer value.

cross_feed

single

 

Cross feed fuel pump switch indicator (0 = off, 1 = on).

Signal Group 3: Landing gear outputs

NameUnitsTypeWidthDescription

brake_left

geometry-
specific units

double

1

Left brake position for the pilot.

brake_right

geometry-
specific units

double

1

Right brake position for the pilot.

copilot_brake_left

geometry-
specific units

double

1

Left brake position for the copilot.

copilot_brake_right

geometry-
specific units

double

1

Right brake position for the copilot.

brake_parking

geometry-
specific units

double

1

Parking brake position.

gear_handle

single

1

Landing gear handle position (0 = gear handle up).

Signal Group 4: Avionics outputs

NameUnitsTypeWidthDescription

master_avionics

single

1

Master avionics switch.

comm_1

Hz

double

1

Communications primary frequency.

comm_2

Hz

double

1

Communications secondary frequency.

nav_1

Hz

double

1

Navigation primary frequency.

nav_2

Hz

double

1

Navigation secondary frequency.

Signal Group 5: Environment outputs

NameUnitsTypeWidthDescription

wind_speed_kt

knots

double

1

Wind speed.

wind_dir_deg

deg

double

1

Wind direction.

turbulence_norm

double

1

Turbulence magnitude, normalized between 0 and 1.

temp_c

Degrees Celsius

double

1

Outside temperature.

press_inhg

in Hg

double

1

Outside pressure.

hground

meters

double

1

Ground elevation.

magvar

deg

double

1

Local magnetic variation.

icing

single

1

Icing conditions.

Signal Group 6: Show Environment Inputs

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).

Output Signals Supported for FlightGear 0.9.9

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

Signal Group 1: Surface position outputs

NameUnitsTypeWidthDescription

aileron

geometry specific units [-1,1]

double

1

Aileron position.

elevator

geometry specific units [-1,1]

double

1

Elevator position.

rudder

geometry specific units [-1,1]

double

1

Rudder position.

aileron_trim

geometry specific units [-1,1]

double

1

Aileron trim position.

elevator_trim

geometry specific units [-1,1]

double

1

Elevator trim position.

rudder_trim

geometry specific units [-1,1]

double

1

Rudder trim position.

flaps

geometry specific units [0,1]

double

1

Flaps position.

flaps_power

single

1

Power administered to the flaps (1 = power available).

flap_motor_ok

single

1

Shows whether or not the flap motor is working properly.

Signal Group 2: Engine/fuel outputs

NameUnitsTypeWidthDescription

num_engines

single

1

Number of valid engines.

master_bat

single

4

Master battery switch position.

master_alt

single

4

Master alternator switch position.

magnetos

single

4

Magnetos switch position.

starter_power

single

4

Starter power switch position (1 = starter power).

throttle

geometry specific units [0,1]

double

4

Throttle position.

mixture

geometry specific units [0,1]

double

4

Fuel mixture lever position.

condition

geometry specific units [0,1]

double

4

Condition lever position.

fuel_pump_power

single

4

Fuel pump power switch position (1 = on).

prop_advance

double

4

Propeller blade advance ratio.

engine_ok

single

4

Indicates whether the engine is okay or not.

mag_left_ok

single

4

Indicates whether the left magneto is okay or not.

mag_right_ok

single

4

Indicates whether the right magneto is okay or not.

spark_plugs_ok

single

4

Indicates whether the spark plugs are fouled or not (0 = fouled plugs).

oil_press_status

single

4

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

fuel_pump_ok

single

4

Indicates fuel pump status.

num_tanks

single

1

Number of valid tanks.

fuel_selector

single

8

Fuel selector switch position. There is one per each fuel tank. (0 = off, 1 = on).

cross_feed

single

1

Cross feed fuel pump switch indicator (0 = off, 1 = on).

Signal Group 3: Landing gear outputs

NameUnitsTypeWidthDescription

brake_left

geometry-
specific units

double

1

Left brake position for the pilot.

brake_right

geometry-
specific units

double

1

Right brake position for the pilot.

copilot_brake_left

geometry-
specific units

double

1

Left brake position for the copilot.

copilot_brake_right

geometry-
specific units

double

1

Right brake position for the copilot.

brake_parking

geometry-
specific units

double

1

Parking brake position.

gear_handle

single

1

Landing gear handle position (0 = gear handle up).

Signal Group 4: Avionics outputs

NameUnitsTypeWidthDescription

master_avionics

single

1

Master avionics switch.

Signal Group 5: Environment outputs

NameUnitsTypeWidthDescription

wind_speed_kt

knots

double

1

Wind speed.

wind_dir_deg

deg

double

1

Wind direction.

turbulence_norm

double

1

Turbulence magnitude, normalized between 0 and 1.

temp_c

Degrees Celsius

double

1

Outside temperature

press_inhg

In Hg

double

1

Outside pressure.

hground

meters

double

1

Ground elevation.

magvar

deg

double

1

Local magnetic variation.

icing

single

1

Icing conditions.

Output Signals Supported for FlightGear 0.9.8

This table lists all the output signals supported for Version 0.9.8.

Signal Group 1: Surface position outputs

NameUnitsTypeWidthDescription

aileron

geometry specific units [-1,1]

double

1

Aileron position.

elevator

geometry specific units [-1,1]

double

1

Elevator position.

elevator_trim

geometry specific units [-1,1]

double

1

Elevator trim position.

rudder

geometry specific units [-1,1]

double

1

Rudder position.

flaps

geometry specific units [0,1]

double

1

Flaps position.

flaps_power

double

1

Power administered to the flaps (1 = power available).

flap_motor_ok

bool

1

Shows whether or not the flap motor is working properly.

Signal Group 2: Engine/fuel outputs

NameUnitsTypeWidthDescription

num_engines

int

1

Number of valid engines.

master_bat

bool

4

Master battery switch position.

master_alt

bool

4

Master alternator switch position.

magnetos

int

4

Magnetos switch position.

starter_power

bool

4

Starter power switch position (1 = starter power).

throttle

geometry specific units [0,1]

double

4

Throttle position.

mixture

geometry specific units [0,1]

double

4

Fuel mixture lever position.

condition

geometry specific units [0,1]

double

4

Condition lever position.

fuel_pump_power

bool

4

Fuel pump power switch position (1 = on).

prop_advance

double

4

Propeller blade advance ratio.

engine_ok

bool

4

Indicates whether the engine is okay or not.

mag_left_ok

bool

4

Indicates whether the left magneto is okay or not.

mag_right_ok

bool

4

Indicates whether the right magneto is okay or not.

spark_plugs_ok

bool

4

Indicates whether the spark plugs are fouled or not (0 = fouled plugs).

oil_press_status

int

4

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

fuel_pump_ok

bool

4

Indicates fuel pump status.

num_tanks

int

1

Number of valid tanks.

fuel_selector

bool

8

Fuel selector switch position. There is one per each fuel tank. (0 = off, 1 = on).

Signal Group 3: Landing gear outputs

NameUnitsTypeWidthDescription

brake_left

geometry-
specific units

double

1

Left brake position for the pilot.

brake_right

geometry-
specific units

double

1

Right brake position for the pilot.

copilot_brake_left

geometry-
specific units

double

1

Left brake position for the pilot.

copilot_brake_right

geometry-
specific units

double

1

Right brake position for the pilot.

brake_parking

geometry-
specific units

double

1

Parking brake position.

gear_handle

bool

1

Landing gear handle position (0 = gear handle up).

Signal Group 4: Avionics outputs

NameUnitsTypeWidthDescription

master_avionics

bool

1

Master avionics switch.

Signal Group 5: Environment outputs

NameUnitsTypeWidthDescription

wind_speed_kt

knots

double

1

Wind speed.

wind_dir_deg

deg

double

1

Wind direction.

turbulence_norm

double

1

Turbulence magnitude, normalized between 0 and 1.

temp_c

Degrees Celsius

double

1

Outside temperature.

press_inhg

In Hg

double

1

Outside pressure.

hground

meters

double

1

Ground elevation.

magvar

deg

double

1

Local magnetic variation.

icing

bool

1

Icing conditions.

Output Signals Supported for FlightGear 0.9.3

This table lists all the output signals supported for Version 0.9.3.

Signal Group 1: Surface position outputs

NameUnitsTypeWidthDescription

aileron

geometry specific units [-1,1]

double

1

Aileron position.

elevator

geometry specific units [-1,1]

double

1

Elevator position.

elevator_trim

geometry specific units [-1,1]

double

1

Elevator trim position.

rudder

geometry specific units [-1,1]

double

1

Rudder position.

flaps

geometry specific units [0,1]

double

1

Flaps position.

flaps_power

bool

1

Power administered to the flaps (1 = power available).

flap_motor_ok

bool

1

Shows whether or not the flap motor is working properly.

Signal Group 2: Engine/fuel outputs

NameUnitsTypeWidthDescription

num_engines

int

1

Number of valid engines.

magnetos

int

4

Magnetos switch position.

starter_power

bool

4

Starter power switch position (1 = starter power).

throttle

geometry specific units [0,1]

double

4

Throttle position.

mixture

geometry specific units [0,1]

double

4

Fuel mixture lever position.

fuel_pump_power

bool

4

Fuel pump power switch position (1 = on).

prop_advance

double

4

Propeller blade advance ratio.

engine_ok

bool

4

Indicates whether the engine is okay or not.

mag_left_ok

bool

4

Indicates whether the left magneto is okay or not.

mag_right_ok

bool

4

Indicates whether the right magneto is okay or not.

spark_plugs_ok

bool

4

Indicates whether the spark plugs are fouled or not (0 = fouled plugs).

oil_press_status

int

4

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

fuel_pump_ok

bool

4

Indicates fuel pump status.

num_tanks

int

1

Number of valid tanks.

fuel_selector

bool

8

Fuel selector switch position. There is one per each fuel tank. (0 = off, 1 = on).

master_bat

bool

1

Master battery switch position.

master_alt

bool

1

Master alternator switch position.

Signal Group 3: Landing gear outputs

NumUnitsTypeWidthDescription

num_wheels

int

1

Number of valid wheels.

brake

double

16

Brake position for each wheel [0,1].

gear_handle

bool

1

Landing gear handle position (0 = gear handle up).

Signal Group 4: Avionics outputs

NameUnitsTypeWidthDescription

master_avionics

bool

1

Master avionics switch.

Signal Group 5: Environment outputs

NameUnitsTypeWidthDescription

wind_speed_kt

knots

double

1

Wind speed.

wind_dir_deg

deg

double

1

Wind direction.

turbulence_norm

double

1

Turbulence magnitude, normalized between 0 and 1.

hground

meters

double

1

Ground elevation.

magvar

deg

double

1

Local magnetic variation.

Examples

See asbhl20asbhl20.

Was this topic helpful?