3 Star 4 Fork 3

Liyanyi / GNSS TJPPP

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
QBaseObject.cpp 1.73 KB
一键复制 编辑 原始数据 按行查看 历史
Liyanyi 提交于 2021-12-06 01:15 . 提交第一版主文件
#include "QBaseObject.h"
//Initialization data
void QBaseObject::initVar()
{
IsaddGPS = false;
IsaddGLOSS = false;
IsaddBDS = false;
IsaddGalieo = false;
m_SystemNum = 0;
m_PPP_MODEL = PPP_MODEL::PPP_Combination;
m_floder_name = "";
}
//
QBaseObject::QBaseObject(void)
{
initVar();
}
//
QBaseObject::~QBaseObject(void)
{
}
//Setting up the file system. SystemStr:"G"(Turn on the GPS system);"GR":(Turn on the GPS+GLONASS system);"GRCE"(Open all)et al
//GPS, GLONASS, BDS, and Galieo are used respectively: the letters G, R, C, E
bool QBaseObject::setSatlitSys(QString SystemStr)
{
if (!(SystemStr.contains("G")||SystemStr.contains("R")||SystemStr.contains("C")||SystemStr.contains("E")))
return false;
m_SystemStr = SystemStr;// save systeam sat
//
if (SystemStr.contains("G"))
{
IsaddGPS = true;
m_SystemNum++;
}
else
IsaddGPS = false;
//
if (SystemStr.contains("R"))
{
IsaddGLOSS = true;
m_SystemNum++;
}
else
IsaddGLOSS = false;
//
if (SystemStr.contains("C"))
{
IsaddBDS = true;
m_SystemNum++;
}
else
IsaddBDS = false;
//
if (SystemStr.contains("E"))
{
IsaddGalieo = true;
m_SystemNum++;
}
else
IsaddGalieo = false;
return true;
}
//Sys = G R C E(Representing GPS, GLONASS, BDS, Galieo systems)Determine if the system data is needed
bool QBaseObject::isInSystem(char Sys)
{
if (IsaddGPS&&Sys == 'G')
return true;
else if (IsaddGLOSS&&Sys == 'R')
return true;
else if (IsaddBDS&&Sys == 'C')
return true;
else if (IsaddGalieo&&Sys == 'E')
return true;
return false;
}
//Get the current face set several systems
int QBaseObject::getSystemnum()
{
return m_SystemNum;
}
//Get the current face set several systems
QString QBaseObject::getSatlitSys()
{
return m_SystemStr;
}
1
https://gitee.com/liyanyi19981104/gnss-tjppp.git
git@gitee.com:liyanyi19981104/gnss-tjppp.git
liyanyi19981104
gnss-tjppp
GNSS TJPPP
master

搜索帮助