sbas naming function

pull/98/head
bert hubert 2020-02-11 16:33:27 +01:00
parent 9c690ea663
commit cabc33557e
2 changed files with 24 additions and 0 deletions

View File

@ -307,3 +307,25 @@ string makeHexDump(const string& str)
}
return ret;
}
std::string sbasName(int prn)
{
string sbas;
if(prn == 138 || prn == 131 || prn == 133) {
sbas = "WAAS";
}
else if(prn== 126 || prn == 136 || prn == 123 ) {
sbas = "EGNOS";
}
else if(prn == 140 || prn == 125 || prn == 141) {
sbas = "SDCM";
}
else if(prn == 127 || prn == 128 || prn == 138) {
sbas ="GAGAN";
}
else
sbas ="SBAS";
sbas+=" " + std::to_string(prn);
return sbas;
}

View File

@ -66,6 +66,8 @@ char getGNSSChar(int id);
std::string makeSatIDName(const SatID& satid);
std::string makeSatPartialName(const SatID& satid);
std::string sbasName(int prn);
extern int g_dtLS, g_dtLSBeidou;
uint64_t utcFromGST(int wn, int tow);
double utcFromGST(int wn, double tow);