From 25410a5baa15c84cbea7d498b13cb28558a64764 Mon Sep 17 00:00:00 2001 From: bert hubert Date: Sun, 18 Sep 2022 00:46:49 +0200 Subject: [PATCH] accidentally set gnssid to 1 instead of 0 which configed navparse mightily. also misset sigid --- septool.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/septool.cc b/septool.cc index 485eb4b..695b3eb 100644 --- a/septool.cc +++ b/septool.cc @@ -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);