Hyde wrote:... and run 777-200ER but FG never start up. fgrun might not take any parameter.
So I type command /usr/local/bin/fgfs --telnet=9321 and this time FG starts with default c172p and KSFC airport.
Unfortunately, due to the fact that those aircraft have custom APs, FGFSCopilot is NOT compatible with them. I've done most testing with the 787, Rallye, and Cessna Caravan. Anything with the generic AP dialog should be compatible, even helis.
That's bad. I think 777-200ER's autopilot is the most realistic one. Other autopilot is just to fly easy. That's why I am sticking to 777 autopilot. Please consider to make interface to it. Until then, I will use 787 autopilot anyway.
This is me assuming that you get icons on a Desktop or some sort of similar interface to work with. In Windows, simply double-click on an icon to open the program it represents. In this case, it would be the JAR file named "FGFSCopilot16". But, since I know you don't use Windows, I'm going to assume you run programs from a terminal command. In that case, it won't be as simple as double-clicking. Sorry to confuse you.I first run the fgrun. (FlightGear Launch Control 1.5.2)
Then change Executable: from /usr/local/bin/fgfs to /usr/local/bin/fgfs --telnet=9321 and run 777-200ER but FG never start up. fgrun might not take any parameter.
Yes, "FGFSCopilot16.jar" is a simple compressed file in Fedora. Let me know how to run this file. Do I need an application to run it?
EDIT: I've found it! Turns out that adding "--telnet=9321" to the executable was just a quick and dirty hack. Here's how it should be done. You need to add the following command: --telnet=socket,in,5,localhost,9321,tcp.
To do this in FGRun, go to the last page, click Advanced...>Input/OutPut. Click New. Select the telnet protocol, the socket medium, the in direction, and port 9321. Since we're using telnet, make sure tcp is selected. And the hostname is localhost. Any frequency (Hz) of 5 or less should be fine. The program is a bit of a good-sized chunk for an addon, and will take a few seconds for each execution. So, if it doesn't seem to want to run at the frequency you specify, that's why. And don't worry if that happens. I've written in latency compensation factors and such to deal with it, making autolanding possible.
My fgrun does not have telnet protocol. I found "Show command line" in the last page and I copied it and made shell with "--telnet=9321". It works. Now I can start up FG with that parameter.
You can ask to add your parameter in the fgrun.
Anyway I can run FG now. please let me know how to run your java application.
--Edit
I found to run jar file.
$java -jar FGFSCopilot16.jar
I will report how is it going later. Let me sleep. Thank your help.