From 62e29ceaf8d8372a083ed67cbaa2c3ad88aa01f7 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Wed, 1 Jan 2020 09:29:29 -0800 Subject: [PATCH 1/3] updated .gitignore and Makefile to cleanly handle githash --- .gitignore | 2 ++ Makefile | 1 + 2 files changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index bbae22d..10a930a 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ navcat navdisplay navdump navnexus +navparse navrecv testrunner tlecatch @@ -18,6 +19,7 @@ glo-ops.txt gps-ops.txt # - git version internals githash.h +githash # *.csv diff --git a/Makefile b/Makefile index edc4131..24d10cd 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,7 @@ SIMPLESOCKETS=ext/powerblog/ext/simplesocket/swrappers.o ext/powerblog/ext/simpl clean: rm -f *~ *.o *.d ext/*/*.o $(PROGRAMS) navmon.pb.h navmon.pb.cc $(patsubst %.cc,%.o,$(wildcard ext/sgp4/libsgp4/*.cc)) $(H2OPP) $(SIMPLESOCKETS) rm -f ext/fmt-5.2.1/src/format.o + rm -f githash.h githash navparse: navparse.o ext/fmt-5.2.1/src/format.o $(H2OPP) $(SIMPLESOCKETS) minicurl.o ubx.o bits.o navmon.pb.o gps.o ephemeris.o beidou.o glonass.o $(patsubst %.cc,%.o,$(wildcard ext/sgp4/libsgp4/*.cc)) tle.o navmon.o coverage.o osen.o From 4f6399c703ee749dda619624f2a3368d30d23536 Mon Sep 17 00:00:00 2001 From: Martin Levy Date: Fri, 3 Jan 2020 16:57:39 -0800 Subject: [PATCH 2/3] cleaned cerr - now with added times and corrected newlines where needed --- ubxtool.cc | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/ubxtool.cc b/ubxtool.cc index 5324227..daabd2f 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -232,7 +232,7 @@ UBXMessage sendAndWaitForUBX(int fd, int seconds, basic_string_view msg catch(...) { if(n==1) throw; - cerr<<"Retransmit"< ms catch(...) { if(n==1) throw; - cerr<<"Retransmit"<dst.toStringWithPort()<<" had error"; } { std::lock_guard mut(d->mut); - if (doDEBUG) { cerr<<"There are now "<queue.size()<<" messages queued for "<dst.toStringWithPort()<queue.size()<<" messages queued for "<dst.toStringWithPort()< Date: Fri, 3 Jan 2020 17:29:59 -0800 Subject: [PATCH 3/3] wait for timestamp before processing any messages --- ubxtool.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ubxtool.cc b/ubxtool.cc index daabd2f..ec40cc8 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -917,6 +917,12 @@ int main(int argc, char** argv) memcpy(&pvt, &payload[0], sizeof(pvt)); // cerr<>2)<<","<<(int)(pvt.valid&0x02>>1)<<","<<(int)(pvt.valid&0x01>>0)<