@ -49,6 +49,10 @@ QGCFlightGearLink::QGCFlightGearLink(UASInterface* mav, QString startupArguments
_sensorHilEnabled(true),
barometerOffsetkPa(0.0f)
{
// We're doing it wrong - because the Qt folks got the API wrong:
// http://blog.qt.digia.com/blog/2010/06/17/youre-doing-it-wrong/
moveToThread(this);
this->host = host;
this->port = port+mav->getUASID();
this->connectState = false;
@ -44,6 +44,10 @@ QGCJSBSimLink::QGCJSBSimLink(UASInterface* mav, QString startupArguments, QStrin
process(NULL),
startupArguments(startupArguments)
@ -58,6 +58,10 @@ QGCXPlaneLink::QGCXPlaneLink(UASInterface* mav, QString remoteHost, QHostAddress
simUpdateHz(0),
_sensorHilEnabled(true)
this->localHost = localHost;
this->localPort = localPort/*+mav->getUASID()*/;
@ -28,6 +28,10 @@ SerialLink::SerialLink(QString portname, int baudRate, bool hardwareFlowControl,
m_stopp(false),
m_reqReset(false)
// Get the name of the current port in use.
m_portName = portname.trimmed();
if (m_portName == "" && getCurrentPorts().size() > 0)
@ -43,6 +43,10 @@ TCPLink::TCPLink(QHostAddress hostAddress, quint16 socketPort) :
_socket(NULL),
_socketIsConnected(false)
_linkId = getNextLinkId();
_resetName();
@ -42,6 +42,9 @@ This file is part of the QGROUNDCONTROL project
UDPLink::UDPLink(QHostAddress host, quint16 port) :
socket(NULL)
this->port = port;