GPSParam.h
资源名称:GPS_test.rar [点击查看]
上传用户:fudaml
上传日期:2013-05-28
资源大小:211k
文件大小:1k
源码类别:
GPS编程
开发平台:
Visual C++
- // GPSParam.h: interface for the GPSParam class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_GPSPARAM_H__28A4B490_9DD3_4F9B_88F1_EB771FF3DD68__INCLUDED_)
- #define AFX_GPSPARAM_H__28A4B490_9DD3_4F9B_88F1_EB771FF3DD68__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- class GpsPoint
- {
- public:
- double X, Y; //高斯投影坐标x y
- double B, L; //参心坐标系经 纬度
- double L0; //中央子午线经度
- public:
- bool BLtoXY_2();
- GpsPoint();
- bool XYtoBL();
- bool BLtoXY();
- bool SetBL( double b0, double l0 );
- bool SetXY( double x0, double y0 );
- virtual ~GpsPoint();
- };
- class GPSParam
- {
- private:
- bool m_IsOK;
- public:
- bool IsOk();
- bool SetParam(char str[],int length);
- GPSParam();
- bool DataTransform();
- GPSParam(char str[],int length=200); //length为一条指令的最大长度,<=200
- virtual ~GPSParam();
- CString Data[20];
- double X,Y;
- CString m_name;
- struct
- {
- int hour;
- int mimute;
- double second;
- }m_time;
- CString m_status;
- double m_latitude;
- bool m_nsindicator;
- double m_longtitude;
- bool m_ewindicator;
- double m_speed;
- double m_cog;
- struct
- {
- int day;
- int month;
- int year;
- }m_date;
- };
- #endif // !defined(AFX_GPSPARAM_H__28A4B490_9DD3_4F9B_88F1_EB771FF3DD68__INCLUDED_)