mac os build support
This commit is contained in:
parent
15993c5d1a
commit
34510ea8b8
|
@ -2,6 +2,9 @@
|
||||||
#define DECODENAV_H
|
#define DECODENAV_H
|
||||||
|
|
||||||
#include "comtyp.h"
|
#include "comtyp.h"
|
||||||
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
|
#include "satellite.h"
|
||||||
|
|
||||||
/* decode RINEX NAV header ---------------------------------------------------*/
|
/* decode RINEX NAV header ---------------------------------------------------*/
|
||||||
void decode_navh(char *buff, nav_t *nav);
|
void decode_navh(char *buff, nav_t *nav);
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
#include "str.h"
|
#include "str.h"
|
||||||
#include "obscode.h"
|
#include "obscode.h"
|
||||||
|
|
||||||
decode_obsh(FILE *fp, char *buff, double ver, int *tsys,
|
void decode_obsh(FILE *fp, char *buff, double ver, int *tsys,
|
||||||
char tobs[][MAXOBSTYPE][4],obs_t* obs, nav_t *nav, sta_t *sta)
|
char tobs[][MAXOBSTYPE][4],obs_t* obs, nav_t *nav, sta_t *sta)
|
||||||
{
|
{
|
||||||
// default codes for unknown code
|
// default codes for unknown code
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#ifndef DECODEOBS_H
|
#ifndef DECODEOBS_H
|
||||||
#define DECODEOBS_H
|
#define DECODEOBS_H
|
||||||
#include "comtyp.h"
|
#include "comtyp.h"
|
||||||
|
#include "satellite.h"
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
#include <math.h>
|
||||||
/* decode RINEX observation data file header ---------------------------------*/
|
/* decode RINEX observation data file header ---------------------------------*/
|
||||||
void decode_obsh(FILE *fp, char *buff, double ver, int *tsys,
|
void decode_obsh(FILE *fp, char *buff, double ver, int *tsys,
|
||||||
char tobs[][MAXOBSTYPE][4],obs_t* obs, nav_t *nav, sta_t *sta);
|
char tobs[][MAXOBSTYPE][4],obs_t* obs, nav_t *nav, sta_t *sta);
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef INIT_VAL_H
|
#ifndef INIT_VAL_H
|
||||||
#define INIT_VAL_H
|
#define INIT_VAL_H
|
||||||
#include "comtyp.h"
|
#include "comtyp.h"
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
void init_sta(sta_t *sta);
|
void init_sta(sta_t *sta);
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef OBSCODE_H
|
#ifndef OBSCODE_H
|
||||||
#define OBSCODE_H
|
#define OBSCODE_H
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
/* convert RINEX obs-type ver.2 -> ver.3 -------------------------------------*/
|
/* convert RINEX obs-type ver.2 -> ver.3 -------------------------------------*/
|
||||||
void convcode(double ver, int sys, const char *str, char *type);
|
void convcode(double ver, int sys, const char *str, char *type);
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
#include "decodenav.h"
|
#include "decodenav.h"
|
||||||
#include "str.h"
|
#include "str.h"
|
||||||
#include "timeconvert.h"
|
#include "timeconvert.h"
|
||||||
|
#include "satellite.h"
|
||||||
|
|
||||||
/* add ephemeris to navigation data ------------------------------------------*/
|
/* add ephemeris to navigation data ------------------------------------------*/
|
||||||
static int add_eph(nav_t *nav, const eph_t *eph)
|
static int add_eph(nav_t *nav, const eph_t *eph)
|
||||||
|
@ -619,7 +620,7 @@ int readrnxfile(const char *filepath,gtime_t ts,gtime_t te,double ti,const char*
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
status = readrnxfp(fp,ts,te,ti,opt,flag,index,type,obs,nav,sta);
|
status = readrnxfp(fp,ts,te,ti,opt,flag,index,type,obs,nav,sta);
|
||||||
close(fp);
|
close((int)fp);
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
#include "comtyp.h"
|
#include "comtyp.h"
|
||||||
#include "option.h"
|
#include "option.h"
|
||||||
#include "const.h"
|
#include "const.h"
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
// Read obs and nav data -----------------------------------------------------
|
// Read obs and nav data -----------------------------------------------------
|
||||||
bool readobsnav(gtime_t ts, gtime_t te, double ti,const char** infile,const int* index,int n,
|
bool readobsnav(gtime_t ts, gtime_t te, double ti,const char** infile,const int* index,int n,
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef SATELLITE_H
|
#ifndef SATELLITE_H
|
||||||
#define SATELLITE_H
|
#define SATELLITE_H
|
||||||
|
#include <stdio.h>
|
||||||
/* satellite id to satellite number --------------------------------------------
|
/* satellite id to satellite number --------------------------------------------
|
||||||
* convert satellite id to satellite number
|
* convert satellite id to satellite number
|
||||||
* args : char *id I satellite id (nn,Gnn,Rnn,Enn,Jnn,Cnn,Inn or Snn)
|
* args : char *id I satellite id (nn,Gnn,Rnn,Enn,Jnn,Cnn,Inn or Snn)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
#include <string.h>
|
||||||
#include "str.h"
|
#include "str.h"
|
||||||
#include "timeconvert.h"
|
#include "timeconvert.h"
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#define STR_H
|
#define STR_H
|
||||||
|
|
||||||
#include "comtyp.h"
|
#include "comtyp.h"
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
//set string without tail space
|
//set string without tail space
|
||||||
void setstr(char *dst, const char *src, int n);
|
void setstr(char *dst, const char *src, int n);
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
#define TIME_H
|
#define TIME_H
|
||||||
|
|
||||||
#include "comtyp.h"
|
#include "comtyp.h"
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
/* convert calendar day/time to time -------------------------------------------
|
/* convert calendar day/time to time -------------------------------------------
|
||||||
* convert calendar day/time to gtime_t struct
|
* convert calendar day/time to gtime_t struct
|
||||||
|
|
Loading…
Reference in New Issue