Main Content

Send net_fdm Packet to FlightGear

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

  • Send net_fdm Packet to FlightGear block

Libraries:
Aerospace Blockset / 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

This block does not produce deployable code.

Examples

Ports

Input

expand all

FlightGear net_fdm data packet, specified as a scalar.

Data Types: uint8

Parameters

expand all

Destination IP address, specified as a scalar.

You can use one of several techniques to determine the destination IP address, such as:

  • Use 127.0.0.1 for the local 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
    

Programmatic Use

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

Destination port, specified as a scalar

Programmatic Use

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

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

Programmatic Use

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

Version History

Introduced before R2006a