|
QGroundControl
Ground Control Station for MAVLink Drones
|
#include <NTRIPSourceTable.h>
Public Member Functions | |
| void | updateDistance (const QGeoCoordinate &from) |
| Recompute distanceKm, or mark it unknown for invalid reference/mountpoint coordinates. | |
| QString | details () const |
Static Public Member Functions | |
| static std::optional< NTRIPMountpoint > | fromSourceTableLine (const QString &line) |
| Parses one source-table line ("STR;..."); none unless it is a valid STR row. | |
Public Attributes | |
| QString | mountpoint |
| The format, navigation systems, country, bitrate and distance that are known, as one line. | |
| QString | format |
| QString | navSystem |
| QString | country |
| int | bitrate = 0 |
| double | distanceKm = -1.0 |
| double | latitude = qQNaN() |
| double | longitude = qQNaN() |
The parsed fields of an NTRIP source-table STR row that the mountpoint list shows or sorts by. All fields are immutable after parse except distanceKm, which is recomputed by updateDistances(). Each property is a model role of the same name.
Definition at line 20 of file NTRIPSourceTable.h.
| QString NTRIPMountpoint::details | ( | ) | const |
Definition at line 61 of file NTRIPSourceTable.cc.
References bitrate, country, distanceKm, format, and navSystem.
|
static |
Parses one source-table line ("STR;..."); none unless it is a valid STR row.
Definition at line 26 of file NTRIPSourceTable.cc.
References bitrate, country, format, latitude, longitude, mountpoint, and navSystem.
Referenced by NTRIPSourceTableModel::parseSourceTable().
| void NTRIPMountpoint::updateDistance | ( | const QGeoCoordinate & | from | ) |
Recompute distanceKm, or mark it unknown for invalid reference/mountpoint coordinates.
Definition at line 51 of file NTRIPSourceTable.cc.
References distanceKm, latitude, and longitude.
Referenced by NTRIPSourceTableModel::updateDistances().
| int NTRIPMountpoint::bitrate = 0 |
Definition at line 37 of file NTRIPSourceTable.h.
Referenced by details(), and fromSourceTableLine().
| QString NTRIPMountpoint::country |
Definition at line 36 of file NTRIPSourceTable.h.
Referenced by details(), and fromSourceTableLine().
| double NTRIPMountpoint::distanceKm = -1.0 |
Definition at line 38 of file NTRIPSourceTable.h.
Referenced by details(), updateDistance(), and NTRIPSourceTableModel::updateDistances().
| QString NTRIPMountpoint::format |
Definition at line 34 of file NTRIPSourceTable.h.
Referenced by details(), and fromSourceTableLine().
| double NTRIPMountpoint::latitude = qQNaN() |
Definition at line 39 of file NTRIPSourceTable.h.
Referenced by fromSourceTableLine(), and updateDistance().
| double NTRIPMountpoint::longitude = qQNaN() |
Definition at line 40 of file NTRIPSourceTable.h.
Referenced by fromSourceTableLine(), and updateDistance().
| QString NTRIPMountpoint::mountpoint |
The format, navigation systems, country, bitrate and distance that are known, as one line.
Definition at line 33 of file NTRIPSourceTable.h.
Referenced by fromSourceTableLine().
| QString NTRIPMountpoint::navSystem |
Definition at line 35 of file NTRIPSourceTable.h.
Referenced by details(), and fromSourceTableLine().