]> git.mxchange.org Git - flightgear.git/blob - examples/netfdm/README
Handle scroll wheel events in osgViewer version
[flightgear.git] / examples / netfdm / README
1 David Calkins writes:
2
3 I've attached my sample code which works with FlightGear v0.9.3.  Perhaps this
4 will be of some help to others.  I'm running FG with the launcher wizard, which
5 uses the below command line options.  The sample code I attached just rolls
6 back and forth ± 5 degrees so it isn't that interesting, but it works.
7
8 C:\Program Files\FlightGear-0.9.3\bin\Win32\fgfs.exe
9   --fg-root=C:\Program Files\FlightGear-0.9.3\data
10   --fg-scenery=C:\Program Files\FlightGear-0.9.3\data\Scenery
11   --aircraft=c172
12   --control=joystick
13   --disable-random-objects
14   --fdm=external
15   --vc=0
16   --bpp=32
17   --timeofday=noon
18   --native-fdm=socket,in,1,,5500,udp
19
20 One point of interest is the cur_time field in the FGNetFDM structure.
21 I noticed that it didn't seem to matter what time I passed in.  In looking at
22 the source, it appears this field is ignored completely.  So, it looks like the
23 time of day would need to be determined by the command line parameters used to
24 launch FlightGear.
25
26 Dave