84 lines
2.7 KiB
C
84 lines
2.7 KiB
C
|
/******************** (C) COPYRIGHT 2020 VIVO************************************
|
|||
|
* File Name : pdr_main.h
|
|||
|
* Department : Sensor Algorithm Team
|
|||
|
* Current Version : V2.0
|
|||
|
* Author : zhanli@vivo.com & yuanlin@vivo.cm
|
|||
|
* Date of Issued : 2020.7.18
|
|||
|
* Comments : PDR<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>㷨ƽ̨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>
|
|||
|
********************************************************************************/
|
|||
|
#ifdef __cplusplus
|
|||
|
extern "C" {
|
|||
|
#endif
|
|||
|
|
|||
|
#ifndef _PDR_MAIN_H_
|
|||
|
#define _PDR_MAIN_H_
|
|||
|
#include <string>
|
|||
|
|
|||
|
using namespace std;
|
|||
|
|
|||
|
#define PATH_MAX 256
|
|||
|
#define TRACK_MAX 100000
|
|||
|
|
|||
|
typedef struct LatLngd {
|
|||
|
double lat;
|
|||
|
double lon;
|
|||
|
double heading;
|
|||
|
double hdop;
|
|||
|
double accuracy;
|
|||
|
double vel;
|
|||
|
double time;
|
|||
|
int motionType;
|
|||
|
} LatLngd;
|
|||
|
|
|||
|
typedef struct ResultTracks {
|
|||
|
LatLngd gpsTrack[TRACK_MAX];
|
|||
|
LatLngd pdrTrack[TRACK_MAX];
|
|||
|
int gpsLen;
|
|||
|
int pdrLen;
|
|||
|
}ResultTracks;
|
|||
|
|
|||
|
/**----------------------------------------------------------------------
|
|||
|
* Function : pdr_writeKml
|
|||
|
* Description : <EFBFBD><EFBFBD>pdr<EFBFBD>㷨<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>gps<EFBFBD><EFBFBD>pdr<EFBFBD>켣дΪkml<EFBFBD><EFBFBD>ʽ
|
|||
|
* path : kml<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>·<EFBFBD><EFBFBD>
|
|||
|
* name : kml<EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* postfix <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ƺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵĺ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͻ<EFBFBD><EFBFBD>߰汾
|
|||
|
* Date : 2020/11/1 zhanli@vivo.com
|
|||
|
*---------------------------------------------------------------------**/
|
|||
|
void pdr_writeKml(string path, string name, string postfix);
|
|||
|
|
|||
|
/**----------------------------------------------------------------------
|
|||
|
* Function : getSimulateFileFp
|
|||
|
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Լ<EFBFBD><EFBFBD>ļ<EFBFBD>·<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>ָ<EFBFBD><EFBFBD>
|
|||
|
* Date : 2021/01/25 zhanli@vivo.com
|
|||
|
*---------------------------------------------------------------------**/
|
|||
|
FILE* getSimulateFile(FILE* catalogFp, string path_file, string& fileHead);
|
|||
|
|
|||
|
/**----------------------------------------------------------------------
|
|||
|
* Function : gpsYaw2GoogleYaw
|
|||
|
* Description : Ϊ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>kml<EFBFBD><EFBFBD>ʾ<EFBFBD>ĽǶȷ<EFBFBD>λ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD><EFBFBD>0-360˳ʱ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD>Yawת<EFBFBD><EFBFBD>
|
|||
|
* Ϊ<EFBFBD>ȸ<EFBFBD>֧<EFBFBD>ֵ<EFBFBD>Yaw<EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* Date : 2021/01/25 zhanli@vivo.com
|
|||
|
*---------------------------------------------------------------------**/
|
|||
|
double gpsYaw2GoogleYaw(double heading);
|
|||
|
|
|||
|
/**----------------------------------------------------------------------
|
|||
|
* Function : motionType2Str
|
|||
|
* Description : <EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD>˶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD>Ϊ<EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
* Date : 2020/8/3 zhanli@vivo.com
|
|||
|
*---------------------------------------------------------------------**/
|
|||
|
const char* motionType2Str(int type);
|
|||
|
|
|||
|
/**----------------------------------------------------------------------
|
|||
|
* Function : updateResTrack
|
|||
|
* Description : <EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ľ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>켣<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>GPS<EFBFBD>켣<EFBFBD><EFBFBD>PDR<EFBFBD>켣
|
|||
|
* Date : 2021/01/25 zhanli@vivo.com
|
|||
|
*---------------------------------------------------------------------**/
|
|||
|
void updateResTrack(ResultTracks& resTrack, lct_fs& lctfs);
|
|||
|
|
|||
|
#endif
|
|||
|
|
|||
|
#ifdef __cplusplus
|
|||
|
}
|
|||
|
#endif
|