📄 gsaresponse.cpp
字号:
// GSAResponse.cpp: implementation of the CGSAResponse class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "GSAResponse.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CGSAResponse::CGSAResponse()
{
Empty();
}
CGSAResponse::~CGSAResponse()
{
Empty();
}
void CGSAResponse::Empty()
{
m_StateWay = _T("");
m_StateType = 0;
m_1Cha = 0;
m_2Cha = 0;
m_3Cha = 0;
m_4Cha = 0;
m_5Cha = 0;
m_6Cha = 0;
m_7Cha = 0;
m_8Cha = 0;
m_9Cha = 0;
m_10Cha = 0;
m_11Cha = 0;
m_12Cha = 0;
m_PDOP = 0.00;
m_HDOP = 0.00;
m_VDOP = 0.00;
}
BOOL CGSAResponse::Parse(const CNmeaSentence &sentence)
{
m_StateWay = sentence.String(1);
m_StateType = sentence.Integer(2);
m_1Cha = sentence.Integer(3);
m_2Cha = sentence.Integer(4);
m_3Cha = sentence.Integer(5);
m_4Cha = sentence.Integer(6);
m_5Cha = sentence.Integer(7);
m_6Cha = sentence.Integer(8);
m_7Cha = sentence.Integer(9);
m_8Cha = sentence.Integer(10);
m_9Cha = sentence.Integer(11);
m_10Cha = sentence.Integer(12);
m_11Cha = sentence.Integer(13);
m_12Cha = sentence.Integer(14);
m_PDOP = sentence.Double(15);
m_HDOP = sentence.Double(16);
m_VDOP = sentence.Double(17);
return TRUE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -