Skip to content

Commit

Permalink
Update qgsnmeaconnection.cpp
Browse files Browse the repository at this point in the history
- undeleted old lines of code, already fixed above;
- update Direction from GPVTG if present, with NMEA streams excluding GPRMC ( like qgis#51346 )
  • Loading branch information
bettellam authored and nyalldawson committed Jan 10, 2023
1 parent 74c6048 commit b1186b2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/core/gps/qgsnmeaconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -435,10 +435,6 @@ void QgsNmeaConnection::processGsvSentence( const char *data, int len )
}
}

if ( currentSatellite.sig > 0 )
{
satelliteInfo.inUse = 1; // check where used ???? (+=1)
}
if ( !idAlreadyPresent && currentSatellite.azimuth > 0 && currentSatellite.elv > 0 )
{
mLastGPSInformation.satellitesInView.append( satelliteInfo );
Expand All @@ -454,6 +450,8 @@ void QgsNmeaConnection::processVtgSentence( const char *data, int len )
if ( nmea_parse_GPVTG( data, len, &result ) )
{
mLastGPSInformation.speed = result.spk;
if ( !std::isnan( result.dir ) )
mLastGPSInformation.direction = result.dir;
}
}

Expand Down

0 comments on commit b1186b2

Please sign in to comment.