From 3ff7452dbe8f47aea77629be397c2ec8ca9f890c Mon Sep 17 00:00:00 2001 From: Mariano Lizarraga Date: Fri, 19 Nov 2010 18:27:05 -0600 Subject: [PATCH] Trying to find serial performance issue --- src/comm/SerialLink.cc | 3 ++- src/ui/SlugsDataSensorView.cc | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/comm/SerialLink.cc b/src/comm/SerialLink.cc index 71efcfe33a..5e7a6df3b4 100644 --- a/src/comm/SerialLink.cc +++ b/src/comm/SerialLink.cc @@ -89,7 +89,8 @@ SerialLink::SerialLink(QString portname, BaudRateType baudrate, FlowType flow, P } #else // *nix (Linux, MacOS tested) serial port support - port = new QextSerialPort(porthandle, QextSerialPort::Polling); + //port = new QextSerialPort(porthandle, QextSerialPort::Polling); + port = new QextSerialPort(porthandle, QextSerialPort::EventDriven); port->setTimeout(timeout); // Timeout of 0 ms, we don't want to wait for data, we just poll again next time port->setBaudRate(baudrate); port->setFlowControl(flow); diff --git a/src/ui/SlugsDataSensorView.cc b/src/ui/SlugsDataSensorView.cc index 5aed013188..fae39cc0cb 100644 --- a/src/ui/SlugsDataSensorView.cc +++ b/src/ui/SlugsDataSensorView.cc @@ -34,9 +34,9 @@ void SlugsDataSensorView::addUAS(UASInterface* uas) //connect standar messages connect(slugsMav, SIGNAL(localPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugLocalPositionChanged(UASInterface*,double,double,double,quint64))); - connect(slugsMav, SIGNAL(speedChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugSpeedLocalPositionChanged(UASInterface*,double,double,double,quint64))); - connect(slugsMav, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugAttitudeChanged(UASInterface*,double,double,double,quint64))); - connect(slugsMav, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugsGlobalPositionChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav, SIGNAL(speedChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugSpeedLocalPositionChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav, SIGNAL(attitudeChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugAttitudeChanged(UASInterface*,double,double,double,quint64))); + connect(slugsMav, SIGNAL(globalPositionChanged(UASInterface*,double,double,double,quint64)), this, SLOT(slugsGlobalPositionChanged(UASInterface*,double,double,double,quint64))); -- GitLab