gpsdecode.cpp

来自「gps、电子罗盘测试,主要针对GPS1050和TCM3」· C++ 代码 · 共 75 行

CPP
75
字号
#include "stdafx.h"

void Decode(char *pString)
{
	char str[7];
	str[6]=0;
	memcpy(str,pString,6);
	/*CString s;
	s.Format("%s",str);
	AfxMessageBox(s);*/
	if(strcmp(str,"$GPGGA")==0)
	{
//	AfxMessageBox(str);		
		GPGGADecode(pString,)
	}
	if(strcmp(str,"$GPGLL")==0)
	{
//	AfxMessageBox(str);		
	}
	if(strcmp(str,"$GPGGA")==0)
	{
//	AfxMessageBox(str);		
	}
	if(strcmp(str,"$GPGSA")==0)
	{
//	AfxMessageBox(str);		
	}
	if(strcmp(str,"$GPGSV")==0)
	{
//	AfxMessageBox(str);		
	}
	if(strcmp(str,"$GPRMC")==0)
	{
//	AfxMessageBox(str);		
	}
	if(strcmp(str,"$GPVTG")==0)
	{
//	AfxMessageBox(str);		
	}
	if(strcmp(str,"$GPZDA")==0)
	{
//	AfxMessageBox(str);		
	}

}

void GPGGADecode(char *pString,GPGGA & gp)
{

}
void GPGLLDecode(char *pString,GPGLL & gp)
{

}
void GPGSADecode(char *pString,GPGSA & gp)
{

}
void GPGSVDecode(char *pString,GPGSV & gp)
{

}
void GPRMCDecode(char *pString,GPRMC & gp)
{

}
void GPVTGDecode(char *pString,GPVTG & gp)
{

}
void GPZDADecode(char *pString,GPZDA & gp)
{

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?