visualization tools -凯发k8网页登录

main content

visualization tools

you can visualize stages of your aerospace blockset™ application using flight simulator, flight instrument, aircraft scenario, and matlab®graphics-based tools.

flight simulation interface blocks

use flight simulator interface blocks to visualize flight paths using flightgear and input flightgear data to models.

to use flightgear to visualize flight paths, first install flightgear software. for more information, see . the flight simulator interfaces sublibrary contains:

  • — connect model to flightgear flight simulator.

  • — generate flightgear run script on current platform.

  • — generate net_fdm packet for flightgear.

  • — receive net_ctrl packet from flightgear.

  • — transmit net_fdm packet to destination ip address and port for flightgear session.

  • — unpack net_ctrl variable packet received from flightgear.

here is an example of the model in .

hl-20 model.

flight instrument blocks

use blocks representing standard cockpit instruments to display flight status information from the model. each block graphically represents a cockpit instrument.

  • — display measurements for aircraft airspeed

  • — display measurements for aircraft altitude

  • — represent aircraft attitude relative to horizon

  • — display measurements for aircraft climb rate

  • — display measurements for engine exhaust gas temperature (egt)

  • — display measurements for aircraft heading

  • — display measurements for engine revolutions per minute (rpm) in percentage of rpm

  • — display measurements on turn coordinator and inclinometer

after you add a flight instruments block to a model, a table in the block dialog is automatically filled with observable signals from the model. to display one of the observable signals on an instrument gauge, select the signal.

here is an example of the model with the flight instruments panel in .

hl-20 model with flight instruments panel.

simulation 3d blocks

use the simulation 3d blocks to view 3d aircraft dynamics and airport operations in the unreal® environment. use supporting functions to customize your projects.

  • — get actor translation, rotation, scale.

  • — set actor translation, rotation, scale.

  • — implement aircraft in 3d environment.

  • — camera image.

  • — scene configuration for 3d simulation environment.

  • — retrieve data from unreal engine visualization environment.

  • — send data to unreal engine visualization environment.

here is the animation from a simulation in .

sky hogg example animation using unreal engine.

to customize your projects, aerospace blockset also contains functions that let you work with blue print actors and send and receive messages between unreal engine® and simulink®.

while the blocks and functions are available with aerospace blockset, to customize scenes in your installation of the unreal engine and simulate within these scenes in simulink, you must install and configure the aerospace blockset interface for unreal engine projects support package. this support package contains customizable scenes and the griffiss airport.

matlab graphics-based animation

use matlab graphics-based animation blocks to visualize flight paths using matlab graphics software.

  • — create 3-d matlab graphics animation of three-degrees-of-freedom object.

  • — create 3-d matlab graphics animation of six-degrees-of-freedom object.

  • — create six-degrees-of-freedom multibody custom geometry block.

here is the animation from a simulation in using the matlab animation block.

example animation using matlab animation block.

utility visualization blocks

use the utility visualization blocks to provide joystick interface inputs to your model. this library also contains the simulation pace block, to set the simulation rate for animation viewing.

  • — provide joystick interface on windows® platform. this block is the same as the pilot joystick all block with the output configuration parameter set to fouraxis.

  • — provide joystick interface in all outputs configuration on windows platform. this block is the same as the pilot joystick block with the output configuration parameter set to alloutputs.

  • — set simulation rate for animation viewing.

related topics

    网站地图