1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00

Pass the correct port numbers to the simulator.

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1666 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-09-16 21:54:25 +00:00 committed by cranphin
parent a6ca5b82e7
commit 303d2c19e1

View File

@ -101,10 +101,17 @@ bool FGSimulator::setupProcess()
// Setup arguments
// Note: The input generic protocol is set to update at a much higher rate than the actual updates are sent by the GCS.
// If this is not done then a lag will be introduced by FlightGear, likelly because the receive socket buffer builds up during startup.
QString args("--fg-root=\"" + settings.dataPath + "\" --timeofday=dusk --httpd=5400 --enable-hud --in-air --altitude=2000 --vc=100 --generic=socket,out,50,localhost,5500,udp,opfgprotocol");
QString args("--fg-root=\"" + settings.dataPath + "\" " +
"--timeofday=dusk " +
"--httpd=5400 " +
"--enable-hud " +
"--in-air " +
"--altitude=2000 " +
"--vc=100 " +
"--generic=socket,out,50,localhost," + QString::number(settings.inPort) + ",udp,opfgprotocol");
if(!settings.manual)
{
args.append(" --generic=socket,in,400,localhost,5501,udp,opfgprotocol");
args.append(" --generic=socket,in,400,localhost," + QString::number(settings.outPort) + ",udp,opfgprotocol");
}
// Start FlightGear