diff --git a/Makefile b/Makefile index 5e45bc8..ebf2c4b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CFLAGS = -O3 -Wall -ggdb -CXXFLAGS:= -std=gnu++17 -Wall -O2 -ggdb -MMD -MP -fno-omit-frame-pointer -Iext/CLI11 \ +CXXFLAGS:= -std=gnu++17 -Wall -O0 -ggdb -MMD -MP -fno-omit-frame-pointer -Iext/CLI11 \ -Iext/fmt-6.1.2/include/ -Iext/powerblog/ext/simplesocket -Iext/powerblog/ext/ \ -I/usr/local/opt/openssl/include/ \ -Iext/sgp4/libsgp4/ \ diff --git a/navdump.cc b/navdump.cc index d23a550..d21939a 100644 --- a/navdump.cc +++ b/navdump.cc @@ -1128,6 +1128,18 @@ try } cout<set_gnssid(2); // Galileo only for now - nmm.mutable_sr()->set_gnsssv(sv); - nmm.mutable_sr()->set_sigid(0); // we should fill this in later + nmm.mutable_sr()->set_gnsssv(payload[2]); + nmm.mutable_sr()->set_sigid(1); // nmm.mutable_sr()->set_type(payload[1]); nmm.mutable_sr()->set_identifier(string((char*)payload.c_str()+4, 8)); nmm.mutable_sr()->set_code(payload[12]); nmm.mutable_sr()->set_params(string((char*)payload.c_str()+13, payload.size()-14)); + string hexstring; - for(int n = 0; n < 15; ++n) + for(int n = 0; n < 15; ++n) hexstring+=fmt::sprintf("%x", (int)getbitu(payload.c_str(), 36 + 4*n, 4)); - // if (doDEBUG) { cerr<