⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 trimble.h

📁 GPS数据处理源代码
💻 H
字号:
#include <stdio.h>

/* structures */
typedef struct                   /* Header & structure for binary gpb files */
						   /* (202 bytes) */
{
				 /* variables used by software */
     char fname[40];             /* file name */
     FILE *f;                    /* file pointer */
     short vbufsize;             /* size of file buffer (internal) */
     void *vbuf;                 /* pointer to vbuf (allocated in open) */
}    trim_bin_file_type;

typedef struct
{
   unsigned char frac_sec;    /* unit 20ms */
   unsigned char sec;
   unsigned char min;
   unsigned char hour;
   unsigned char day_week;
   unsigned char day_month;
   unsigned char mounth;   /* Jan =0 */
   unsigned char year;     /* 98 */
   double   day_year;      /* Feb 1 = 32 */
} tben_trim_type;



typedef struct                   /* position record  */

{
     double time_tag;            /* receive time in seconds since 05/01/1980 24:00 */
     double lat,                 /* position  1.57 rad  */
	    lon;
     double hgt;               /* antenna height (HT) in metres */
     double velocity_lat;      /* lat direction velocity     rad/s */
     double velocity_lon;      /* lon direction velocity     rad/s */
     double veloctiy_hgt;      /*  hight direction velocity   m/s   */
     double clk_offset;        /*  clock different   ,  unit  m    */
     double freq_offset;       /* frequency offset in   m/s   */
     double reserved1;
     double reserved2;
     double PDOP;
     double HDOP;
     double VDOP;
     double TDOP;
     double num_pos_average;
     unsigned char sat_used;
     unsigned char pos_update;

}    pben_trim_type;              /* binary position record */


typedef struct                   /* measurement record  */

{
     double integrated_doppler;   /* unit m  */
     double dopper_integ_interval;
     double reserved1;
     double reserved2;
     double raw_range;           /* unit  m  */
     double reserved3;
     double phase;
     double reserved4;
     double reserved5;
     double raw_doppler;         /* unit m   */
     unsigned char reserved6;
     unsigned char lock_point;
     unsigned char reserved7;
     unsigned char reserved8;
     unsigned char reserved9;
     unsigned char data_sync;
     unsigned char reserved10;

}    mben_trim_type;



/* prototypes */
trim_bin_file_type *open_bin_file( char *fname, unsigned vbufsize );
int reopen_bin_file( trim_bin_file_type *h );
int read_bin_epoch( trim_bin_file_type *h, pben_trim_type *b_pben,
		    mben_trim_type *b_mben );
void close_bin_file( trim_bin_file_type *h );
int search_for_prn( trim_bin_file_type *h, int prn, double until_time );

void WriteRinexObsEpochFile(FILE *RinexRecFile,pben_trim_type *p,mben_trim_type *m);
int Trimble2Rinex(char *SourceFile,char *RinexFile,int Interval);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -