📄 gpspointdlg.h
字号:
// GpsPointDlg.h : header file
//
//{{AFX_INCLUDES()
#include "mscomm.h"
#include "SetPoint.h"
#include "Draw.h"
#include "ccommdlg.h"
//}}AFX_INCLUDES
#if !defined(AFX_GPSPOINTDLG_H__224D970A_7D47_4B6D_B502_ABAB82F5388B__INCLUDED_)
#define AFX_GPSPOINTDLG_H__224D970A_7D47_4B6D_B502_ABAB82F5388B__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
/////////////////////////////////////////////////////////////////////////////
// CGpsPointDlg dialog
class CGpsPointDlg : public CDialog
{
// Construction
public:
CString strGpsFile;
int m_iTimer;
CDraw * pDraw;
CSetPoint* cp;
//上一次采集的数据和时间
double dLate0;
double dLong0;
long lTime0;
long lTime1;//第一个点开始的时间
LateLong Point[101];
int iPoint;
BOOL m_bSetPoint;
BOOL m_bDraw;
//采集文件变量
LateLong lastLL;
int iCount;
CGpsPointDlg(CWnd* pParent = NULL); // standard constructor
// Dialog Data
//{{AFX_DATA(CGpsPointDlg)
enum { IDD = IDD_GPSPOINT_DIALOG };
CStatic m_Msg;
CButton m_BtnSound;
CStatic m_Icon;
CButton m_BtnSave;
CButton m_ReadFile;
CListBox m_ListPoint;
CComboBox m_Time;
CStatic m_SP;
CButton m_BtnPoint;
CButton m_BtnSetup;
CButton m_BtnSatrtEnd;
CMSComm m_MsComm;
CCommDlg m_Dlg;
//}}AFX_DATA
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CGpsPointDlg)
public:
virtual BOOL PreTranslateMessage(MSG* pMsg);
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
// Implementation
protected:
HICON m_hIcon;
// Generated message map functions
//{{AFX_MSG(CGpsPointDlg)
virtual BOOL OnInitDialog();
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
afx_msg void OnButtonStartEnd();
afx_msg void OnOnCommMscomm();
afx_msg void OnButtonSetup();
afx_msg void OnButtonPoint();
afx_msg void OnButtonDraw();
afx_msg void OnTimer(UINT nIDEvent);
afx_msg void OnSelchangeComboTime();
afx_msg void OnCheckLog();
afx_msg void OnDestroy();
afx_msg void OnCheckSound();
afx_msg void OnButtonTest();
DECLARE_EVENTSINK_MAP()
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
private:
double PAI;
CString m_strAppTitle;
void SetShowIcon(UINT ISouece);
void SavePointStat(CString strStat);
CWinThread * hthread;
int iSoundNum;
//GpsDataCount[0] GPS数据
//GpsDataCount[1] 验证失败GPS数据
//GpsDataCount[2] 正确的GPS数据
//GpsDataCount[3] 卫星数不足的GPS数据
//GpsDataCount[4] 卫星数足够的GPS数据
//GpsDataCount[5] 偏移GPS数据
//GpsDataCount[6] 正规GPS数据
long GpsDataCount[7];
CString ftoa(double dData);
void SavePoint(double dLate,double dLong,long lTime,long lJiao,double dV);
BOOL m_bSavePoint;
BOOL m_bSound;
void LoadPoint();
void DoPoint(double dLate,double dLong,long lTime,long lJiao,double dV);
long m_BreakMeter;//1秒允许的突变米数
long m_BreakTime; //允许突变的秒数
long m_ErrorMrter;//定位一个点的误差范围(米)
long m_CutTime; //判断线段切圆的两点时间间隔
long m_CutCount; //线段切圆分段数
long m_Jiao; //方向角允许误差
BOOL m_Point; //定点判定
BOOL m_CutRound; //穿圆判定
BOOL m_Fangxiang; //方向判定
BOOL m_Code; //返回定位点代码值
BOOL m_Dis; //返回与标准点的距离
BOOL m_Error; //返回定点误差范围
void DoLateLong(double dLate,double dLong,long lTime,long lJiao,double dV);
void DoGPSData(CString GPGGA, CString GPVTG);
void DoGps(CString GPS);
CString strFile;
CString strFile1;
CString strFile2;
};
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_GPSPOINTDLG_H__224D970A_7D47_4B6D_B502_ABAB82F5388B__INCLUDED_)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -