I am currently doing a project on formation flight control (Using Matlab Simulink) and trying to visualize the flight data with FlightGear. Following the post on wiki (http://wiki.flightgear.org/Howto:Multiplayer#Local_setup_for_testing), two instances are created but in each display window there is only one aircraft. (So instead of a pair of aircrafts flying in formation, there are two aircrafts flying lonely in each window.)
* Operating system: Windows 10, x64
* FlightGear version: v2016.1
* Commandline:
For lead aircraft in the formation:
- Code: Select all
C:
cd C:\Program Files\FlightGear
SET FG_ROOT=C:\Program Files\FlightGear\data
.\\bin\fgfs --aircraft=X15 --fdm=network,localhost,5501,5502,5503 --start-date-lat=2016:06:01:12:00:00 --timeofday=noon --fog-fastest --disable-clouds --enable-sound --in-air --enable-freeze --airport=KSFO --runway=10L --altitude=110000*2/5 --heading=90 --offset-distance=0 --offset-azimuth=0 --enable-ai-models --multiplay=out,10,127.0.0.1,5000 --multiplay=in,10,127.0.0.1,5001 --callsign=Test1
For wing aircraft in the formation:
- Code: Select all
C:
cd C:\Program Files\FlightGear
SET FG_ROOT=C:\Program Files\FlightGear\data
.\\bin\fgfs --aircraft=X15 --fdm=network,localhost,5501,5508,5503 --start-date-lat=2016:06:01:12:00:00 --timeofday=noon --fog-fastest --disable-clouds --enable-sound --in-air --enable-freeze --airport=KSFO --runway=10L --altitude=110000*2/5 --heading=90 --offset-distance=0 --offset-azimuth=0 --enable-ai-models --multiplay=out,10,127.0.0.1,5001 --multiplay=in,10,127.0.0.1,5000 --callsign=Test2
*Setting for "Send net_fdm Packet to FlightGear" in Simulink:
Lead aircraft:
Destination IP address: 127.0.0.1
Destination port: 5502
Sample time: 1/250
Wing aircraft:
Destination IP address: 127.0.0.1
Destination port: 5508
Sample time: 1/250
Could anyone find the problem or give any advice? Thanks~