Skip to content

Commit

Permalink
accidentally set gnssid to 1 instead of 0 which configed navparse mig…
Browse files Browse the repository at this point in the history
…htily. also misset sigid
  • Loading branch information
berthubert committed Sep 17, 2022
1 parent af0e4b7 commit 25410a5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions septool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -382,10 +382,12 @@ by the decoding software.
nmm.set_localutcseconds(t);
nmm.set_localutcnanoseconds((t - floor(t))*1000000000);

nmm.mutable_gpsi()->set_gnsswn(ga.wn);
nmm.mutable_gpsi()->set_sigid(sigid);
nmm.mutable_gpsi()->set_gnsswn(ga.wn);
int pbsigid=sepsig2ubx(sigid);
nmm.mutable_gpsi()->set_sigid(pbsigid);

nmm.mutable_gpsi()->set_gnsstow(ga.towMsec/1000 - 6); // needs to be adjusted to beginning of message
nmm.mutable_gpsi()->set_gnssid(1);
nmm.mutable_gpsi()->set_gnssid(0);
nmm.mutable_gpsi()->set_gnsssv(ga.sv);
nmm.mutable_gpsi()->set_contents(string((char*)payload.c_str(), payload.size()));
ns.emitNMM( nmm);
Expand Down

0 comments on commit 25410a5

Please sign in to comment.