|
MRTKLIB 0.7.14
Modernized GNSS Positioning Library
|
#include <ctype.h>#include <math.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include "mrtklib/mrtk_bits.h"#include "mrtklib/mrtk_coords.h"#include "mrtklib/mrtk_eph.h"#include "mrtklib/mrtk_mat.h"#include "mrtklib/mrtk_nav.h"#include "mrtklib/mrtk_obs.h"#include "mrtklib/mrtk_opt.h"#include "mrtklib/mrtk_rcvraw.h"#include "mrtklib/mrtk_rtcm.h"#include "mrtklib/mrtk_sys.h"#include "mrtklib/mrtk_time.h"#include "mrtklib/mrtk_trace.h"Go to the source code of this file.
Macros | |
| #define | PI 3.1415926535897932 /* pi */ |
| #define | D2R (PI / 180.0) /* deg to rad */ |
| #define | R2D (180.0 / PI) /* rad to deg */ |
| #define | CLIGHT 299792458.0 /* speed of light (m/s) */ |
| #define | SC2RAD 3.1415926535898 /* semi-circle to radian (IS-GPS) */ |
| #define | SYS_NONE 0x00 |
| #define | SYS_GPS 0x01 |
| #define | SYS_SBS 0x02 |
| #define | SYS_GLO 0x04 |
| #define | SYS_GAL 0x08 |
| #define | SYS_QZS 0x10 |
| #define | SYS_CMP 0x20 |
| #define | SYS_IRN 0x40 |
| #define | TSYS_GPS 0 |
| #define | TSYS_UTC 1 |
| #define | TSYS_GLO 2 |
| #define | TSYS_GAL 3 |
| #define | TSYS_QZS 4 |
| #define | TSYS_CMP 5 |
| #define | TSYS_IRN 6 |
| #define | FREQ1 1.57542E9 /* L1/E1/B1C frequency (Hz) */ |
| #define | FREQ2 1.22760E9 /* L2 frequency (Hz) */ |
| #define | FREQ5 1.17645E9 /* L5/E5a/B2a frequency (Hz) */ |
| #define | FREQ6 1.27875E9 /* E6/L6 frequency (Hz) */ |
| #define | FREQ7 1.20714E9 /* E5b/B2I frequency (Hz) */ |
| #define | FREQ8 1.191795E9 /* E5ab/B2ab frequency (Hz) */ |
| #define | FREQ9 2.492028E9 /* S frequency (Hz) */ |
| #define | FREQ1_GLO 1.60200E9 /* GLONASS G1 base frequency (Hz) */ |
| #define | DFRQ1_GLO 0.56250E6 /* GLONASS G1 bias frequency (Hz/n) */ |
| #define | FREQ2_GLO 1.24600E9 /* GLONASS G2 base frequency (Hz) */ |
| #define | DFRQ2_GLO 0.43750E6 /* GLONASS G2 bias frequency (Hz/n) */ |
| #define | FREQ3_GLO 1.202025E9 /* GLONASS G3 frequency (Hz) */ |
| #define | FREQ1a_GLO 1.600995E9 /* GLONASS G1a frequency (Hz) */ |
| #define | FREQ2a_GLO 1.248060E9 /* GLONASS G2a frequency (Hz) */ |
| #define | FREQ1_CMP 1.561098E9 /* BDS B1I frequency (Hz) */ |
| #define | MINPRNGPS 1 |
| #define | MAXPRNGPS 32 |
| #define | MINPRNSBS 120 |
| #define | MAXPRNSBS 158 |
| #define | P2_5 0.03125 |
| #define | P2_6 0.015625 |
| #define | P2_11 4.882812500000000E-04 |
| #define | P2_15 3.051757812500000E-05 |
| #define | P2_17 7.629394531250000E-06 |
| #define | P2_19 1.907348632812500E-06 |
| #define | P2_20 9.536743164062500E-07 |
| #define | P2_21 4.768371582031250E-07 |
| #define | P2_23 1.192092895507810E-07 |
| #define | P2_24 5.960464477539063E-08 |
| #define | P2_27 7.450580596923828E-09 |
| #define | P2_29 1.862645149230957E-09 |
| #define | P2_30 9.313225746154785E-10 |
| #define | P2_31 4.656612873077393E-10 |
| #define | P2_32 2.328306436538696E-10 |
| #define | P2_33 1.164153218269348E-10 |
| #define | P2_34 5.820766091346740E-11 |
| #define | P2_35 2.910383045673370E-11 |
| #define | P2_38 3.637978807091710E-12 |
| #define | P2_40 9.094947017729280E-13 |
| #define | P2_43 1.136868377216160E-13 |
| #define | P2_46 1.421085471520200E-14 |
| #define | P2_50 8.881784197001252E-16 |
| #define | P2_55 2.775557561562891E-17 |
| #define | P2_59 1.734723475976810E-18 |
| #define | BNXSYNC1 0xC2 /* BINEX sync (little-endian,regular-crc) */ |
| #define | BNXSYNC2 0xE2 /* BINEX sync (big-endian ,regular-crc) */ |
| #define | BNXSYNC3 0xC8 /* BINEX sync (little-endian,enhanced-crc) */ |
| #define | BNXSYNC4 0xE8 /* BINEX sync (big-endian ,enhanced-crc) */ |
| #define | BNXSYNC1R 0xD2 /* BINEX sync (little-endian,regular-crc,rev) */ |
| #define | BNXSYNC2R 0xF2 /* BINEX sync (big-endian ,regular-crc,rev) */ |
| #define | BNXSYNC3R 0xD8 /* BINEX sync (little-endian,enhanced-crc,rev) */ |
| #define | BNXSYNC4R 0xF8 /* BINEX sync (big-endian ,enhanced-crc,rev) */ |
| #define | MIN(x, y) |
| #define | SQR(x) |
| #define | U1(p) |
| #define | I1(p) |
| #define | NINCOBS 262144 /* incremental number of obs data */ |
Functions | |
| static uint16_t | U2 (uint8_t *p) |
| static uint32_t | U4 (uint8_t *p) |
| static int32_t | I4 (uint8_t *p) |
| static float | R4 (uint8_t *p) |
| static double | R8 (uint8_t *p) |
| static int | getbnxi (uint8_t *p, uint32_t *val) |
| static uint8_t | csum8 (const uint8_t *buff, int len) |
| static gtime_t | adjweek (gtime_t time, double tow) |
| static gtime_t | adjday (gtime_t time, double tod) |
| static int | uraindex (double value) |
| static int | sisaindex (double value) |
| static int | decode_bnx_00 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_00 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_01 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_02 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_03 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_04 (raw_t *raw, uint8_t *buff, int len) |
| static double | bds_tgd (int tgd) |
| static int | decode_bnx_01_05 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_06 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_07 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01_14 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_01 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_02 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_03 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7d (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7e (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7f_00 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7f_01 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7f_02 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7f_03 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7f_04 (raw_t *raw, uint8_t *buff, int len) |
| static uint8_t * | decode_bnx_7f_05_obs (raw_t *raw, uint8_t *buff, int sat, int nobs, obsd_t *data) |
| static int | decode_bnx_7f_05 (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx_7f (raw_t *raw, uint8_t *buff, int len) |
| static int | decode_bnx (raw_t *raw) |
| static int | sync_bnx (uint8_t *buff, uint8_t data) |
| int | input_bnx (raw_t *raw, uint8_t data) |
| int | input_bnxf (raw_t *raw, FILE *fp) |
| static void | setstr_bnx (char *dst, const char *src, int n) |
| static void | saveslips (unsigned char slips[][5], obsd_t *data) |
| static void | restslips (unsigned char slips[][5], obsd_t *data) |
| static int | addobsdata (obs_t *obs, const obsd_t *data) |
| static int | add_eph (nav_t *nav, const eph_t *eph) |
| static int | add_geph (nav_t *nav, const geph_t *geph) |
| static int | add_seph (nav_t *nav, const seph_t *seph) |
| static int | readbnxfp (FILE *fp, gtime_t ts, gtime_t te, double tint, const char *opt, int flag, int index, char *type, obs_t *obs, nav_t *nav, sta_t *sta, const prcopt_t *popt) |
| static int | readbnxfile (const char *file, gtime_t ts, gtime_t te, double tint, const char *opt, int flag, int index, char *type, obs_t *obs, nav_t *nav, sta_t *sta, const prcopt_t *popt) |
| int | readbnxt (const char *file, int rcv, gtime_t ts, gtime_t te, double tint, const char *opt, obs_t *obs, nav_t *nav, sta_t *sta, const prcopt_t *popt) |
| Read BINEX observation/navigation data from file(s). | |
Variables | |
| static const double | ura_eph [] |
| #define BNXSYNC1 0xC2 /* BINEX sync (little-endian,regular-crc) */ |
Definition at line 109 of file mrtk_rcv_binex.c.
| #define BNXSYNC1R 0xD2 /* BINEX sync (little-endian,regular-crc,rev) */ |
Definition at line 114 of file mrtk_rcv_binex.c.
| #define BNXSYNC2 0xE2 /* BINEX sync (big-endian ,regular-crc) */ |
Definition at line 110 of file mrtk_rcv_binex.c.
Referenced by sync_bnx().
| #define BNXSYNC2R 0xF2 /* BINEX sync (big-endian ,regular-crc,rev) */ |
Definition at line 115 of file mrtk_rcv_binex.c.
| #define BNXSYNC3 0xC8 /* BINEX sync (little-endian,enhanced-crc) */ |
Definition at line 111 of file mrtk_rcv_binex.c.
| #define BNXSYNC3R 0xD8 /* BINEX sync (little-endian,enhanced-crc,rev) */ |
Definition at line 116 of file mrtk_rcv_binex.c.
| #define BNXSYNC4 0xE8 /* BINEX sync (big-endian ,enhanced-crc) */ |
Definition at line 112 of file mrtk_rcv_binex.c.
| #define BNXSYNC4R 0xF8 /* BINEX sync (big-endian ,enhanced-crc,rev) */ |
Definition at line 117 of file mrtk_rcv_binex.c.
| #define CLIGHT 299792458.0 /* speed of light (m/s) */ |
Definition at line 39 of file mrtk_rcv_binex.c.
| #define D2R (PI / 180.0) /* deg to rad */ |
Definition at line 37 of file mrtk_rcv_binex.c.
| #define DFRQ1_GLO 0.56250E6 /* GLONASS G1 bias frequency (Hz/n) */ |
Definition at line 67 of file mrtk_rcv_binex.c.
| #define DFRQ2_GLO 0.43750E6 /* GLONASS G2 bias frequency (Hz/n) */ |
Definition at line 69 of file mrtk_rcv_binex.c.
| #define FREQ1 1.57542E9 /* L1/E1/B1C frequency (Hz) */ |
Definition at line 59 of file mrtk_rcv_binex.c.
| #define FREQ1_CMP 1.561098E9 /* BDS B1I frequency (Hz) */ |
Definition at line 73 of file mrtk_rcv_binex.c.
| #define FREQ1_GLO 1.60200E9 /* GLONASS G1 base frequency (Hz) */ |
Definition at line 66 of file mrtk_rcv_binex.c.
| #define FREQ1a_GLO 1.600995E9 /* GLONASS G1a frequency (Hz) */ |
Definition at line 71 of file mrtk_rcv_binex.c.
| #define FREQ2 1.22760E9 /* L2 frequency (Hz) */ |
Definition at line 60 of file mrtk_rcv_binex.c.
| #define FREQ2_GLO 1.24600E9 /* GLONASS G2 base frequency (Hz) */ |
Definition at line 68 of file mrtk_rcv_binex.c.
| #define FREQ2a_GLO 1.248060E9 /* GLONASS G2a frequency (Hz) */ |
Definition at line 72 of file mrtk_rcv_binex.c.
| #define FREQ3_GLO 1.202025E9 /* GLONASS G3 frequency (Hz) */ |
Definition at line 70 of file mrtk_rcv_binex.c.
| #define FREQ5 1.17645E9 /* L5/E5a/B2a frequency (Hz) */ |
Definition at line 61 of file mrtk_rcv_binex.c.
| #define FREQ6 1.27875E9 /* E6/L6 frequency (Hz) */ |
Definition at line 62 of file mrtk_rcv_binex.c.
| #define FREQ7 1.20714E9 /* E5b/B2I frequency (Hz) */ |
Definition at line 63 of file mrtk_rcv_binex.c.
| #define FREQ8 1.191795E9 /* E5ab/B2ab frequency (Hz) */ |
Definition at line 64 of file mrtk_rcv_binex.c.
| #define FREQ9 2.492028E9 /* S frequency (Hz) */ |
Definition at line 65 of file mrtk_rcv_binex.c.
| #define I1 | ( | p | ) |
Definition at line 127 of file mrtk_rcv_binex.c.
Referenced by decode_bnx_01_02().
| #define MAXPRNGPS 32 |
Definition at line 76 of file mrtk_rcv_binex.c.
Referenced by decode_cresraw(), decode_cresraw2(), decode_stqraw(), nextsat(), satid2no(), and satno().
| #define MAXPRNSBS 158 |
Definition at line 78 of file mrtk_rcv_binex.c.
Referenced by convsbs(), decode_creswaas(), decode_frmb(), decode_rawwaasframeb(), decode_ss2sbas(), decode_WD(), satid2no(), and satno().
| #define MIN | ( | x, | |
| y ) |
Definition at line 119 of file mrtk_rcv_binex.c.
Referenced by decode_bnx_00().
| #define MINPRNGPS 1 |
Definition at line 75 of file mrtk_rcv_binex.c.
Referenced by decode_lcliono(), decode_stqraw(), encode_lcliono(), nextsat(), sat2code(), satid2no(), satno(), satno2id(), and satsys().
| #define MINPRNSBS 120 |
Definition at line 77 of file mrtk_rcv_binex.c.
Referenced by convnav(), convsbs(), decode_bnx_01_03(), decode_creswaas(), decode_frmb(), decode_rxmraw(), decode_rxmsfrb(), decode_sbstype9(), decode_ss2sbas(), decode_trkd5(), decode_WD(), decode_WE(), input_rnxctr(), readbnxfp(), satid2no(), satno(), satsys(), save_msm_obs(), and to_satid().
| #define NINCOBS 262144 /* incremental number of obs data */ |
Definition at line 1648 of file mrtk_rcv_binex.c.
| #define P2_11 4.882812500000000E-04 |
Definition at line 83 of file mrtk_rcv_binex.c.
| #define P2_15 3.051757812500000E-05 |
Definition at line 84 of file mrtk_rcv_binex.c.
| #define P2_17 7.629394531250000E-06 |
Definition at line 85 of file mrtk_rcv_binex.c.
| #define P2_19 1.907348632812500E-06 |
Definition at line 86 of file mrtk_rcv_binex.c.
| #define P2_20 9.536743164062500E-07 |
Definition at line 87 of file mrtk_rcv_binex.c.
| #define P2_21 4.768371582031250E-07 |
Definition at line 88 of file mrtk_rcv_binex.c.
| #define P2_23 1.192092895507810E-07 |
Definition at line 89 of file mrtk_rcv_binex.c.
| #define P2_24 5.960464477539063E-08 |
Definition at line 90 of file mrtk_rcv_binex.c.
| #define P2_27 7.450580596923828E-09 |
Definition at line 91 of file mrtk_rcv_binex.c.
| #define P2_29 1.862645149230957E-09 |
Definition at line 92 of file mrtk_rcv_binex.c.
| #define P2_30 9.313225746154785E-10 |
Definition at line 93 of file mrtk_rcv_binex.c.
| #define P2_31 4.656612873077393E-10 |
Definition at line 94 of file mrtk_rcv_binex.c.
| #define P2_32 2.328306436538696E-10 |
Definition at line 95 of file mrtk_rcv_binex.c.
| #define P2_33 1.164153218269348E-10 |
Definition at line 96 of file mrtk_rcv_binex.c.
| #define P2_34 5.820766091346740E-11 |
Definition at line 97 of file mrtk_rcv_binex.c.
| #define P2_35 2.910383045673370E-11 |
Definition at line 98 of file mrtk_rcv_binex.c.
| #define P2_38 3.637978807091710E-12 |
Definition at line 99 of file mrtk_rcv_binex.c.
| #define P2_40 9.094947017729280E-13 |
Definition at line 100 of file mrtk_rcv_binex.c.
| #define P2_43 1.136868377216160E-13 |
Definition at line 101 of file mrtk_rcv_binex.c.
| #define P2_46 1.421085471520200E-14 |
Definition at line 102 of file mrtk_rcv_binex.c.
| #define P2_5 0.03125 |
Definition at line 81 of file mrtk_rcv_binex.c.
| #define P2_50 8.881784197001252E-16 |
Definition at line 103 of file mrtk_rcv_binex.c.
| #define P2_55 2.775557561562891E-17 |
Definition at line 104 of file mrtk_rcv_binex.c.
| #define P2_59 1.734723475976810E-18 |
Definition at line 105 of file mrtk_rcv_binex.c.
| #define P2_6 0.015625 |
Definition at line 82 of file mrtk_rcv_binex.c.
| #define PI 3.1415926535897932 /* pi */ |
Definition at line 36 of file mrtk_rcv_binex.c.
| #define R2D (180.0 / PI) /* rad to deg */ |
Definition at line 38 of file mrtk_rcv_binex.c.
| #define SC2RAD 3.1415926535898 /* semi-circle to radian (IS-GPS) */ |
Definition at line 40 of file mrtk_rcv_binex.c.
| #define SQR | ( | x | ) |
Definition at line 120 of file mrtk_rcv_binex.c.
Referenced by decode_bnx_01_01(), decode_bnx_01_04(), decode_bnx_01_05(), decode_bnx_01_06(), decode_bnx_01_07(), and decode_bnx_01_14().
| #define SYS_CMP 0x20 |
Definition at line 48 of file mrtk_rcv_binex.c.
| #define SYS_GAL 0x08 |
Definition at line 46 of file mrtk_rcv_binex.c.
| #define SYS_GLO 0x04 |
Definition at line 45 of file mrtk_rcv_binex.c.
| #define SYS_GPS 0x01 |
Definition at line 43 of file mrtk_rcv_binex.c.
| #define SYS_IRN 0x40 |
Definition at line 49 of file mrtk_rcv_binex.c.
| #define SYS_NONE 0x00 |
Definition at line 42 of file mrtk_rcv_binex.c.
| #define SYS_QZS 0x10 |
Definition at line 47 of file mrtk_rcv_binex.c.
| #define SYS_SBS 0x02 |
Definition at line 44 of file mrtk_rcv_binex.c.
| #define TSYS_CMP 5 |
Definition at line 56 of file mrtk_rcv_binex.c.
| #define TSYS_GAL 3 |
Definition at line 54 of file mrtk_rcv_binex.c.
| #define TSYS_GLO 2 |
Definition at line 53 of file mrtk_rcv_binex.c.
| #define TSYS_GPS 0 |
Definition at line 51 of file mrtk_rcv_binex.c.
| #define TSYS_IRN 6 |
Definition at line 57 of file mrtk_rcv_binex.c.
| #define TSYS_QZS 4 |
Definition at line 55 of file mrtk_rcv_binex.c.
| #define TSYS_UTC 1 |
Definition at line 52 of file mrtk_rcv_binex.c.
| #define U1 | ( | p | ) |
Definition at line 126 of file mrtk_rcv_binex.c.
Referenced by decode_bnx(), decode_bnx_00(), decode_bnx_01(), decode_bnx_01_01(), decode_bnx_01_02(), decode_bnx_01_03(), decode_bnx_01_04(), decode_bnx_01_05(), decode_bnx_01_06(), decode_bnx_01_07(), decode_bnx_01_14(), decode_bnx_7f(), decode_bnx_7f_05(), decode_bnx_7f_05_obs(), decode_rxmraw(), decode_rxmsfrb(), decode_rxmsfrbx(), decode_stqack(), decode_stqbds(), decode_stqglo(), decode_stqgps(), decode_stqnack(), decode_stqraw(), decode_stqrawx(), decode_trksfrbx(), input_ss2(), and input_ss2f().
Definition at line 1704 of file mrtk_rcv_binex.c.
References nav_s::eph, free, nav_s::n, nav_s::nmax, and trace().
Referenced by readbnxfp().
Definition at line 1722 of file mrtk_rcv_binex.c.
References free, nav_s::geph, nav_s::ng, nav_s::ngmax, and trace().
Referenced by readbnxfp().
Definition at line 1740 of file mrtk_rcv_binex.c.
References free, nav_s::ns, nav_s::nsmax, nav_s::seph, and trace().
Referenced by readbnxfp().
Definition at line 1682 of file mrtk_rcv_binex.c.
References obs_t::data, free, obs_t::n, NINCOBS, obs_t::nmax, and trace().
Referenced by readbnxfp().
Definition at line 202 of file mrtk_rcv_binex.c.
References epoch2time(), time2epoch(), and timeadd().
Referenced by decode_bnx_01_02().
Definition at line 190 of file mrtk_rcv_binex.c.
References gpst2time(), and time2gpst().
Referenced by decode_bnx_01_01(), decode_bnx_01_03(), decode_bnx_01_04(), decode_bnx_01_05(), decode_bnx_01_06(), decode_bnx_01_07(), and decode_bnx_01_14().
|
static |
Definition at line 676 of file mrtk_rcv_binex.c.
Referenced by decode_bnx_01_05().
|
static |
Definition at line 180 of file mrtk_rcv_binex.c.
Referenced by decode_bnx().
|
static |
Definition at line 1469 of file mrtk_rcv_binex.c.
References raw_t::buff, csum8(), decode_bnx_00(), decode_bnx_01(), decode_bnx_02(), decode_bnx_03(), decode_bnx_7d(), decode_bnx_7e(), decode_bnx_7f(), getbnxi(), raw_t::len, raw_t::msgtype, raw_t::outtype, rtk_crc16(), trace(), U1, and U2.
Referenced by input_bnx(), input_bnxf(), and readbnxfp().
|
static |
Definition at line 241 of file mrtk_rcv_binex.c.
References sta_t::antdes, sta_t::antsno, D2R, sta_t::del, sta_t::deltype, epoch2time(), getbnxi(), gpst0, sta_t::marker, matcpy(), MAXANT, MIN, raw_t::msgtype, sta_t::name, raw_t::outtype, sta_t::pos, pos2ecef(), R8, sta_t::recsno, sta_t::rectype, sta_t::recver, raw_t::sta, raw_t::time, time_str(), timeadd(), trace(), U1, and U4.
Referenced by decode_bnx().
|
static |
Definition at line 1066 of file mrtk_rcv_binex.c.
References decode_bnx_01_00(), decode_bnx_01_01(), decode_bnx_01_02(), decode_bnx_01_03(), decode_bnx_01_04(), decode_bnx_01_05(), decode_bnx_01_06(), decode_bnx_01_07(), decode_bnx_01_14(), raw_t::msgtype, raw_t::outtype, and U1.
Referenced by decode_bnx().
|
static |
Definition at line 323 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx_01().
|
static |
Definition at line 328 of file mrtk_rcv_binex.c.
References eph_t::A, adjweek(), eph_t::cic, eph_t::cis, eph_t::code, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, nav_s::eph, raw_t::ephsat, raw_t::ephset, eph_t::f0, eph_t::f1, eph_t::f2, eph_t::fit, eph_t::flag, gpst2time(), eph_t::i0, I4, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, raw_t::nav, eph_t::omg, eph_t::OMG0, eph_t::OMGd, raw_t::opt, R4, R8, eph_t::sat, satno(), SC2RAD, SQR, eph_t::sva, eph_t::svh, SYS_GPS, eph_t::tgd, eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, U1, U2, uraindex(), and eph_t::week.
Referenced by decode_bnx_01().
|
static |
Definition at line 422 of file mrtk_rcv_binex.c.
References geph_t::acc, adjday(), geph_t::age, geph_t::dtaun, raw_t::ephsat, raw_t::ephset, geph_t::frq, geph_t::gamn, nav_s::geph, I1, geph_t::iode, MINPRNGLO, raw_t::nav, raw_t::opt, geph_t::pos, R8, geph_t::sat, satno(), geph_t::svh, SYS_GLO, geph_t::taun, gtime_t::time, raw_t::time, timediff(), geph_t::toe, geph_t::tof, trace(), U1, U2, U4, utc2gpst(), and geph_t::vel.
Referenced by decode_bnx_01().
|
static |
Definition at line 500 of file mrtk_rcv_binex.c.
References seph_t::acc, adjweek(), seph_t::af0, raw_t::ephsat, raw_t::ephset, gpst2time(), MINPRNSBS, raw_t::nav, raw_t::opt, seph_t::pos, R4, R8, seph_t::sat, satno(), nav_s::seph, seph_t::sva, seph_t::svh, SYS_SBS, seph_t::t0, timediff(), seph_t::tof, trace(), U1, U2, U4, and seph_t::vel.
Referenced by decode_bnx_01().
|
static |
Definition at line 568 of file mrtk_rcv_binex.c.
References eph_t::A, adjweek(), eph_t::cic, eph_t::cis, eph_t::code, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, nav_s::eph, eph_sel, raw_t::ephsat, raw_t::ephset, eph_t::f0, eph_t::f1, eph_t::f2, gpst2time(), eph_t::i0, I4, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, MAXSAT, raw_t::nav, eph_t::omg, eph_t::OMG0, eph_t::OMGd, raw_t::opt, R4, R8, eph_t::sat, satno(), SC2RAD, sisaindex(), SQR, eph_t::sva, eph_t::svh, SYS_GAL, eph_t::tgd, timediff(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, U1, U2, and eph_t::week.
Referenced by decode_bnx_01().
|
static |
Definition at line 681 of file mrtk_rcv_binex.c.
References eph_t::A, adjweek(), bds_tgd(), eph_t::cic, eph_t::cis, eph_t::code, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, nav_s::eph, raw_t::ephsat, raw_t::ephset, eph_t::f0, eph_t::f1, eph_t::f2, eph_t::flag, gpst2time(), eph_t::i0, I4, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, raw_t::nav, eph_t::omg, eph_t::OMG0, eph_t::OMGd, raw_t::opt, R4, R8, eph_t::sat, satno(), SC2RAD, SQR, eph_t::sva, eph_t::svh, SYS_CMP, eph_t::tgd, timediff(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, U1, U2, U4, and eph_t::week.
Referenced by decode_bnx_01().
|
static |
Definition at line 774 of file mrtk_rcv_binex.c.
References eph_t::A, adjweek(), eph_t::cic, eph_t::cis, eph_t::code, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, nav_s::eph, raw_t::ephsat, raw_t::ephset, eph_t::f0, eph_t::f1, eph_t::f2, eph_t::fit, gpst2time(), eph_t::i0, I4, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, raw_t::nav, eph_t::omg, eph_t::OMG0, eph_t::OMGd, raw_t::opt, R4, R8, eph_t::sat, satno(), SC2RAD, SQR, eph_t::sva, eph_t::svh, SYS_QZS, eph_t::tgd, eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, U1, U2, uraindex(), and eph_t::week.
Referenced by decode_bnx_01().
|
static |
Definition at line 867 of file mrtk_rcv_binex.c.
References eph_t::A, adjweek(), eph_t::cic, eph_t::cis, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, nav_s::eph, raw_t::ephsat, raw_t::ephset, eph_t::f0, eph_t::f1, eph_t::f2, gpst2time(), eph_t::i0, I4, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, raw_t::nav, eph_t::omg, eph_t::OMG0, eph_t::OMGd, raw_t::opt, P2_31, R4, R8, eph_t::sat, satno(), SC2RAD, SQR, eph_t::sva, eph_t::svh, SYS_IRN, eph_t::tgd, timediff(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, U1, U2, and eph_t::week.
Referenced by decode_bnx_01().
|
static |
Definition at line 956 of file mrtk_rcv_binex.c.
References eph_t::A, adjweek(), eph_t::cic, eph_t::cis, eph_t::code, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, nav_s::eph, eph_sel, raw_t::ephsat, raw_t::ephset, eph_t::f0, eph_t::f1, eph_t::f2, gpst2time(), eph_t::i0, I4, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, MAXSAT, raw_t::nav, eph_t::omg, eph_t::OMG0, eph_t::OMGd, raw_t::opt, R4, R8, eph_t::sat, satno(), SC2RAD, sisaindex(), SQR, eph_t::sva, eph_t::svh, SYS_GAL, eph_t::tgd, timediff(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, U1, U2, and eph_t::week.
Referenced by decode_bnx_01().
|
static |
Definition at line 1096 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx().
|
static |
Definition at line 1101 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx().
|
static |
Definition at line 1106 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx().
|
static |
Definition at line 1111 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx().
|
static |
Definition at line 1433 of file mrtk_rcv_binex.c.
References decode_bnx_7f_00(), decode_bnx_7f_01(), decode_bnx_7f_02(), decode_bnx_7f_03(), decode_bnx_7f_04(), decode_bnx_7f_05(), epoch2time(), gpst0, raw_t::msgtype, raw_t::outtype, raw_t::time, time_str(), timeadd(), U1, U2, and U4.
Referenced by decode_bnx().
|
static |
Definition at line 1116 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx_7f().
|
static |
Definition at line 1121 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx_7f().
|
static |
Definition at line 1126 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx_7f().
|
static |
Definition at line 1131 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx_7f().
|
static |
Definition at line 1136 of file mrtk_rcv_binex.c.
References trace().
Referenced by decode_bnx_7f().
|
static |
Definition at line 1349 of file mrtk_rcv_binex.c.
References obs_t::data, decode_bnx_7f_05_obs(), getbits(), getbitu(), MAXOBS, raw_t::msgtype, obs_t::n, raw_t::obs, raw_t::outtype, obsd_t::sat, satno(), SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_IRN, SYS_QZS, SYS_SBS, trace(), and U1.
Referenced by decode_bnx_7f().
|
static |
Definition at line 1141 of file mrtk_rcv_binex.c.
References CLIGHT, obsd_t::code, code2freq(), code2freq_idx(), CODE_L1A, CODE_L1B, CODE_L1C, CODE_L1D, CODE_L1L, CODE_L1M, CODE_L1N, CODE_L1P, CODE_L1S, CODE_L1W, CODE_L1X, CODE_L1Y, CODE_L1Z, CODE_L2C, CODE_L2D, CODE_L2I, CODE_L2L, CODE_L2M, CODE_L2N, CODE_L2P, CODE_L2Q, CODE_L2S, CODE_L2W, CODE_L2X, CODE_L2Y, CODE_L3I, CODE_L3Q, CODE_L3X, CODE_L4A, CODE_L4B, CODE_L4X, CODE_L5A, CODE_L5B, CODE_L5C, CODE_L5D, CODE_L5I, CODE_L5P, CODE_L5Q, CODE_L5X, CODE_L5Z, CODE_L6A, CODE_L6B, CODE_L6C, CODE_L6D, CODE_L6E, CODE_L6I, CODE_L6L, CODE_L6P, CODE_L6Q, CODE_L6S, CODE_L6X, CODE_L6Z, CODE_L7D, CODE_L7I, CODE_L7P, CODE_L7Q, CODE_L7X, CODE_L7Z, CODE_L8D, CODE_L8I, CODE_L8P, CODE_L8Q, CODE_L8X, CODE_L9A, CODE_L9B, CODE_L9C, CODE_L9X, CODE_NONE, obsd_t::D, getbits(), getbitu(), getcodepri(), nav_s::glo_fcn, obsd_t::L, obsd_t::LLI, raw_t::nav, raw_t::opt, obsd_t::P, range, obsd_t::sat, satsys(), obsd_t::SNR, SNR_UNIT, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_IRN, SYS_QZS, SYS_SBS, obsd_t::time, raw_t::time, trace(), U1, and U2.
Referenced by decode_bnx_7f_05().
|
static |
Definition at line 167 of file mrtk_rcv_binex.c.
Referenced by decode_bnx(), decode_bnx_00(), input_bnx(), input_bnxf(), and readbnxfp().
|
static |
Definition at line 147 of file mrtk_rcv_binex.c.
References U4.
|
extern |
Definition at line 1555 of file mrtk_rcv_binex.c.
References raw_t::buff, decode_bnx(), getbnxi(), raw_t::len, raw_t::nbyte, sync_bnx(), and trace().
Referenced by input_raw().
|
extern |
Definition at line 1599 of file mrtk_rcv_binex.c.
References raw_t::buff, decode_bnx(), getbnxi(), raw_t::len, raw_t::nbyte, sync_bnx(), and trace().
Referenced by input_rawf().
|
static |
Definition at line 148 of file mrtk_rcv_binex.c.
|
static |
Definition at line 157 of file mrtk_rcv_binex.c.
|
static |
Definition at line 1857 of file mrtk_rcv_binex.c.
References sta_t::antdes, sta_t::antsetup, sta_t::antsno, sta_t::deltype, sta_t::hgt, sta_t::itrf, sta_t::marker, sta_t::name, readbnxfp(), sta_t::recsno, sta_t::rectype, sta_t::recver, rtk_uncompress(), and trace().
Referenced by readbnxt().
|
static |
Definition at line 1758 of file mrtk_rcv_binex.c.
References add_eph(), add_geph(), add_seph(), addobsdata(), raw_t::buff, obs_t::data, decode_bnx(), nav_s::eph, raw_t::ephsat, free_raw(), nav_s::geph, getbnxi(), init_raw(), raw_t::len, MAXSAT, MINPRNSBS, obs_t::n, raw_t::nav, prcopt_t::navsys, raw_t::nbyte, raw_t::obs, raw_t::opt, obsd_t::rcv, restslips(), obsd_t::sat, satsys(), saveslips(), screent(), nav_s::seph, STRFMT_BINEX, sync_bnx(), SYS_GLO, SYS_SBS, obsd_t::time, and trace().
Referenced by readbnxfile(), and readbnxt().
|
extern |
Read BINEX observation/navigation data from file(s).
| [in] | file | File path (supports wildcards) |
| [in] | rcv | Receiver number (1:rover, 2:base) |
| [in] | ts | Start time (ts.time==0: no limit) |
| [in] | te | End time (te.time==0: no limit) |
| [in] | tint | Time interval (0: all) |
| [in] | opt | RINEX options string |
| [in,out] | obs | Observation data |
| [in,out] | nav | Navigation data |
| [in,out] | sta | Station information (NULL: not output) |
| [in] | popt | Processing options (for navsys filtering) |
Definition at line 1908 of file mrtk_rcv_binex.c.
References expath(), FILEPATHSEP, free, malloc, MAXEXFILE, sta_t::name, readbnxfile(), readbnxfp(), setstr_bnx(), and trace().
Referenced by readobsnav().
|
static |
Definition at line 1672 of file mrtk_rcv_binex.c.
References obsd_t::LLI, and obsd_t::sat.
Referenced by readbnxfp().
|
static |
Definition at line 1663 of file mrtk_rcv_binex.c.
References obsd_t::LLI, and obsd_t::sat.
Referenced by readbnxfp().
|
static |
Definition at line 1651 of file mrtk_rcv_binex.c.
Referenced by readbnxt().
|
static |
Definition at line 225 of file mrtk_rcv_binex.c.
Referenced by decode_bnx_01_04(), and decode_bnx_01_14().
|
static |
Definition at line 1515 of file mrtk_rcv_binex.c.
References BNXSYNC2.
Referenced by input_bnx(), input_bnxf(), and readbnxfp().
|
static |
Definition at line 129 of file mrtk_rcv_binex.c.
|
static |
Definition at line 138 of file mrtk_rcv_binex.c.
|
static |
Definition at line 215 of file mrtk_rcv_binex.c.
References ura_eph.
Referenced by decode_bnx_01_01(), and decode_bnx_01_06().
|
static |
Definition at line 123 of file mrtk_rcv_binex.c.