Important: Please read the Qt Code of Conduct -

QPositioning horizontal accuracy missing

  • I use the QPositioning library to parse the incoming NMEA sentences from our serial GPS receiver. The coordinates are returned correctly but the horizontal accuracy is not returned. The horizontal accuracy attribute should be present int the QGeoPositionInfo object according to the function:


    But reading the attribute returns a nan.

    The serial port is read using the serialnmea plugin connected to a handling funtion using:

    m_pPositionSource = QGeoPositionInfoSource::createSource("serialnmea", params, this);
    connect(m_pPositionSource, &QGeoPositionInfoSource::positionUpdated, this, &CGPS::HandleGPSRead);

    The inputted nmea data is as follows:


    If both the GPGGA and GPGSA messages contain the Horizontal Dilution of Precision (HDOP) describing the accuracy of the GPS location. However as described above the QPositioning library doesn't output the horizontal accuracy.

    My questions are:

    • What NMEA messages are used in determining the horizontal accuracy?
    • How can I get the horizontal accuracy out of the library?

    I use QT 5.15.1 and running on Debian 10.3

  • @wouter_inspiro , I've noticed the same thing. Did you happen to resolve the missing Horizontal Accuracy?

Log in to reply