fgfsConnect: Connect to FlightGear via telnet

Description Usage Arguments Details Value

Description

This function creates a socket connection to the FlightGear props (telnet) interface, via which the property tree can be queried and/or modified.

Usage

1
fgfsConnect(host = "localhost", port = 5501)

Arguments

host

Hostname/IP address of the computer running FlightGear and the props interface (default: localhost).

port

Port that the props server is listening on (default: 5501).

Details

As soon as the connection is opened, the interface is switched to bulk data mode, and a help commend is issued. If FlightGear does not respond within 5 seconds with the expected help message, the function quits with an error. Otherwise the connection object is returned.

Value

A (socket) connection object, used with other package functions to control the simulator. It is your responsibility to close it when you don't need it anymore.


thlytras/rfgfs documentation built on May 31, 2019, 10:44 a.m.