55 if (gps_type.contains(QStringLiteral(
"trimble"), Qt::CaseInsensitive)) {
57 rtkSettings->baseReceiverManufacturers()->setRawValue(1);
58 qCDebug(GPSRtkLog) <<
"Connecting Trimble device";
60 }
else if (gps_type.contains(QStringLiteral(
"septentrio"), Qt::CaseInsensitive)) {
62 rtkSettings->baseReceiverManufacturers()->setRawValue(2);
63 qCDebug(GPSRtkLog) <<
"Connecting Septentrio device";
65 }
else if (gps_type.contains(QStringLiteral(
"femtomes"), Qt::CaseInsensitive)) {
67 rtkSettings->baseReceiverManufacturers()->setRawValue(3);
68 qCDebug(GPSRtkLog) <<
"Connecting Femtomes device";
70 }
else if(gps_type.contains(QStringLiteral(
"blox"), Qt::CaseInsensitive)) {
72 rtkSettings->baseReceiverManufacturers()->setRawValue(4);
73 qCDebug(GPSRtkLog) <<
"Connecting U-blox device";
76 rtkSettings->baseReceiverManufacturers()->setRawValue(4);
77 qCDebug(GPSRtkLog) <<
"Connecting device has U-blox by default";
82 _requestGpsStop =
false;
84 rtkSettings->surveyInAccuracyLimit()->rawValue().toDouble(),
85 rtkSettings->surveyInMinObservationDuration()->rawValue().toInt(),
87 rtkSettings->fixedBasePositionLatitude()->rawValue().toDouble(),
88 rtkSettings->fixedBasePositionLongitude()->rawValue().toDouble(),
89 rtkSettings->fixedBasePositionAltitude()->rawValue().toFloat(),
90 rtkSettings->fixedBasePositionAccuracy()->rawValue().toFloat()
99 (void) QMetaObject::invokeMethod(_gpsProvider,
"start", Qt::AutoConnection);
107 (void) connect(_gpsProvider, &GPSProvider::finished,
this, &GPSRtk::_onGPSDisconnect);
109 (void) QMetaObject::invokeMethod(
this,
"_onGPSConnect", Qt::AutoConnection);
void surveyInStatus(float duration, float accuracyMM, double latitude, double longitude, float altitude, bool valid, bool active)