#39: do not send 129539 from GSA if fix mode is not 2 or 3 - also do not set xDOP

This commit is contained in:
andreas 2022-03-27 17:32:59 +02:00
parent cf3e1fb0b3
commit 16a2ea32cb
1 changed files with 4 additions and 1 deletions

View File

@ -782,7 +782,10 @@ private:
return;
}
int fixMode=atoi(msg.Field(1));
if (fixMode != 2 && fixMode != 3){
LOG_DEBUG(GwLog::DEBUG,"no fix in GSA, mode=%d",fixMode);
return;
}
tN2kMsg n2kMsg;
tN2kGNSSDOPmode mode=N2kGNSSdm_Unavailable;
if (fixMode >= 0 && fixMode <=3) mode=(tN2kGNSSDOPmode)fixMode;