Main Content

FlightGear Preconfigured 6DoF Animation

连接模型FlightGear飞行模拟器

  • 天秤座ry:
  • Aerospace Blockset / Animation / Flight Simulator Interfaces

  • FlightGear Preconfigured 6DoF Animation block

Description

The FlightGear Preconfigured 6DoF Animation block lets you drive position and attitude values to a FlightGear flight simulator vehicle given double-precision values for longitude (l), latitude (μ), altitude (h), roll (ϕ)、沥青(θ), and yaw (ψ), respectively.

The block is configured as a sim viewing device. If you generate code for your model using金宝app®Coder™and connect to the running target code using external mode simulation, Simulink software can obtain the data from the target on the fly and transmit position and attitude data to FlightGear. For more information, seeUse C/C++ S-Functions as Sim Viewing Devices in External Mode.

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, seeSupported FlightGear Versions.

Ports

Input

expand all

Longitude, latitude, altitude, roll, pitch, and yaw, in double-precision, specified as a vector. Units are degrees west/north for longitude and latitude, meters above mean sea level for altitude, and radians for attitude values.

Data Types:single|double|int8|int16|int32|uint8|uint16|uint32|Boolean|fixed point|enumerated|bus

Parameters

expand all

Destination IP address of the machine running FlightGear software, specified as a scalar.

Programmatic Use

Block Parameter:DestinationIpAddress
Type: character vector
Values: scalar
Default:'127.0.0.1'

Destination port of the machine running FlightGear software, specified as a scalar.

Programmatic Use

Block Parameter:DestinationPort
Type: character vector
Values: scalar
Default:'5502'

Sample time specified as a scalar (–1 for inherited).

Programmatic Use

Block Parameter:SampleTime
Type: character vector
Values: scalar
Default:'1/30'

Algorithms

The block is a masked subsystem containing principally aPack net_fdm Packet for FlightGearblock set for 6DoF inputs, aSend net_fdm Packet to FlightGearblock, and aSimulation Paceblock. To access the full capabilities of these blocks, use the individual corresponding blocks from the Aerospace Blockset library.

References

[1] Bowditch, N.,American Practical Navigator, An Epitome of Navigation. US Navy Hydrographic Office, 1802.

Version History

Introduced before R2006a