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
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:
The second port in the list, 5502, is the network flight dynamics model (fdm) port.
This block does not produce 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)
C:\> ping andyspc Pinging andyspc [220.127.116.11] with 32 bytes of data: Reply from 18.104.22.168: bytes=32 time=30ms TTL=253 Reply from 22.214.171.124: bytes=32 time=20ms TTL=253 Reply from 126.96.36.199: bytes=32 time=20ms TTL=253 Reply from 188.8.131.52: bytes=32 time=20ms TTL=253 Ping statistics for 184.108.40.206: 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
use the returned
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
for an example of this block.