| Aerospace Blockset™ | ![]() |
Transmit net_fdm packet to destination IP address and port for FlightGear session
Animation/Flight Simulator Interfaces

The Send net_fdm Packet to FlightGear block transmits the net_fdm packet to FlightGear on the current computer, or a remote computer on the network. The packet is constructed using the Pack net_fdm Packet for FlightGear block. The destination port should be an unused port that you can use when you launch FlightGear with the FlightGear command line flag:
--fdm=network,localhost,5501,5502,5503
The second port in the list, 5502, is the network flight dynamics model (fdm) port.
This block does not product deployable code.
You can use one of several techniques to determine the destination IP address, such as:
Use 127.0.0.1 for "this" computer
Ping another computer from a Windows® cmd.exe (or UNIX® shell) prompt:
C:\> ping andyspc
Pinging andyspc [144.213.175.92] with 32 bytes of data:
Reply from 144.213.175.92: bytes=32 time=30ms TTL=253
Reply from 144.213.175.92: bytes=32 time=20ms TTL=253
Reply from 144.213.175.92: bytes=32 time=20ms TTL=253
Reply from 144.213.175.92: bytes=32 time=20ms TTL=253
Ping statistics for 144.213.175.92:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 20ms, Maximum = 30ms, Average = 22ms
On a Windows machine, type ipconfig and use the returned IP Address:
H:\>ipconfig
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.42.178
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.42.254

Specify your destination IP address.
Specify your destination port.
Specify the sample time (-1 for inherited).
The input signal is the FlightGear net_fdm data packet.
See the asbhl20 for an example of this block.
FlightGear Preconfigured 6DoF Animation
Pack net_fdm Packet for FlightGear
![]() | Self-Conditioned [A,B,C,D] | Simple Variable Mass 3DoF (Body Axes) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |