Simulation 3D General Aviation Pack
Generate translation and rotation information for general aviation aircraft
Since R2023b
Libraries:
Aerospace Blockset /
Animation /
Simulation 3D
Description
The Simulation 3D General Aviation Pack block creates translation and
rotation information for the Simulation 3D Aircraft block with
Type set to General aviation
. Use the
Simulation 3D General Aviation Pack block to provide translation and rotation
information to the Translation and Rotation input
ports of the Simulation 3D Aircraft block.
Ports
Input
Body_T — Body translation
1-by-3 matrix
Body translation, specified as a 1-by-3 matrix.
Data Types: single
| double
Engine1_T — Engine translation
1-by-3 matrix
Engine translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Engine translation parameter.
Data Types: single
| double
Rudder_T — Rudder translation
1-by-3 matrix
Rudder translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Rudder translation parameter.
Data Types: single
| double
Elevator_T — Elevator translation
1-by-3 matrix
Elevator translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Elevator translation parameter.
Data Types: single
| double
Left_Aileron_T — Left aileron translation
1-by-3 matrix
Left aileron translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left aileron translation parameter.
Data Types: single
| double
Right_Aileron_T — Right aileron translation
1-by-3 matrix
Right aileron translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right aileron translation parameter.
Data Types: single
| double
Flaps_T — Flaps translation
1-by-3 matrix
Flaps translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Flaps translation parameter.
Data Types: single
| double
Left_Spoiler_T — Left spoiler translation
1-by-3 matrix
Left spoiler translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left spoiler translation parameter.
Data Types: single
| double
Right_Spoiler_T — Right spoiler translation
1-by-3 matrix
Right spoiler translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right spoiler translation parameter.
Data Types: single
| double
Nose_Gear_T — Nose gear translation
1-by-3 matrix
Nose gear translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Nose gear translation parameter.
Data Types: single
| double
Nose_Wheel_T — Nose wheel translation
1-by-3 matrix
Nose wheel translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Nose wheel translation parameter.
Data Types: single
| double
Left_Gear_T — Left gear translation
1-by-3 matrix
Left gear translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left gear translation parameter.
Data Types: single
| double
Left_Wheel_T — Left wheel translation
1-by-3 matrix
Left wheel translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left wheel translation parameter.
Data Types: single
| double
Right_Gear_T — Right gear translation
1-by-3 matrix
Right gear translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right gear translation parameter.
Data Types: single
| double
Right_Wheel_T — Right wheel translation
1-by-3 matrix
Right wheel translation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right wheel translation parameter.
Data Types: single
| double
Body_R — Body rotation
1-by-3 matrix
Body rotation, specified as a 1-by-3 matrix.
Data Types: single
| double
Engine1_R — Engine rotation
1-by-3 matrix
Engine rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Engine rotation parameter.
Data Types: single
| double
Rudder_R — Rudder rotation
1-by-3 matrix
Rudder rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Rudder rotation parameter.
Data Types: single
| double
Elevator_R — Elevator rotation
1-by-3 matrix
Elevator rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Elevator rotation parameter.
Data Types: single
| double
Left_Aileron_R — Left aileron rotation
1-by-3 matrix
Left aileron rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left aileron rotation parameter.
Data Types: single
| double
Right_Aileron_R — Right aileron rotation
1-by-3 matrix
Right aileron rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right aileron rotation parameter.
Data Types: single
| double
Flaps_R — Flaps rotation
1-by-3 matrix
Flaps rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Flaps rotation parameter.
Data Types: single
| double
Left_Spoiler_R — Left spoiler rotation
1-by-3 matrix
Left spoiler rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left spoiler rotation parameter.
Data Types: single
| double
Right_Spoiler_R — Right spoiler rotation
1-by-3 matrix
Right spoiler rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right spoiler rotation parameter.
Data Types: single
| double
Nose_Gear_R — Nose gear rotation
1-by-3 matrix
Nose gear rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Nose gear rotation parameter.
Data Types: single
| double
Nose_Wheel_R — Nose wheel rotation
1-by-3 matrix
Nose wheel rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Nose wheel rotation parameter.
Data Types: single
| double
Left_Gear_R — Left gear rotation
1-by-3 matrix
Left gear rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left gear rotation parameter.
Data Types: single
| double
Left_Wheel_R — Left wheel rotation
1-by-3 matrix
Left wheel rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Left wheel rotation parameter.
Data Types: single
| double
Right_Gear_R — Right gear rotation
1-by-3 matrix
Right gear rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right gear rotation parameter.
Data Types: single
| double
Right_Wheel_R — Right wheel rotation
1-by-3 matrix
Right wheel rotation, specified as a 1-by-3 matrix.
Dependencies
To enable this port, select the Right wheel rotation parameter.
Data Types: single
| double
Output
Translation — Aircraft translation
15
-by-3
array
Aircraft translation for General Aviation aircraft, returned as a
15
-by-3
array. The signal contains translation
[X, Y, Z], in meters, with
one row of the array for each bone of the aircraft.
The translation applies to these bones of the General
Aviation
type.
Bone | Index |
---|---|
BODY | 1 |
ENGINE1 | 2 |
RUDDER | 3 |
ELEVATOR | 4 |
LEFT_AILERON | 5 |
RIGHT_AILERON | 6 |
FLAPS | 7 |
LEFT_SPOILER | 8 |
RIGHT_SPOILER | 9 |
NOSE_GEAR | 10 |
NOSE_WHEEL | 11 |
LEFT_GEAR | 12 |
LEFT_WHEEL | 13 |
RIGHT_GEAR | 14 |
RIGHT_WHEEL | 15 |
Rotation — Aircraft rotation
15
-by-3
array
Aircraft rotation for General Aviation aircraft, returned as an
15
-by-3
array:
The rotation applies to the same bones as listed for the Translation port.
The signal contains the rotation [roll, pitch, yaw], in radians, with one row of the array for each bone of the aircraft.
Parameters
Propulsion
Engine translation — Option to enable Engine1_T input port
off
(default) | on
Select this parameter to enable the Engine1_T input port.
Programmatic Use
Block Parameter: Engine1_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Engine rotation — Option to enable Engine1_R input port
off
(default) | on
Select this parameter to enable the Engine1_R input port.
Programmatic Use
Block Parameter: Engine1_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Controls
Rudder translation — Option to enable Rudder_T input port
off
(default) | on
Select this parameter to enable the Rudder_T input port.
Programmatic Use
Block Parameter:
Rudder_T |
Type: character vector |
Values: 'on' |
'off' |
Default: 'off' |
Elevator translation — Option to enable Elevator_T input port
off
(default) | on
Select this parameter to enable the Elevator_T input port.
Programmatic Use
Block Parameter: Elevator_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left aileron translation — Option to enable Left_Aileron_T input port
off
(default) | on
Select this parameter to enable the Left_Aileron_T input port.
Programmatic Use
Block Parameter: Left_Aileron_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Right aileron translation — Option to enable Right_Aileron_T input port
off
(default) | on
Select this parameter to enable the Right_Aileron_T input port.
Programmatic Use
Block Parameter: Right_Aileron_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Flaps translation — Option to enable Flaps_T input port
off
(default) | on
Select this parameter to enable the Flaps_T input port.
Programmatic Use
Block Parameter: Flaps_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left spoiler translation — Option to enable Left_Spoiler_T input port
off
(default) | on
Select this parameter to enable the Left_Spoiler_T input port.
Programmatic Use
Block Parameter:
Left_Spoiler_T |
Type: character vector |
Values: 'on' |
'off' |
Default: 'off' |
Right spoiler translation — Option to enable Right_Spoiler_T input port
off
(default) | on
Select this parameter to enable the Right_Spoiler_T input port.
Programmatic Use
Block Parameter: Right_Spoiler_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Rudder rotation — Option to enable Rudder_R input port
off
(default) | on
Select this parameter to enable the Rudder_R input port.
Programmatic Use
Block Parameter: Rudder_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Elevator rotation — Option to enable Elevator_R input port
off
(default) | on
Select this parameter to enable the Elevator_R input port.
Programmatic Use
Block Parameter: Elevator_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left aileron rotation — Option to enable Left_Aileron_R input port
off
(default) | on
Select this parameter to enable the Left_Aileron_R input port.
Programmatic Use
Block Parameter: Left_Aileron_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Right aileron rotation — Option to enable Right_Aileron_R input port
off
(default) | on
Select this parameter to enable the Right_Aileron_R input port.
Programmatic Use
Block Parameter: Right_Aileron_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Flaps rotation — Option to enable Flaps_R input port
off
(default) | on
Select this parameter to enable the Flaps_R input port.
Programmatic Use
Block Parameter: Flaps_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left spoiler rotation — Option to enable Left_Spoiler_R input port
off
(default) | on
Select this parameter to enable the Left_Spoiler_R input port.
Programmatic Use
Block Parameter:
Left_Spoiler_R |
Type: character vector |
Values: 'on' |
'off' |
Default: 'off' |
Right spoiler rotation — Option to enable Right_Spoiler_R input port
off
(default) | on
Select this parameter to enable the Right_Spoiler_R input port.
Programmatic Use
Block Parameter: Right_Spoiler_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Gear
Nose gear translation — Option to enable Nose_Gear_T input port
off
(default) | on
Select this parameter to enable the Nose_Gear_T input port.
Programmatic Use
Block Parameter: Nose_Gear_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Nose wheel translation — Option to enable Nose_Wheel_T input port
off
(default) | on
Select this parameter to enable the Nose_Wheel_T input port.
Programmatic Use
Block Parameter: Nose_Wheel_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left gear translation — Option to enable Left_Gear_T input port
off
(default) | on
Select this parameter to enable the Left_Gear_T input port.
Programmatic Use
Block Parameter: Left_Gear_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left wheel translation — Option to enable Left_Wheel_T input port
off
(default) | on
Select this parameter to enable the Left_Wheel_T input port.
Programmatic Use
Block Parameter: Left_Wheel_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Right gear translation — Option to enable Right_Gear_T input port
off
(default) | on
Select this parameter to enable the Right_Gear_T input port.
Programmatic Use
Block Parameter: Right_Gear_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Right wheel translation — Option to enable Right_Wheel_T input port
off
(default) | on
Select this parameter to enable the Right_Wheel_T input port.
Programmatic Use
Block Parameter: Right_Wheel_T |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Nose gear rotation — Option to enable Nose_Gear_R input port
off
(default) | on
Select this parameter to enable the Nose_Gear_R input port.
Programmatic Use
Block Parameter:
Nose_Gear_R |
Type: character vector |
Values: 'on' |
'off' |
Default: 'off' |
Nose wheel rotation — Option to enable Nose_Wheel_R input port
off
(default) | on
Select this parameter to enable the Nose_Wheel_R input port.
Programmatic Use
Block Parameter: Nose_Wheel_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left gear rotation — Option to enable Left_Gear_R input port
off
(default) | on
Select this parameter to enable the Left_Gear_R input port.
Programmatic Use
Block Parameter: Left_Gear_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Left wheel rotation — Option to enable Left_Wheel_R input port
off
(default) | on
Select this parameter to enable the Left_Wheel_R input port.
Programmatic Use
Block Parameter: Left_Wheel_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Right gear rotation — Option to enable Right_Gear_R input port
off
(default) | on
Select this parameter to enable the Right_Gear_R input port.
Programmatic Use
Block Parameter: Right_Gear_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Right wheel rotation — Option to enable Right_Wheel_R input port
off
(default) | on
Select this parameter to enable the Right_Wheel_R input port.
Programmatic Use
Block Parameter: Right_Wheel_R |
Type: character vector |
Values: 'on' | 'off' |
Default: 'off' |
Geospatial
Select input coordinate frame — Input coordinate frame
NED
(default) | ECEF
Select the input coordinate frame to position aerospace vehicles with respect to north-east-down (NED) or the Earth center (ECEF). Use this parameter with the Use Earth center as origin (ECEF) parameter of the Simulation 3D Scene Configuration block.
Programmatic Use
To set the block parameter value
programmatically, use the set_param
function.
To get the block parameter value
programmatically, use the get_param
function.
Parameter: | GeoRadioButton |
Values: | 'NED' (default) | 'ECEF' |
Enable geospatial correction — Option to enable geospatial correction
off
(default) | on
Select this parameter to enable the geospatial correction to the input body translation and rotation.
Dependencies
To enable this parameter, set Select input coordinate frame
to NED
.
Programmatic Use
Block Parameter:
AdjustForCesium |
Type: character vector |
Values: 'on' |
'off' |
Default: 'off' |
Direction of x-axis (degrees clockwise from north) — Compass direction of x-axis
90
(default) | real scalar
Specify the compass direction of the x-axis, specified as a real scalar, in degrees.
Dependencies
To enable this parameter:
Set Select input coordinate frame to NED
Select Enable geospatial correction
Programmatic Use
Block Parameter:
Heading0 |
Type: character vector |
Values: 90 | real
scalar |
Default: '90' |
Version History
Introduced in R2023bR2024a: Simulation 3D General Aviation Pack Block Now Supports Earth-centered Earth-fixed (ECEF) Input Coordinate Frame
To enable ECEF coordinate systems for translation input, the Simulation 3D General Aviation Pack block has been updated. Use these parameters with the Use Earth center as origin (ECEF) parameter in the Simulation 3D Scene Configuration block.
Select input coordinate frame
ECEF — ECEF input coordinate frame. When you select this coordinate frame, the annotation
Origin: Earth center (ECEF)
appears under the pack block icons.NED — NED coordinate frame. Prior to R2024a, NED was the only supported coordinate frame.
Direction of x-axis (degrees clockwise from north) — Direction of the x-axis. This parameter is enabled when you select the Enable geospatial correction check box.
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)