1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

HITL: Flightgear did not work properly anymore in full SITL mode with the new throttling system (udp sent/received difference getting too big before FG sent its 1st packet). Fixed. Please report...

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2258 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
edouard 2010-12-19 21:14:07 +00:00 committed by edouard
parent fc66814ed3
commit 39d0b2e4a7

View File

@ -189,10 +189,12 @@ void FGSimulator::transmitUpdate()
int allowableDifference = 10;
//qDebug() << "UDP sent:" << udpCounterGCSsend << " - UDP Received:" << udpCounterFGrecv;
if(udpCounterFGrecv == udpCounterGCSsend)
udpCounterGCSsend = 0;
if(udpCounterGCSsend < allowableDifference ) //FG udp queue is not delayed
if((udpCounterGCSsend < allowableDifference) || (udpCounterFGrecv==0) ) //FG udp queue is not delayed
{
udpCounterGCSsend++;