mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-02 10:24:11 +01:00
GCS FlightGear sim: This is how it's done in the manual, and seems to
work well for me :) git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1689 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
e59a58aa0e
commit
0441b8b786
@ -183,8 +183,7 @@ void Simulator::receiveUpdate()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Process data
|
// Process data
|
||||||
while(inSocket->bytesAvailable() > 0)
|
while(inSocket->hasPendingDatagrams()) {
|
||||||
{
|
|
||||||
// Receive datagram
|
// Receive datagram
|
||||||
QByteArray datagram;
|
QByteArray datagram;
|
||||||
datagram.resize(inSocket->pendingDatagramSize());
|
datagram.resize(inSocket->pendingDatagramSize());
|
||||||
|
Loading…
Reference in New Issue
Block a user