magellan.h

来自「GPS的一些功能实现以及详细的源代码」· C头文件 代码 · 共 57 行

H
57
字号
#include <stdio.h>
/* HEADER FILE for magellan binary data */

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) */


}    mag_bin_file_type;

typedef struct                     /* position record (POSB) */
{
	char sync[4];               /*  should be $$BO  */

	long time;
	long lat;                     /* unit 10-7 deg */
	long lon;                     /* unit 10-7 deg */
	long hgt;                     /* unit 0.01 m */

}    pben_mag_type;


typedef struct                     /* measurement (data) record (RNGB) */
{
	char sync[4];              /* should be $$V1  */
	char svid;
	char snr;
	long phase;               /* unit  1/256 cycle */
	long prange;              /* unit  0.1 m */
}    mben_mag_type;

typedef struct
{
  unsigned long weeksec;       /* unit s */
  unsigned long fsec;          /* unit ns */
  int  weekno;
} time_mag_type;


void WriteRinexObsEpochFile(FILE *RinexRecFile,pben_mag_type *p,mben_mag_type *m,
			    time_mag_type *t);
void close_bin_file( mag_bin_file_type *h );
mag_bin_file_type *open_bin_file( char *fname, unsigned vbufsize );
int read_bin_epoch( mag_bin_file_type *h, pben_mag_type *pben_data,
		    mben_mag_type *mben_data,time_mag_type *t );





⌨️ 快捷键说明

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