Description Usage Arguments Details Value
This function creates a socket connection to the FlightGear props (telnet) interface, via which the property tree can be queried and/or modified.
1 | fgfsConnect(host = "localhost", port = 5501)
|
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). |
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.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.