mirror of
git://projects.qi-hardware.com/nanomap.git
synced 2024-11-24 01:11:54 +02:00
emit a signal if the gps device got a fix
This commit is contained in:
parent
fd81fcf1f0
commit
0dd2f334d0
@ -78,7 +78,10 @@ void GpsClient::readData()
|
||||
}
|
||||
}
|
||||
if (mode > 1) {
|
||||
emit fixed(true);
|
||||
emit position(QPointF(lon, lat));
|
||||
} else {
|
||||
emit fixed(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -41,6 +41,7 @@ signals:
|
||||
void speed(qreal speed);
|
||||
void connected();
|
||||
void disconnected();
|
||||
void fixed(bool fix);
|
||||
|
||||
private slots:
|
||||
void readData();
|
||||
|
Loading…
Reference in New Issue
Block a user