2022-09-15 16:35:25 +08:00
|
|
|
|
/******************** (C) COPYRIGHT 2020 Geek************************************
|
|
|
|
|
* File Name : pdr_main.h
|
|
|
|
|
* Department : Sensor Algorithm Team
|
|
|
|
|
* Current Version : V2.0
|
|
|
|
|
* Author :
|
|
|
|
|
|
|
|
|
|
& 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 logzhan
|
|
|
|
|
*---------------------------------------------------------------------**/
|
|
|
|
|
void KmlWrite(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 logzhan
|
|
|
|
|
*---------------------------------------------------------------------**/
|
|
|
|
|
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 logzhan
|
|
|
|
|
*---------------------------------------------------------------------**/
|
|
|
|
|
double gpsYaw2GoogleYaw(double heading);
|
|
|
|
|
|
|
|
|
|
/**----------------------------------------------------------------------
|
2022-09-17 01:12:48 +08:00
|
|
|
|
* Function : Motion2TypeStr
|
2022-09-15 16:35:25 +08:00
|
|
|
|
* Description : <EFBFBD><EFBFBD><EFBFBD>û<EFBFBD><EFBFBD>˶<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ת<EFBFBD><EFBFBD>Ϊ<EFBFBD>ַ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
2022-09-17 01:12:48 +08:00
|
|
|
|
* Date : 2022/9/16 logzhan
|
2022-09-15 16:35:25 +08:00
|
|
|
|
*---------------------------------------------------------------------**/
|
2022-09-17 01:12:48 +08:00
|
|
|
|
const char* Motion2TypeStr(int type);
|
2022-09-15 16:35:25 +08:00
|
|
|
|
|
|
|
|
|
/**----------------------------------------------------------------------
|
|
|
|
|
* 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 logzhan
|
|
|
|
|
*---------------------------------------------------------------------**/
|
2022-09-19 23:05:00 +08:00
|
|
|
|
void UpdateResTrack(ResultTracks& resTrack, lct_fs& lctfs);
|
2022-09-15 16:35:25 +08:00
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|