Skip to content

Commit

Permalink
give observer green flag if we've once seen an SSP
Browse files Browse the repository at this point in the history
  • Loading branch information
berthubert committed Sep 18, 2022
1 parent 181555e commit 5cbfc89
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions navparse.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,12 @@ try
auto& gm = svstat.galmsg;
unsigned int wtype = gm.parse(inav);

auto& o = g_srcfacts[nmm.sourceid()];
if(nmm.gi().has_ssp()) {
o.impinav = true;
o.impinavTime = nmm.localutcseconds();
}

if(wtype == 5 && svstat.galmsgTyped.count(5)) {
const auto& old5gm = svstat.galmsgTyped[5];
if(make_tuple(old5gm.e5bhs, old5gm.e1bhs, old5gm.e5bdvs, old5gm.e1bdvs) !=
Expand Down Expand Up @@ -2159,9 +2165,6 @@ try
}, satUTCTime(id));
svstat.impinav = true;
svstat.impinavTime = nmm.gi().gnsstow();
auto& o = g_srcfacts[nmm.sourceid()];
o.impinav = true;
o.impinavTime = nmm.localutcseconds();
}
}
else if(nmm.type() == NavMonMessage::GalileoCnavType) {
Expand Down

0 comments on commit 5cbfc89

Please sign in to comment.