mirror of
https://github.com/thooge/esp32-nmea2000-obp60.git
synced 2025-12-14 14:33:07 +01:00
#38: handle status for RMC and quality for GGA
This commit is contained in:
@@ -350,6 +350,10 @@ private:
|
|||||||
LOG_DEBUG(GwLog::DEBUG, "failed to parse RMC %s", msg.line);
|
LOG_DEBUG(GwLog::DEBUG, "failed to parse RMC %s", msg.line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (status != 'A' && status != 'a'){
|
||||||
|
LOG_DEBUG(GwLog::DEBUG, "invalid status %c for RMC %s",status, msg.line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
tN2kMsg n2kMsg;
|
tN2kMsg n2kMsg;
|
||||||
if (
|
if (
|
||||||
UD(GPST) &&
|
UD(GPST) &&
|
||||||
@@ -750,6 +754,10 @@ private:
|
|||||||
LOG_DEBUG(GwLog::DEBUG, "failed to parse GGA %s", msg.line);
|
LOG_DEBUG(GwLog::DEBUG, "failed to parse GGA %s", msg.line);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (GPSQualityIndicator == 0){
|
||||||
|
LOG_DEBUG(GwLog::DEBUG, "quality 0 (no fix) for GGA %s", msg.line);
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (! updateDouble(boatData->GPST,GPSTime,msg.sourceId)) return;
|
if (! updateDouble(boatData->GPST,GPSTime,msg.sourceId)) return;
|
||||||
if (! updateDouble(boatData->LAT,Latitude,msg.sourceId)) return;
|
if (! updateDouble(boatData->LAT,Latitude,msg.sourceId)) return;
|
||||||
if (! updateDouble(boatData->LON,Longitude,msg.sourceId)) return;
|
if (! updateDouble(boatData->LON,Longitude,msg.sourceId)) return;
|
||||||
|
|||||||
Reference in New Issue
Block a user