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

Minor tidying on GPS display

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1313 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
cranphin 2010-08-18 00:02:32 +00:00 committed by cranphin
parent 39a93a72fd
commit 85c335aa5d
3 changed files with 20 additions and 1 deletions

View File

@ -30,6 +30,15 @@
#include <QDebug>
GpsDisplayThread::GpsDisplayThread(QObject *parent)
: QThread(parent)
{
}
GpsDisplayThread::~GpsDisplayThread()
{
}
void GpsDisplayThread::setPort(QextSerialPort* port)
{

View File

@ -35,12 +35,16 @@
class GpsDisplayThread : public QThread
{
Q_OBJECT
public:
GpsDisplayThread(QObject *parent = 0);
~GpsDisplayThread();
QextSerialPort *port;
NMEAParser *parser;
void setPort(QextSerialPort* port);
void setParser(NMEAParser* parser);
void processInputStream();
void run();
};

View File

@ -153,6 +153,12 @@ void GpsDisplayWidget::setPort(QextSerialPort* port)
this->port=port;
}
void GpsDisplayWidget::setParser(NMEAParser* parser)
{
this->parser=parser;
}
void GpsDisplayWidget::connectButtonClicked() {
GpsDisplayThread* gpsThread = new GpsDisplayThread();
widget->textBrowser->append(QString("Connecting to GPS ...\n"));