Unpack net_ctrl
variable packet received from
FlightGear
Aerospace Blockset / Animation / Flight Simulator Interfaces
The Unpack net_ctrl Packet from FlightGear block unpacks
net_ctrl
variable packets received from FlightGear via the
Receive net_ctrl Packet from FlightGear block, and makes them
available for the Simulink® environment.
The Aerospace Blockset™ product supports FlightGear versions starting from v2.6. If you are using a FlightGear version older than 2.6, 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.
net_ctrl
— FlightGear packet to be unpackedFlightGear packet to be unpacked, specified as an array.
Data Types: uint8
wind_speed_kt
— Wind speedWind speed, specified as a scalar, in knots.
To enable this port, select the Show environment outputs check box.
Data Types: double
wind_dir_deg
— Wind directionWind direction, specified as a scalar, in deg.
To enable this port, select the Show environment outputs check box.
Data Types: double
turbulence_norm
— Turbulence normTurbulence norm, specified as a scalar.
To enable this port, select the Show environment outputs check box.
Data Types: double
temp_c
— Ambient temperatureAmbient temperature, specified as a scalar, in deg C.
To enable this port, select the Show environment outputs check box.
Data Types: double
press_inhg
— Ambient pressureAmbient pressure, specified as a scalar, in inHg.
To enable this port, select the Show environment outputs check box.
Data Types: double
hground
— Ground elevationGround elevation, specified as a scalar, in m.
To enable this port, select the Show environment outputs check box.
Data Types: double
magvar
— Local magnetic variationLocal magnetic variation, specified as a scalar.
To enable this port, select the Show environment outputs check box.
Data Types: double
icing
— Icing statusIcing status, specified as a scalar, in deg.
To enable this port, select the Show environment outputs check box.
Data Types: uint32
aileron
— Normalized aileron position1
| scalarNormalized aileron position [-1,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
elevator
— Normalized elevator position1
| scalarNormalized elevator position [-1,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
rudder
— Normalized rudder position1
| scalarNormalized rudder position [-1,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
aileron_trim
— Normalized aileron trim positionNormalized aileron trim position [-1,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
elevator_trim
— Normalized elevator trim position1
| scalarNormalized elevator trim position [-1,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
rudder_trim
— Normalized rudder trim position1
| scalarNormalized rudder trim position [-1,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
flaps
— Normalized flaps position1
| scalarNormalized flaps position [-0,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: double
spoilers
— Normalized spoilers position1
| scalarNormalized spoilers position [0,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: single
speedbrake
— Normalized speedbrake position1
| scalarNormalized speedbrake position [0,1], specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: single
flaps_power
— Power for flaps1
| scalarPower for flaps, specified as a scalar. A value of
1
indicates that power is available.
To enable this port, select the Show control surface position outputs check box.
Data Types: uint32
flap_motor_ok
— Flap motor poweredFlap motor powered, specified as a scalar.
To enable this port, select the Show control surface position outputs check box.
Data Types: uint32
num_engines
— Number of valid enginesNumber of valid engines, specified as a scalar.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
master_bat
— Master battery switchMaster battery switch, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
master_alt
— Master alternator switchMaster alternator switch, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
magnetos
— Magnetos switchMagnetos switch, specified as a scalar.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
starter_power
— Power to start motor1
| vectorPower to starter motor, specified as a vector. A value of
1
indicates that power is available.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
throttle
— Normalized throttle position1
| vectorNormalized throttle position [0,1], specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: double
mixture
— Normalized mixture lever position1
| vectorNormalized mixture lever position [0,1], specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: double
condition
— Normalized condition1
| vectorNormalized condition [0,1], specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
fuel_pump_power
— Normalized speedbrake position1
| scalarPower to fuel pump, specified as a vector. A value of
1
indicates that pump is on.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
prop_advance
— Propeller advance1
| vectorPropeller advance [0,1], specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: double
feed_tank_to
— Feed tank to switchFeed tank to switch, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
reverse
— Reverse switchReverse switch, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
engine_ok
— Engine status indicatorEngine status indicator, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
mag_left_ok
— Left magneto status indicatorLeft magneto status indicator, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
mag_right_ok
— Right magneto status indicatorRight magneto status indicator, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
spark_plugs_ok
— Normalized speedbrake positionSpark plugs status indicator, specified as a vector. A value of
0
indicates that the plugs have failed.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
oil_press_status
— Oil pressure status indicator0
| 1
| 2
| scalarOil pressure status indicator, specified as a vector.
0
— Normal oil pressure
1
— Low oil pressure
2
— Failed oil pressure
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
fuel_pump_ok
— Fuel management status indicatorFuel management status indicator, specified as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
num_tanks
— Number of valid tanksNumber of valid tanks, specified as a scalar.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
fuel_selector
— Fuel selectorFuel selector, specified as a vector.
0
— Off
1
— On
To enable this port, select the Show engine/fuel outputs check box.
Data Types: single
xfer_pump
— Specify transferSpecifies transfer from array value to tank, specified by value as a vector.
To enable this port, select the Show engine/fuel outputs check box.
Data Types: uint32
cross_feed
— Cross feed valveCross feed valve, specified as a scalar.
0
— False
1
— On
To enable this port, select the Show engine/fuel outputs check box.
Data Types: single
brake_left
— Left brake pedal position pilotLeft brake pedal position pilot, specified as a scalar.
To enable this port, select the Show landing gear outputs check box.
Data Types: double
brake_right
— Right brake pedal position pilotRight brake pedal position pilot, specified as a scalar.
To enable this port, select the Show landing gear outputs check box.
Data Types: double
copilot_brake_left
— Left brake pedal position pilotLeft brake pedal position pilot, specified as a scalar.
To enable this port, select the Show landing gear outputs check box.
Data Types: double
copilot_brake_right
— Right brake pedal position pilotRight brake pedal position pilot, specified as a scalar.
To enable this port, select the Show landing gear outputs check box.
Data Types: double
brake_parking
— Brake parking positionBrake parking position, specified as a scalar.
To enable this port, select the Show landing gear outputs check box.
Data Types: double
gear_handle
— Gear handle positionGear handle position, specified as a scalar.
0
— Gear handle up
1
— Gear handle down
To enable this port, select the Show landing gear outputs check box.
Data Types: uint32
master_avionics
— Master avionics switchMaster avionics switch, specified as a scalar.
To enable this port, select the Show avionic outputs check box.
Data Types: uint32
comm_1
— Comm 1 frequencyComm 1 frequency, specified as a scalar, in Hz.
To enable this port, select the Show avionic outputs check box.
Data Types: double
comm_2
— Comm 2 frequencyComm 2 frequency, specified as a scalar, in Hz.
To enable this port, select the Show avionic outputs check box.
Data Types: double
nav_1
— Nav 1 frequencyNav 1 frequency, specified as a scalar, in Hz.
To enable this port, select the Show avionic outputs check box.
Data Types: double
nav_2
— Nav 2 frequencyNav 2 frequency, specified as a scalar, in Hz.
To enable this port, select the Show avionic outputs check box.
Data Types: double
Show control surface position outputs
— Control surface position outputsoff
(default) | on
Select this check box to include the control surface position outputs from
the FlightGear net_ctrl
data packet.
Select this check box to enable these input ports.
Signal Group 1: Control surface position outputs
Name | Units | Type | Width | Description |
---|---|---|---|---|
| 1 (dimensionless) | double | 1 | Normalized aileron position [-1,1] |
| 1 (dimensionless) | double | 1 | Normalized elevator position [-1,1] |
| 1 (dimensionless) | double | 1 | Normalized rudder position [-1,1] |
| 1 (dimensionless) | double | 1 | Normalized aileron trim position [-1,1] |
| 1 (dimensionless) | double | 1 | Normalized elevator trim position [-1,1] |
| 1 (dimensionless) | double | 1 | Normalized rudder trim position [-1,1] |
| 1 (dimensionless) | double | 1 | Normalized flaps position [-0,1] |
| 1 (dimensionless) | double | 1 | Normalized spoilers position [0,1] |
| 1 (dimensionless) | double | 1 | Normalized speedbrake position [0,1] |
| 1 (dimensionless) | uint32 | 1 | Power for flaps ( |
| — | uint32 | 1 | Flap motor powered |
Block Parameter:
ShowControlSurfacePositionOutputs |
Type: character vector |
Values:
'off' | 'on' |
Default:
'off' |
Show engine/fuel outputs
— Engine/fuel outputsoff
(default) | on
Select this check box to include the engine and fuel outputs from the
FlightGear net_ctrl
data packet.
Select this check box to enable these input ports.
Signal Group 2: Engine/fuel outputs
Name | Units | Type | Width | Description |
---|---|---|---|---|
| — | uint32 | 1 | Number of valid engines |
| — | uint32 | 4 | Master battery switch |
| — | uint32 | 4 | Master alternator switch |
| — | uint32 | 4 | Magnetos switch |
| — | uint32 | 4 | Power to starter motor ( |
| 1 (dimensionless) | double | 4 | Normalized throttle position [0,1] |
| 1 (dimensionless) | double | 4 | Normalized mixture lever position [0,1] |
| 1 (dimensionless) | double | 4 | Normalized condition [0,1] |
| — | uint32 | 4 | Power to fuel pump |
| 1 (dimensionless) | double | 4 | Propeller advance [0,1] |
| — | uint32 | 4 | Feed tank to switch |
| — | uint32 | 4 | Reverse switch |
| — | uint32 | 4 | Engine status indicator |
| — | uint32 | 4 | Left magneto status indicator |
| — | uint32 | 4 | Right magneto status indicator |
| — | uint32 | 4 | Spark plugs status indicator ( |
| — | uint32 | 4 | Oil pressure status indicator (0 = normal, 1 = low, 2 = full failure) |
| — | uint32 | 4 | Fuel management status indicator |
| — | uint32 | 1 | Number of valid tanks |
| — | uint32 | 8 | Fuel selector. ( |
| — | uint32 | 5 | Specifies transfer from array value to tank specified by value |
| — | uint32 | 1 | Cross feed valve ( |
Block Parameter:
ShowEngineFuelOutputs |
Type: character vector |
Values:
'off' | 'on' |
Default:
'off' |
Show landing gear outputs
— Landing gear outputsoff
(default) | on
Select this check box to include the landing gear outputs from the
FlightGear net_ctrl
data packet.
Select this check box to enable these input ports.
Signal Group 3: Landing gear outputs
Name | Units | Type | Width | Description |
---|---|---|---|---|
| — | double | 1 | Left brake pedal position pilot |
| — | double | 1 | Right brake pedal position pilot |
| — | double | 1 | Left brake pedal position copilot |
| — | double | 1 | Right brake pedal position copilot |
| — | double | 1 | Brake parking position |
| — | uint32 | 1 | Gear handle position ( |
Block Parameter:
ShowLandingGearOutputs |
Type: character vector |
Values:
'off' | 'on' |
Default:
'off' |
Show avionic outputs
— Avionic outputsoff
(default) | on
Select this check box to include the avionic outputs from the FlightGear
net_ctrl
data packet.
Select this check box to enable these input ports.
Signal Group 4: Avionics outputs
Name | Units | Type | Width | Description |
---|---|---|---|---|
| — | uint32 | 1 | Master avionics switch |
| Hz | double | 1 | Comm 1 frequency |
| Hz | double | 1 | Comm 2 frequency |
| Hz | double | 1 | Nav 1 frequency |
| Hz | double | 1 | Nav 2 frequency |
Block Parameter:
ShowAvionicOutputs |
Type: character vector |
Values:
'off' | 'on' |
Default:
'off' |
Show environment outputs
— Environment outputson
(default) | off
Select this check box to include the environment outputs from the
FlightGear net_ctrl
data packet.
Select this check box to enable these input ports.
Signal Group 5: Environment outputs
Name | Units | Type | Width | Description |
---|---|---|---|---|
| knot | double | 1 | Wind speed |
| deg | double | 1 | Wind direction |
| — | double | 1 | Turbulence norm |
| deg C | double | 1 | Ambient temperature |
| inHg | double | 1 | Ambient pressure |
| m | double | 1 | Ground elevation |
| deg | double | 1 | Local magnetic variation |
| – | uint32 | 1 | Icing status |
Block Parameter:
ShowEnvironmentOutputs |
Type: character vector |
Values:
'off' | 'on' |
Default:
'on' |
Sample time
— Sample timeSpecify the sample time (-1 for inherited), as a scalar.
Block Parameter:
SampleTime |
Type: character vector |
Values: scalar |
Default:
'1/30' |
FlightGear Preconfigured 6DoF Animation | Generate Run Script | Pack net_fdm Packet for FlightGear | Receive net_ctrl Packet from FlightGear | Send net_fdm Packet to FlightGear
1. Если смысл перевода понятен, то лучше оставьте как есть и не придирайтесь к словам, синонимам и тому подобному. О вкусах не спорим.
2. Не дополняйте перевод комментариями “от себя”. В исправлении не должно появляться дополнительных смыслов и комментариев, отсутствующих в оригинале. Такие правки не получится интегрировать в алгоритме автоматического перевода.
3. Сохраняйте структуру оригинального текста - например, не разбивайте одно предложение на два.
4. Не имеет смысла однотипное исправление перевода какого-то термина во всех предложениях. Исправляйте только в одном месте. Когда Вашу правку одобрят, это исправление будет алгоритмически распространено и на другие части документации.
5. По иным вопросам, например если надо исправить заблокированное для перевода слово, обратитесь к редакторам через форму технической поддержки.