2022-11-28 10:49:41 +08:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "sys/stat.h"
|
|
|
|
#include "rtklib.h"
|
|
|
|
|
2023-04-01 19:21:22 +08:00
|
|
|
#define RT
|
2023-04-10 19:22:49 +08:00
|
|
|
//#define POST
|
2022-11-28 10:49:41 +08:00
|
|
|
int main(int argc, char **argv) {
|
|
|
|
char *imu_path="../data/630_3/IMU.csv";
|
|
|
|
char *pvt_path="../data/630_3/PVT.csv";
|
|
|
|
char *sat_path="../data/630_3/Sat.csv";
|
|
|
|
char *obs_path="../data/630_3/r.obs";
|
|
|
|
char *nav_path="../data/630_3/r.nav";
|
2023-04-01 19:21:22 +08:00
|
|
|
#ifdef RT
|
|
|
|
if(!tcpos()){
|
|
|
|
trace(2,"post time tightly coupled fail\n");
|
|
|
|
return 0;
|
|
|
|
}
|
2023-04-10 19:22:49 +08:00
|
|
|
#elif defined(POST)
|
2022-11-28 10:49:41 +08:00
|
|
|
if(!ps_tcpos(imu_path,pvt_path,sat_path,obs_path,nav_path)){
|
|
|
|
trace(2,"post time tightly coupled fail\n");
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
return 0;
|
2023-04-01 19:21:22 +08:00
|
|
|
#endif
|
2022-11-28 10:49:41 +08:00
|
|
|
}
|