From 7c3cafc26c00036045d48313e63a84412f3623eb Mon Sep 17 00:00:00 2001 From: bert hubert Date: Fri, 14 Feb 2020 22:28:57 +0100 Subject: [PATCH] pretty up names of SVs a bit in case of unknown constellations --- navmon.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/navmon.cc b/navmon.cc index b331379..cd78f19 100644 --- a/navmon.cc +++ b/navmon.cc @@ -259,12 +259,14 @@ char getGNSSChar(int id) { if(id==0) return 'G'; - if(id==2) + else if(id==2) return 'E'; - if(id==3) + else if(id==3) return 'C'; - if(id==6) + else if(id==6) return 'R'; + else if(id==255) + return '?'; else return '0'+id; } @@ -326,6 +328,6 @@ std::string sbasName(int prn) else sbas ="SBAS"; - sbas+=" " + std::to_string(prn); + sbas+="? " + std::to_string(prn); return sbas; }