From 9f548a143b5ff809701747264fe88d37a8879d19 Mon Sep 17 00:00:00 2001 From: nousian <37895471+nousian@users.noreply.github.com> Date: Sat, 4 Jan 2020 18:37:40 +0200 Subject: [PATCH] Update ubxtool.cc Made the output bit nicer by translating constellation names. --- ubxtool.cc | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/ubxtool.cc b/ubxtool.cc index 5324227..8f723aa 100644 --- a/ubxtool.cc +++ b/ubxtool.cc @@ -528,6 +528,20 @@ int initFD(const char* fname, bool doRTSCTS) } +char getGNSSChar(int id) +{ + if(id==0) + return 'G'; + if(id==2) + return 'E'; + if(id==3) + return 'C'; + if(id==6) + return 'R'; + else + return '0'+id; +} + // ubxtool device srcid int main(int argc, char** argv) { @@ -1098,7 +1112,7 @@ int main(int argc, char** argv) if(time(0)- lastStat > 30) { cerr<(s)<<","<(s)<<"@"<(s)<<" "; + cerr<(s))<(s)<<"@"<(s)<<" "; } cerr<