Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Send net_fdm Packet to FlightGear

Transmit net_fdm packet to destination IP address and port for FlightGear session

Library

Animation/Flight Simulator Interfaces

Description

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 produce deployable code.

Determining the Destination IP Address

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
    

Dialog Box

Destination IP address

Specify your destination IP address.

Destination port

Specify your destination port.

Sample time

Specify the sample time (-1 for inherited).

Inputs and Outputs

The input signal is the FlightGear net_fdm data packet.

Examples

See the asbhl20asbhl20 for an example of this block.

Was this topic helpful?