Skip to content

Commit

Permalink
#39: do not send 129539 from GSA if fix mode is not 2 or 3 - also do …
Browse files Browse the repository at this point in the history
…not set xDOP
  • Loading branch information
andreas committed Mar 27, 2022
1 parent cf3e1fb commit 16a2ea3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/nmea0183ton2k/NMEA0183DataToN2K.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,10 @@ class NMEA0183DataToN2KFunctions : public NMEA0183DataToN2K
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;
Expand Down

0 comments on commit 16a2ea3

Please sign in to comment.