MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_rtcm3.c File Reference
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "mrtklib/mrtk_atmos.h"
#include "mrtklib/mrtk_bits.h"
#include "mrtklib/mrtk_coords.h"
#include "mrtklib/mrtk_eph.h"
#include "mrtklib/mrtk_obs.h"
#include "mrtklib/mrtk_rtcm.h"
#include "mrtklib/mrtk_sys.h"
#include "mrtklib/mrtk_trace.h"
Include dependency graph for mrtk_rtcm3.c:

Go to the source code of this file.

Classes

struct  msm_h_t

Macros

#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 LLI_SLIP   0x01
#define LLI_HALFC   0x02
#define LLI_BOCTRK   0x04
#define LLI_HALFA   0x40
#define LLI_HALFS   0x80
#define SSR_VENDOR_L6   0 /* vendor type L6(MADOCA-PPP) */
#define SSR_VENDOR_RTCM   1 /* vendor type RTCM3(JAXA-MADOCA) */
#define PRUNIT_GPS   299792.458 /* rtcm ver.3 unit of gps pseudorange (m) */
#define PRUNIT_GLO   599584.916 /* rtcm ver.3 unit of glonass pseudorange (m) */
#define RANGE_MS   (CLIGHT * 0.001) /* range in 1 ms */
#define P2_5   0.03125
#define P2_6   0.015625
#define P2_10   0.0009765625
#define P2_11   4.882812500000000E-04
#define P2_19   1.907348632812500E-06
#define P2_20   9.536743164062500E-07
#define P2_24   5.960464477539063E-08
#define P2_28   3.725290298461914E-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_40   9.094947017729280E-13
#define P2_41   4.547473508864641E-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 P2_66   1.355252715606880E-20

Functions

int decode_qzss_l6emsg (rtcm_t *rtcm)
static double getbitg (const uint8_t *buff, int pos, int len)
static void adjweek (rtcm_t *rtcm, double tow)
static int adjbdtweek (int week)
static void adjday_glot (rtcm_t *rtcm, double tod)
static double adjcp (rtcm_t *rtcm, int sat, int idx, double cp)
static int lossoflock (rtcm_t *rtcm, int sat, int idx, int lock)
static uint16_t snratio (double snr)
static int obsindex (obs_t *obs, gtime_t time, int sat)
static int test_staid (rtcm_t *rtcm, int staid)
static int decode_head1001 (rtcm_t *rtcm, int *sync)
static int decode_type1001 (rtcm_t *rtcm)
static int decode_type1002 (rtcm_t *rtcm)
static int decode_type1003 (rtcm_t *rtcm)
static int decode_type1004 (rtcm_t *rtcm)
static double getbits_38 (const uint8_t *buff, int pos)
static int decode_type1005 (rtcm_t *rtcm)
static int decode_type1006 (rtcm_t *rtcm)
static int decode_type1007 (rtcm_t *rtcm)
static int decode_type1008 (rtcm_t *rtcm)
static int decode_head1009 (rtcm_t *rtcm, int *sync)
static int decode_type1009 (rtcm_t *rtcm)
static int decode_type1010 (rtcm_t *rtcm)
static int decode_type1011 (rtcm_t *rtcm)
static int decode_type1012 (rtcm_t *rtcm)
static int decode_type1013 (rtcm_t *rtcm)
static int decode_type1019 (rtcm_t *rtcm)
static int decode_type1020 (rtcm_t *rtcm)
static int decode_type1021 (rtcm_t *rtcm)
static int decode_type1022 (rtcm_t *rtcm)
static int decode_type1023 (rtcm_t *rtcm)
static int decode_type1024 (rtcm_t *rtcm)
static int decode_type1025 (rtcm_t *rtcm)
static int decode_type1026 (rtcm_t *rtcm)
static int decode_type1027 (rtcm_t *rtcm)
static int decode_type1029 (rtcm_t *rtcm)
static int decode_type1030 (rtcm_t *rtcm)
static int decode_type1031 (rtcm_t *rtcm)
static int decode_type1032 (rtcm_t *rtcm)
static int decode_type1033 (rtcm_t *rtcm)
static int decode_type1034 (rtcm_t *rtcm)
static int decode_type1035 (rtcm_t *rtcm)
static int decode_type1037 (rtcm_t *rtcm)
static int decode_type1038 (rtcm_t *rtcm)
static int decode_type1039 (rtcm_t *rtcm)
static int decode_type1041 (rtcm_t *rtcm)
static int decode_type1044 (rtcm_t *rtcm)
static int decode_type1045 (rtcm_t *rtcm)
static int decode_type1046 (rtcm_t *rtcm)
static int decode_type1042 (rtcm_t *rtcm)
static int decode_ssr_epoch (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr1_head (rtcm_t *rtcm, int sys, int subtype, int *sync, int *iod, double *udint, int *refd, int *hsize)
static int decode_ssr2_head (rtcm_t *rtcm, int sys, int subtype, int *sync, int *iod, double *udint, int *hsize)
static int decode_ssr1 (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr2 (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr3 (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr4 (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr5 (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr6 (rtcm_t *rtcm, int sys, int subtype)
static int decode_ssr7_head (rtcm_t *rtcm, int sys, int subtype, int *sync, int *iod, double *udint, int *dispe, int *mw, int *hsize)
static int decode_ssr7 (rtcm_t *rtcm, int sys, int subtype)
static void sigindex (int sys, const uint8_t *code, int n, const char *opt, int *idx)
static void save_msm_obs (rtcm_t *rtcm, int sys, msm_h_t *h, const double *r, const double *pr, const double *cp, const double *rr, const double *rrf, const double *cnr, const int *lock, const int *ex, const int *half)
static int decode_msm_head (rtcm_t *rtcm, int sys, int *sync, int *iod, msm_h_t *h, int *hsize)
static int decode_msm0 (rtcm_t *rtcm, int sys)
static int decode_msm4 (rtcm_t *rtcm, int sys)
static int decode_msm5 (rtcm_t *rtcm, int sys)
static int decode_msm6 (rtcm_t *rtcm, int sys)
static int decode_msm7 (rtcm_t *rtcm, int sys)
static int decode_type1230 (rtcm_t *rtcm)
static int decode_type4073 (rtcm_t *rtcm)
static int decode_type4076 (rtcm_t *rtcm)
static int decode_type4050 (rtcm_t *rtcm)
int decode_rtcm3 (rtcm_t *rtcm)
 Decode RTCM ver.3 message (called from rtcm.c).

Variables

static const double CLIGHT = 299792458.0
static const double FREQ1 = 1.57542E9
static const double FREQ2 = 1.22760E9
static const double FREQ5 = 1.17645E9
static const double FREQ6 = 1.27875E9
static const double FREQ7 = 1.20714E9
static const double FREQ8 = 1.191795E9
static const double FREQ9 = 2.492028E9
static const double FREQ1_GLO = 1.60200E9
static const double DFRQ1_GLO = 0.56250E6
static const double FREQ2_GLO = 1.24600E9
static const double DFRQ2_GLO = 0.43750E6
static const double FREQ3_GLO = 1.202025E9
static const double FREQ1a_GLO = 1.600995E9
static const double FREQ2a_GLO = 1.248060E9
static const double FREQ1_CMP = 1.561098E9
static const double FREQ2_CMP = 1.20714E9
static const double FREQ3_CMP = 1.26852E9
static const double D2R = 3.1415926535897932 / 180.0
static const double R2D = 180.0 / 3.1415926535897932
static const double SC2RAD = 3.1415926535897932
static const double RE_WGS84 = 6378137.0
const char * msm_sig_gps [32]
const char * msm_sig_glo [32]
const char * msm_sig_gal [32]
const char * msm_sig_qzs [32]
const char * msm_sig_sbs [32]
const char * msm_sig_cmp [32]
const char * msm_sig_irn [32]
const uint8_t ssr_sig_gps [32]
const uint8_t ssr_sig_glo [32]
const uint8_t ssr_sig_gal [32]
const uint8_t ssr_sig_qzs [32]
const uint8_t ssr_sig_cmp [32]
const uint8_t ssr_sig_sbs [32] = {CODE_L1C, CODE_L5I, CODE_L5Q}
static const double ssrudint [16] = {1, 2, 5, 10, 15, 30, 60, 120, 240, 300, 600, 900, 1800, 3600, 7200, 10800}

Macro Definition Documentation

◆ LLI_BOCTRK

#define LLI_BOCTRK   0x04

Definition at line 49 of file mrtk_rtcm3.c.

◆ LLI_HALFA

#define LLI_HALFA   0x40

Definition at line 50 of file mrtk_rtcm3.c.

◆ LLI_HALFC

#define LLI_HALFC   0x02

Definition at line 48 of file mrtk_rtcm3.c.

◆ LLI_HALFS

#define LLI_HALFS   0x80

Definition at line 51 of file mrtk_rtcm3.c.

◆ LLI_SLIP

#define LLI_SLIP   0x01

Definition at line 47 of file mrtk_rtcm3.c.

◆ P2_10

#define P2_10   0.0009765625

Definition at line 90 of file mrtk_rtcm3.c.

◆ P2_11

#define P2_11   4.882812500000000E-04

Definition at line 91 of file mrtk_rtcm3.c.

◆ P2_19

#define P2_19   1.907348632812500E-06

Definition at line 92 of file mrtk_rtcm3.c.

◆ P2_20

#define P2_20   9.536743164062500E-07

Definition at line 93 of file mrtk_rtcm3.c.

◆ P2_24

#define P2_24   5.960464477539063E-08

Definition at line 94 of file mrtk_rtcm3.c.

◆ P2_28

#define P2_28   3.725290298461914E-09

Definition at line 95 of file mrtk_rtcm3.c.

◆ P2_29

#define P2_29   1.862645149230957E-09

Definition at line 96 of file mrtk_rtcm3.c.

◆ P2_30

#define P2_30   9.313225746154785E-10

Definition at line 97 of file mrtk_rtcm3.c.

◆ P2_31

#define P2_31   4.656612873077393E-10

Definition at line 98 of file mrtk_rtcm3.c.

◆ P2_32

#define P2_32   2.328306436538696E-10

Definition at line 99 of file mrtk_rtcm3.c.

◆ P2_33

#define P2_33   1.164153218269348E-10

Definition at line 100 of file mrtk_rtcm3.c.

◆ P2_34

#define P2_34   5.820766091346740E-11

Definition at line 101 of file mrtk_rtcm3.c.

◆ P2_40

#define P2_40   9.094947017729280E-13

Definition at line 102 of file mrtk_rtcm3.c.

◆ P2_41

#define P2_41   4.547473508864641E-13

Definition at line 103 of file mrtk_rtcm3.c.

◆ P2_43

#define P2_43   1.136868377216160E-13

Definition at line 104 of file mrtk_rtcm3.c.

◆ P2_46

#define P2_46   1.421085471520200E-14

Definition at line 105 of file mrtk_rtcm3.c.

◆ P2_5

#define P2_5   0.03125

Definition at line 88 of file mrtk_rtcm3.c.

◆ P2_50

#define P2_50   8.881784197001252E-16

Definition at line 106 of file mrtk_rtcm3.c.

◆ P2_55

#define P2_55   2.775557561562891E-17

Definition at line 107 of file mrtk_rtcm3.c.

◆ P2_59

#define P2_59   1.734723475976810E-18

Definition at line 108 of file mrtk_rtcm3.c.

◆ P2_6

#define P2_6   0.015625

Definition at line 89 of file mrtk_rtcm3.c.

◆ P2_66

#define P2_66   1.355252715606880E-20

Definition at line 109 of file mrtk_rtcm3.c.

◆ PRUNIT_GLO

#define PRUNIT_GLO   599584.916 /* rtcm ver.3 unit of glonass pseudorange (m) */

Definition at line 85 of file mrtk_rtcm3.c.

Referenced by decode_type1010(), decode_type1012(), and gen_obs_glo().

◆ PRUNIT_GPS

#define PRUNIT_GPS   299792.458 /* rtcm ver.3 unit of gps pseudorange (m) */

Definition at line 84 of file mrtk_rtcm3.c.

Referenced by decode_type1002(), decode_type1004(), and gen_obs_gps().

◆ RANGE_MS

◆ SSR_VENDOR_L6

#define SSR_VENDOR_L6   0 /* vendor type L6(MADOCA-PPP) */

Definition at line 76 of file mrtk_rtcm3.c.

◆ SSR_VENDOR_RTCM

#define SSR_VENDOR_RTCM   1 /* vendor type RTCM3(JAXA-MADOCA) */

Definition at line 77 of file mrtk_rtcm3.c.

◆ SYS_CMP

#define SYS_CMP   0x20

Definition at line 36 of file mrtk_rtcm3.c.

◆ SYS_GAL

#define SYS_GAL   0x08

Definition at line 34 of file mrtk_rtcm3.c.

◆ SYS_GLO

#define SYS_GLO   0x04

Definition at line 33 of file mrtk_rtcm3.c.

◆ SYS_GPS

#define SYS_GPS   0x01

Definition at line 31 of file mrtk_rtcm3.c.

◆ SYS_IRN

#define SYS_IRN   0x40

Definition at line 37 of file mrtk_rtcm3.c.

◆ SYS_NONE

#define SYS_NONE   0x00

Definition at line 30 of file mrtk_rtcm3.c.

◆ SYS_QZS

#define SYS_QZS   0x10

Definition at line 35 of file mrtk_rtcm3.c.

◆ SYS_SBS

#define SYS_SBS   0x02

Definition at line 32 of file mrtk_rtcm3.c.

◆ TSYS_CMP

#define TSYS_CMP   5

Definition at line 44 of file mrtk_rtcm3.c.

◆ TSYS_GAL

#define TSYS_GAL   3

Definition at line 42 of file mrtk_rtcm3.c.

◆ TSYS_GLO

#define TSYS_GLO   2

Definition at line 41 of file mrtk_rtcm3.c.

◆ TSYS_GPS

#define TSYS_GPS   0

Definition at line 39 of file mrtk_rtcm3.c.

◆ TSYS_IRN

#define TSYS_IRN   6

Definition at line 45 of file mrtk_rtcm3.c.

◆ TSYS_QZS

#define TSYS_QZS   4

Definition at line 43 of file mrtk_rtcm3.c.

◆ TSYS_UTC

#define TSYS_UTC   1

Definition at line 40 of file mrtk_rtcm3.c.

Function Documentation

◆ adjbdtweek()

int adjbdtweek ( int week)
static

Definition at line 196 of file mrtk_rtcm3.c.

References gpst2bdt(), time2bdt(), timeget(), and utc2gpst().

Referenced by decode_type1042().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjcp()

double adjcp ( rtcm_t * rtcm,
int sat,
int idx,
double cp )
static

Definition at line 226 of file mrtk_rtcm3.c.

References rtcm.

Referenced by decode_type1002(), decode_type1004(), decode_type1010(), and decode_type1012().

Here is the caller graph for this function:

◆ adjday_glot()

void adjday_glot ( rtcm_t * rtcm,
double tod )
static

Definition at line 205 of file mrtk_rtcm3.c.

References gpst2time(), gpst2utc(), rtcm, time2gpst(), timeadd(), timeget(), and utc2gpst().

Referenced by decode_head1009(), decode_msm_head(), and decode_ssr_epoch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ adjweek()

void adjweek ( rtcm_t * rtcm,
double tow )
static

Definition at line 179 of file mrtk_rtcm3.c.

References gpst2time(), rtcm, time2gpst(), timeget(), and utc2gpst().

Referenced by decode_head1001(), decode_msm_head(), and decode_ssr_epoch().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_head1001()

int decode_head1001 ( rtcm_t * rtcm,
int * sync )
static

Definition at line 294 of file mrtk_rtcm3.c.

References adjweek(), getbitu(), rtcm, test_staid(), time2str(), and trace().

Referenced by decode_type1001(), decode_type1002(), decode_type1003(), and decode_type1004().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_head1009()

int decode_head1009 ( rtcm_t * rtcm,
int * sync )
static

Definition at line 653 of file mrtk_rtcm3.c.

References adjday_glot(), getbitu(), rtcm, test_staid(), time2str(), and trace().

Referenced by decode_type1009(), decode_type1010(), decode_type1011(), and decode_type1012().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_msm0()

int decode_msm0 ( rtcm_t * rtcm,
int sys )
static

Definition at line 2870 of file mrtk_rtcm3.c.

References decode_msm_head(), and rtcm.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_msm4()

int decode_msm4 ( rtcm_t * rtcm,
int sys )
static

Definition at line 2880 of file mrtk_rtcm3.c.

References decode_msm_head(), getbits(), getbitu(), msm_h_t::nsat, P2_10, P2_24, P2_29, RANGE_MS, rtcm, save_msm_obs(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_msm5()

int decode_msm5 ( rtcm_t * rtcm,
int sys )
static

Definition at line 2952 of file mrtk_rtcm3.c.

References decode_msm_head(), getbits(), getbitu(), msm_h_t::nsat, P2_10, P2_24, P2_29, RANGE_MS, rtcm, save_msm_obs(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_msm6()

int decode_msm6 ( rtcm_t * rtcm,
int sys )
static

Definition at line 3044 of file mrtk_rtcm3.c.

References decode_msm_head(), getbits(), getbitu(), msm_h_t::nsat, P2_10, P2_29, P2_31, RANGE_MS, rtcm, save_msm_obs(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_msm7()

int decode_msm7 ( rtcm_t * rtcm,
int sys )
static

Definition at line 3116 of file mrtk_rtcm3.c.

References decode_msm_head(), getbits(), getbitu(), msm_h_t::nsat, P2_10, P2_29, P2_31, RANGE_MS, rtcm, save_msm_obs(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_msm_head()

int decode_msm_head ( rtcm_t * rtcm,
int sys,
int * sync,
int * iod,
msm_h_t * h,
int * hsize )
static

Definition at line 2774 of file mrtk_rtcm3.c.

References adjday_glot(), adjweek(), msm_h_t::cellmask, msm_h_t::clk_ext, msm_h_t::clk_str, getbitu(), msm_h_t::nsat, msm_h_t::nsig, rtcm, msm_h_t::sats, msm_h_t::sigs, msm_h_t::smooth, SYS_CMP, SYS_GLO, test_staid(), time2str(), msm_h_t::time_s, msm_h_t::tint_s, and trace().

Referenced by decode_msm0(), decode_msm4(), decode_msm5(), decode_msm6(), and decode_msm7().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_qzss_l6emsg()

int decode_qzss_l6emsg ( rtcm_t * rtcm)
extern

Definition at line 704 of file mrtk_madoca.c.

Referenced by decode_type4050().

Here is the caller graph for this function:

◆ decode_rtcm3()

int decode_rtcm3 ( rtcm_t * rtcm)

Decode RTCM ver.3 message (called from rtcm.c).

Parameters
[in,out]rtcmRTCM control struct
Returns
Status (-1:error, 0:no message, 1:obs, 2:eph, ...)

Definition at line 3402 of file mrtk_rtcm3.c.

References decode_lcliono(), decode_lcltrop(), decode_msm0(), decode_msm4(), decode_msm5(), decode_msm6(), decode_msm7(), decode_ssr1(), decode_ssr2(), decode_ssr3(), decode_ssr4(), decode_ssr5(), decode_ssr6(), decode_ssr7(), decode_type1001(), decode_type1002(), decode_type1003(), decode_type1004(), decode_type1005(), decode_type1006(), decode_type1007(), decode_type1008(), decode_type1009(), decode_type1010(), decode_type1011(), decode_type1012(), decode_type1013(), decode_type1019(), decode_type1020(), decode_type1021(), decode_type1022(), decode_type1023(), decode_type1024(), decode_type1025(), decode_type1026(), decode_type1027(), decode_type1029(), decode_type1030(), decode_type1031(), decode_type1032(), decode_type1033(), decode_type1034(), decode_type1035(), decode_type1037(), decode_type1038(), decode_type1039(), decode_type1041(), decode_type1042(), decode_type1044(), decode_type1045(), decode_type1046(), decode_type1230(), decode_type4050(), decode_type4073(), decode_type4076(), getbitu(), gpst2time(), rtcm, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_IRN, SYS_QZS, SYS_SBS, time2gpst(), timeget(), trace(), and utc2gpst().

Referenced by input_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr1()

int decode_ssr1 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 1918 of file mrtk_rtcm3.c.

References decode_ssr1_head(), getbits(), getbitu(), rtcm, satno(), SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr1_head()

int decode_ssr1_head ( rtcm_t * rtcm,
int sys,
int subtype,
int * sync,
int * iod,
double * udint,
int * refd,
int * hsize )
static

Definition at line 1821 of file mrtk_rtcm3.c.

References decode_ssr_epoch(), getbitu(), rtcm, ssrudint, SYS_GLO, SYS_QZS, time2str(), and trace().

Referenced by decode_ssr1(), and decode_ssr4().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr2()

int decode_ssr2 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 2022 of file mrtk_rtcm3.c.

References decode_ssr2_head(), getbits(), getbitu(), rtcm, satno(), SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr2_head()

int decode_ssr2_head ( rtcm_t * rtcm,
int sys,
int subtype,
int * sync,
int * iod,
double * udint,
int * hsize )
static

Definition at line 1874 of file mrtk_rtcm3.c.

References decode_ssr_epoch(), getbitu(), rtcm, ssrudint, SYS_GLO, SYS_QZS, time2str(), and trace().

Referenced by decode_ssr2(), decode_ssr3(), decode_ssr5(), and decode_ssr6().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr3()

int decode_ssr3 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 2095 of file mrtk_rtcm3.c.

References decode_ssr2_head(), getbits(), getbitu(), MAXCODE, rtcm, satno(), ssr_sig_cmp, ssr_sig_gal, ssr_sig_glo, ssr_sig_gps, ssr_sig_qzs, ssr_sig_sbs, SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr4()

int decode_ssr4 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 2189 of file mrtk_rtcm3.c.

References decode_ssr1_head(), getbits(), getbitu(), rtcm, satno(), SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr5()

int decode_ssr5 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 2298 of file mrtk_rtcm3.c.

References decode_ssr2_head(), getbitu(), rtcm, satno(), SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr6()

int decode_ssr6 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 2364 of file mrtk_rtcm3.c.

References decode_ssr2_head(), getbits(), getbitu(), rtcm, satno(), SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr7()

int decode_ssr7 ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 2479 of file mrtk_rtcm3.c.

References decode_ssr7_head(), getbits(), getbitu(), MAXCODE, rtcm, satno(), ssr_sig_cmp, ssr_sig_gal, ssr_sig_glo, ssr_sig_gps, ssr_sig_qzs, SSR_VENDOR_RTCM, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3(), and decode_type4076().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr7_head()

int decode_ssr7_head ( rtcm_t * rtcm,
int sys,
int subtype,
int * sync,
int * iod,
double * udint,
int * dispe,
int * mw,
int * hsize )
static

Definition at line 2430 of file mrtk_rtcm3.c.

References decode_ssr_epoch(), getbitu(), rtcm, ssrudint, SYS_GLO, SYS_QZS, time2str(), and trace().

Referenced by decode_ssr7().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_ssr_epoch()

int decode_ssr_epoch ( rtcm_t * rtcm,
int sys,
int subtype )
static

Definition at line 1797 of file mrtk_rtcm3.c.

References adjday_glot(), adjweek(), getbitu(), rtcm, and SYS_GLO.

Referenced by decode_ssr1_head(), decode_ssr2_head(), and decode_ssr7_head().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1001()

int decode_type1001 ( rtcm_t * rtcm)
static

Definition at line 331 of file mrtk_rtcm3.c.

References decode_head1001(), and rtcm.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1002()

int decode_type1002 ( rtcm_t * rtcm)
static

Definition at line 340 of file mrtk_rtcm3.c.

References adjcp(), CLIGHT, CODE_L1C, CODE_L1P, decode_head1001(), FREQ1, getbits(), getbitu(), lossoflock(), MAXOBS, obsindex(), PRUNIT_GPS, rtcm, satno(), snratio(), SYS_GPS, SYS_SBS, timediff(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1003()

int decode_type1003 ( rtcm_t * rtcm)
static

Definition at line 394 of file mrtk_rtcm3.c.

References decode_head1001(), and rtcm.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1004()

int decode_type1004 ( rtcm_t * rtcm)
static

Definition at line 403 of file mrtk_rtcm3.c.

References adjcp(), CLIGHT, CODE_L1C, CODE_L1P, CODE_L2D, CODE_L2P, CODE_L2W, CODE_L2X, decode_head1001(), FREQ1, FREQ2, getbits(), getbitu(), lossoflock(), MAXOBS, obsindex(), PRUNIT_GPS, rtcm, satno(), snratio(), SYS_GPS, SYS_SBS, timediff(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1005()

int decode_type1005 ( rtcm_t * rtcm)
static

Definition at line 485 of file mrtk_rtcm3.c.

References ecef2pos(), getbits_38(), getbitu(), R2D, rtcm, test_staid(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1006()

int decode_type1006 ( rtcm_t * rtcm)
static

Definition at line 528 of file mrtk_rtcm3.c.

References ecef2pos(), getbits_38(), getbitu(), R2D, rtcm, test_staid(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1007()

int decode_type1007 ( rtcm_t * rtcm)
static

Definition at line 574 of file mrtk_rtcm3.c.

References getbitu(), rtcm, test_staid(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1008()

int decode_type1008 ( rtcm_t * rtcm)
static

Definition at line 610 of file mrtk_rtcm3.c.

References getbitu(), rtcm, test_staid(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1009()

int decode_type1009 ( rtcm_t * rtcm)
static

Definition at line 690 of file mrtk_rtcm3.c.

References decode_head1009(), and rtcm.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1010()

int decode_type1010 ( rtcm_t * rtcm)
static

Definition at line 699 of file mrtk_rtcm3.c.

References adjcp(), CLIGHT, code2freq(), CODE_L1C, CODE_L1P, decode_head1009(), getbits(), getbitu(), lossoflock(), MAXOBS, obsindex(), PRUNIT_GLO, rtcm, satno(), snratio(), SYS_GLO, timediff(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1011()

int decode_type1011 ( rtcm_t * rtcm)
static

Definition at line 753 of file mrtk_rtcm3.c.

References decode_head1009(), and rtcm.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1012()

int decode_type1012 ( rtcm_t * rtcm)
static

Definition at line 762 of file mrtk_rtcm3.c.

References adjcp(), CLIGHT, code2freq(), CODE_L1C, CODE_L1P, CODE_L2C, CODE_L2P, decode_head1009(), getbits(), getbitu(), lossoflock(), MAXOBS, obsindex(), PRUNIT_GLO, rtcm, satno(), snratio(), SYS_GLO, timediff(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1013()

int decode_type1013 ( rtcm_t * rtcm)
static

Definition at line 840 of file mrtk_rtcm3.c.

References rtcm.

Referenced by decode_rtcm3().

Here is the caller graph for this function:

◆ decode_type1019()

int decode_type1019 ( rtcm_t * rtcm)
static

Definition at line 842 of file mrtk_rtcm3.c.

References eph_t::A, adjgpsweek(), 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, eph_t::f0, eph_t::f1, eph_t::f2, eph_t::fit, eph_t::flag, getbits(), getbitu(), gpst2time(), eph_t::i0, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, eph_t::omg, eph_t::OMG0, eph_t::OMGd, P2_19, P2_29, P2_31, P2_33, P2_43, P2_5, P2_55, rtcm, eph_t::sat, satno(), SC2RAD, eph_t::sva, eph_t::svh, SYS_GPS, SYS_SBS, eph_t::tgd, timediff(), timeget(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, utc2gpst(), and eph_t::week.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1020()

int decode_type1020 ( rtcm_t * rtcm)
static

Definition at line 954 of file mrtk_rtcm3.c.

References geph_t::acc, geph_t::age, geph_t::dtaun, geph_t::flags, geph_t::frq, geph_t::gamn, getbitg(), getbitu(), gpst2time(), gpst2utc(), geph_t::iode, P2_11, P2_20, P2_30, P2_40, geph_t::pos, rtcm, geph_t::sat, satno(), geph_t::sva, geph_t::svh, SYS_GLO, geph_t::taun, time2gpst(), timediff(), timeget(), geph_t::toe, geph_t::tof, trace(), utc2gpst(), and geph_t::vel.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1021()

int decode_type1021 ( rtcm_t * rtcm)
static

Definition at line 1070 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1022()

int decode_type1022 ( rtcm_t * rtcm)
static

Definition at line 1075 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1023()

int decode_type1023 ( rtcm_t * rtcm)
static

Definition at line 1080 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1024()

int decode_type1024 ( rtcm_t * rtcm)
static

Definition at line 1085 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1025()

int decode_type1025 ( rtcm_t * rtcm)
static

Definition at line 1090 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1026()

int decode_type1026 ( rtcm_t * rtcm)
static

Definition at line 1095 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1027()

int decode_type1027 ( rtcm_t * rtcm)
static

Definition at line 1100 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1029()

int decode_type1029 ( rtcm_t * rtcm)
static

Definition at line 1105 of file mrtk_rtcm3.c.

References getbitu(), rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1030()

int decode_type1030 ( rtcm_t * rtcm)
static

Definition at line 1141 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1031()

int decode_type1031 ( rtcm_t * rtcm)
static

Definition at line 1146 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1032()

int decode_type1032 ( rtcm_t * rtcm)
static

Definition at line 1151 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1033()

int decode_type1033 ( rtcm_t * rtcm)
static

Definition at line 1156 of file mrtk_rtcm3.c.

References getbitu(), rtcm, test_staid(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1034()

int decode_type1034 ( rtcm_t * rtcm)
static

Definition at line 1225 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1035()

int decode_type1035 ( rtcm_t * rtcm)
static

Definition at line 1230 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1037()

int decode_type1037 ( rtcm_t * rtcm)
static

Definition at line 1235 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1038()

int decode_type1038 ( rtcm_t * rtcm)
static

Definition at line 1240 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1039()

int decode_type1039 ( rtcm_t * rtcm)
static

Definition at line 1245 of file mrtk_rtcm3.c.

References rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1041()

int decode_type1041 ( rtcm_t * rtcm)
static

Definition at line 1250 of file mrtk_rtcm3.c.

References eph_t::A, adjgpsweek(), eph_t::cic, eph_t::cis, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, eph_t::f0, eph_t::f1, eph_t::f2, getbits(), getbitu(), gpst2time(), eph_t::i0, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, eph_t::omg, eph_t::OMG0, eph_t::OMGd, P2_19, P2_28, P2_31, P2_33, P2_41, P2_43, P2_55, rtcm, eph_t::sat, satno(), SC2RAD, eph_t::sva, eph_t::svh, SYS_IRN, eph_t::tgd, timediff(), timeget(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, utc2gpst(), and eph_t::week.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1042()

int decode_type1042 ( rtcm_t * rtcm)
static

Definition at line 1691 of file mrtk_rtcm3.c.

References eph_t::A, adjbdtweek(), bdt2gpst(), bdt2time(), eph_t::cic, eph_t::cis, eph_t::crc, eph_t::crs, eph_t::cuc, eph_t::cus, eph_t::deln, eph_t::e, eph_t::f0, eph_t::f1, eph_t::f2, getbits(), getbitu(), eph_t::i0, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, eph_t::omg, eph_t::OMG0, eph_t::OMGd, P2_19, P2_31, P2_33, P2_43, P2_50, P2_6, P2_66, rtcm, eph_t::sat, satno(), SC2RAD, eph_t::sva, eph_t::svh, SYS_CMP, eph_t::tgd, timediff(), timeget(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, utc2gpst(), and eph_t::week.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1044()

int decode_type1044 ( rtcm_t * rtcm)
static

Definition at line 1351 of file mrtk_rtcm3.c.

References eph_t::A, adjgpsweek(), 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, eph_t::f0, eph_t::f1, eph_t::f2, eph_t::fit, eph_t::flag, getbits(), getbitu(), gpst2time(), eph_t::i0, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, eph_t::omg, eph_t::OMG0, eph_t::OMGd, P2_19, P2_29, P2_31, P2_33, P2_43, P2_5, P2_55, rtcm, eph_t::sat, satno(), SC2RAD, eph_t::sva, eph_t::svh, SYS_QZS, eph_t::tgd, timediff(), timeget(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, utc2gpst(), and eph_t::week.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1045()

int decode_type1045 ( rtcm_t * rtcm)
static

Definition at line 1458 of file mrtk_rtcm3.c.

References eph_t::A, 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, eph_t::f0, eph_t::f1, eph_t::f2, getbits(), getbitu(), gpst2time(), eph_t::i0, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, MAXSAT, eph_t::omg, eph_t::OMG0, eph_t::OMGd, P2_19, P2_29, P2_31, P2_32, P2_33, P2_34, P2_43, P2_46, P2_5, P2_59, rtcm, eph_t::sat, satno(), SC2RAD, eph_t::sva, eph_t::svh, SYS_GAL, eph_t::tgd, timediff(), timeget(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, utc2gpst(), and eph_t::week.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1046()

int decode_type1046 ( rtcm_t * rtcm)
static

Definition at line 1572 of file mrtk_rtcm3.c.

References eph_t::A, 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, eph_t::f0, eph_t::f1, eph_t::f2, getbits(), getbitu(), gpst2time(), eph_t::i0, eph_t::idot, eph_t::iodc, eph_t::iode, eph_t::M0, eph_t::omg, eph_t::OMG0, eph_t::OMGd, P2_19, P2_29, P2_31, P2_32, P2_33, P2_34, P2_43, P2_46, P2_5, P2_59, rtcm, eph_t::sat, satno(), SC2RAD, eph_t::sva, eph_t::svh, SYS_GAL, eph_t::tgd, timediff(), timeget(), eph_t::toc, eph_t::toe, eph_t::toes, trace(), eph_t::ttr, eph_t::type, utc2gpst(), and eph_t::week.

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type1230()

int decode_type1230 ( rtcm_t * rtcm)
static

Definition at line 3208 of file mrtk_rtcm3.c.

References getbits(), getbitu(), rtcm, test_staid(), and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type4050()

int decode_type4050 ( rtcm_t * rtcm)
static

Definition at line 3366 of file mrtk_rtcm3.c.

References decode_qzss_l6emsg(), getbits(), getbitu(), rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type4073()

int decode_type4073 ( rtcm_t * rtcm)
static

Definition at line 3247 of file mrtk_rtcm3.c.

References getbitu(), rtcm, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ decode_type4076()

int decode_type4076 ( rtcm_t * rtcm)
static

Definition at line 3260 of file mrtk_rtcm3.c.

References decode_ssr1(), decode_ssr2(), decode_ssr3(), decode_ssr4(), decode_ssr5(), decode_ssr6(), decode_ssr7(), getbitu(), rtcm, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_QZS, SYS_SBS, and trace().

Referenced by decode_rtcm3().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getbitg()

double getbitg ( const uint8_t * buff,
int pos,
int len )
static

Definition at line 174 of file mrtk_rtcm3.c.

References getbitu().

Referenced by decode_type1020().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getbits_38()

double getbits_38 ( const uint8_t * buff,
int pos )
static

Definition at line 481 of file mrtk_rtcm3.c.

References getbits(), and getbitu().

Referenced by decode_type1005(), and decode_type1006().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lossoflock()

int lossoflock ( rtcm_t * rtcm,
int sat,
int idx,
int lock )
static

Definition at line 238 of file mrtk_rtcm3.c.

References rtcm.

Referenced by decode_type1002(), decode_type1004(), decode_type1010(), decode_type1012(), and save_msm_obs().

Here is the caller graph for this function:

◆ obsindex()

int obsindex ( obs_t * obs,
gtime_t time,
int sat )
static

Definition at line 246 of file mrtk_rtcm3.c.

References obsd_t::code, obsd_t::D, obs_t::data, obsd_t::L, obsd_t::LLI, MAXOBS, obs_t::n, obsd_t::P, obsd_t::sat, obsd_t::SNR, and obsd_t::time.

Referenced by decode_type1002(), decode_type1004(), decode_type1010(), decode_type1012(), and save_msm_obs().

Here is the caller graph for this function:

◆ save_msm_obs()

void save_msm_obs ( rtcm_t * rtcm,
int sys,
msm_h_t * h,
const double * r,
const double * pr,
const double * cp,
const double * rr,
const double * rrf,
const double * cnr,
const int * lock,
const int * ex,
const int * half )
static

Definition at line 2631 of file mrtk_rtcm3.c.

References msm_h_t::cellmask, CLIGHT, code2freq(), code2freq_idx(), CODE_NONE, getbitu(), lossoflock(), MINPRNQZS, MINPRNSBS, msm_sig_cmp, msm_sig_gal, msm_sig_glo, msm_sig_gps, msm_sig_irn, msm_sig_qzs, msm_sig_sbs, msm_h_t::nsat, msm_h_t::nsig, obs2code(), obsindex(), rtcm, satno(), msm_h_t::sats, sigindex(), msm_h_t::sigs, SNR_UNIT, SYS_CMP, SYS_GAL, SYS_GLO, SYS_GPS, SYS_IRN, SYS_QZS, SYS_SBS, timediff(), and trace().

Referenced by decode_msm4(), decode_msm5(), decode_msm6(), and decode_msm7().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sigindex()

void sigindex ( int sys,
const uint8_t * code,
int n,
const char * opt,
int * idx )
static

Definition at line 2588 of file mrtk_rtcm3.c.

References getcodepri(), and trace().

Referenced by save_msm_obs().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ snratio()

uint16_t snratio ( double snr)
static

Definition at line 244 of file mrtk_rtcm3.c.

References SNR_UNIT.

Referenced by decode_type1002(), decode_type1004(), decode_type1010(), and decode_type1012().

Here is the caller graph for this function:

◆ test_staid()

int test_staid ( rtcm_t * rtcm,
int staid )
static

Definition at line 270 of file mrtk_rtcm3.c.

References getbitu(), rtcm, and trace().

Referenced by decode_head1001(), decode_head1009(), decode_msm_head(), decode_type1005(), decode_type1006(), decode_type1007(), decode_type1008(), decode_type1033(), and decode_type1230().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ CLIGHT

const double CLIGHT = 299792458.0
static

Definition at line 53 of file mrtk_rtcm3.c.

◆ D2R

const double D2R = 3.1415926535897932 / 180.0
static

Definition at line 71 of file mrtk_rtcm3.c.

◆ DFRQ1_GLO

const double DFRQ1_GLO = 0.56250E6
static

Definition at line 62 of file mrtk_rtcm3.c.

◆ DFRQ2_GLO

const double DFRQ2_GLO = 0.43750E6
static

Definition at line 64 of file mrtk_rtcm3.c.

◆ FREQ1

const double FREQ1 = 1.57542E9
static

Definition at line 54 of file mrtk_rtcm3.c.

◆ FREQ1_CMP

const double FREQ1_CMP = 1.561098E9
static

Definition at line 68 of file mrtk_rtcm3.c.

◆ FREQ1_GLO

const double FREQ1_GLO = 1.60200E9
static

Definition at line 61 of file mrtk_rtcm3.c.

◆ FREQ1a_GLO

const double FREQ1a_GLO = 1.600995E9
static

Definition at line 66 of file mrtk_rtcm3.c.

◆ FREQ2

const double FREQ2 = 1.22760E9
static

Definition at line 55 of file mrtk_rtcm3.c.

◆ FREQ2_CMP

const double FREQ2_CMP = 1.20714E9
static

Definition at line 69 of file mrtk_rtcm3.c.

◆ FREQ2_GLO

const double FREQ2_GLO = 1.24600E9
static

Definition at line 63 of file mrtk_rtcm3.c.

◆ FREQ2a_GLO

const double FREQ2a_GLO = 1.248060E9
static

Definition at line 67 of file mrtk_rtcm3.c.

◆ FREQ3_CMP

const double FREQ3_CMP = 1.26852E9
static

Definition at line 70 of file mrtk_rtcm3.c.

◆ FREQ3_GLO

const double FREQ3_GLO = 1.202025E9
static

Definition at line 65 of file mrtk_rtcm3.c.

◆ FREQ5

const double FREQ5 = 1.17645E9
static

Definition at line 56 of file mrtk_rtcm3.c.

◆ FREQ6

const double FREQ6 = 1.27875E9
static

Definition at line 57 of file mrtk_rtcm3.c.

◆ FREQ7

const double FREQ7 = 1.20714E9
static

Definition at line 58 of file mrtk_rtcm3.c.

◆ FREQ8

const double FREQ8 = 1.191795E9
static

Definition at line 59 of file mrtk_rtcm3.c.

◆ FREQ9

const double FREQ9 = 2.492028E9
static

Definition at line 60 of file mrtk_rtcm3.c.

◆ msm_sig_cmp

const char* msm_sig_cmp[32]
Initial value:
= {
"", "2I", "2Q", "2X", "", "", "", "6I", "6Q", "6X", "", "", "", "7I", "7Q", "7X",
"", "", "", "", "", "5D", "5P", "5X", "7D", "7P", "7Z", "", "", "1D", "1P", "1X"}

Definition at line 149 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ msm_sig_gal

const char* msm_sig_gal[32]
Initial value:
= {
"", "1C", "1A", "1B", "1X", "1Z", "", "6C", "6A", "6B", "6X", "6Z", "", "7I", "7Q", "7X",
"", "8I", "8Q", "8X", "", "5I", "5Q", "5X", "", "", "", "", "", "", "", ""}

Definition at line 137 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ msm_sig_glo

const char* msm_sig_glo[32]
Initial value:
= {
"", "1C", "1P", "", "", "", "", "2C", "2P", "", "", "", "", "", "", "",
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""}

Definition at line 133 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ msm_sig_gps

const char* msm_sig_gps[32]
Initial value:
= {
"", "1C", "1P", "1W", "", "", "", "2C", "2P", "2W", "", "",
"", "", "2S", "2L", "2X", "", "", "", "", "5I", "5Q", "5X",
"", "", "", "", "", "1S", "1L", "1X"
}

Definition at line 127 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ msm_sig_irn

const char* msm_sig_irn[32]
Initial value:
= {
"", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "5A", "", "", "", "", "", "", "", "", "", ""}

Definition at line 153 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ msm_sig_qzs

const char* msm_sig_qzs[32]
Initial value:
= {
"", "1C", "", "", "", "", "", "", "6S", "6L", "6X", "", "", "", "2S", "2L",
"2X", "", "", "", "", "5I", "5Q", "5X", "", "", "", "", "", "1S", "1L", "1X"}

Definition at line 141 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ msm_sig_sbs

const char* msm_sig_sbs[32]
Initial value:
= {
"", "1C", "", "", "", "", "", "", "", "", "", "", "", "", "", "",
"", "", "", "", "", "5I", "5Q", "5X", "", "", "", "", "", "", "", ""}

Definition at line 145 of file mrtk_rtcm3.c.

Referenced by save_msm_obs(), and to_sigid().

◆ R2D

const double R2D = 180.0 / 3.1415926535897932
static

Definition at line 72 of file mrtk_rtcm3.c.

◆ RE_WGS84

const double RE_WGS84 = 6378137.0
static

Definition at line 74 of file mrtk_rtcm3.c.

◆ SC2RAD

const double SC2RAD = 3.1415926535897932
static

Definition at line 73 of file mrtk_rtcm3.c.

◆ ssr_sig_cmp

const uint8_t ssr_sig_cmp[32]
Initial value:
#define CODE_L2Q
#define CODE_L2X
#define CODE_L5X
#define CODE_L7X
#define CODE_L2I
#define CODE_L6I
#define CODE_L7I
#define CODE_L6X
#define CODE_L5P
#define CODE_L5D
#define CODE_L7Q
#define CODE_L1D
#define CODE_L1P
#define CODE_L6Q
#define CODE_L1X

Definition at line 168 of file mrtk_rtcm3.c.

Referenced by decode_ssr3(), decode_ssr7(), encode_ssr3(), and encode_ssr7().

◆ ssr_sig_gal

const uint8_t ssr_sig_gal[32]
Initial value:
#define CODE_L5Q
#define CODE_L6C
#define CODE_L5I
#define CODE_L1C
#define CODE_L8Q
#define CODE_L1B
#define CODE_L6B
#define CODE_L8X
#define CODE_L1Z
#define CODE_L8I
#define CODE_L6A
#define CODE_L6Z
#define CODE_L1A

Definition at line 163 of file mrtk_rtcm3.c.

Referenced by decode_ssr3(), decode_ssr7(), encode_ssr3(), and encode_ssr7().

◆ ssr_sig_glo

const uint8_t ssr_sig_glo[32]
Initial value:
#define CODE_L2P
#define CODE_L2C
#define CODE_L4B
#define CODE_L3Q
#define CODE_L3I
#define CODE_L4A

Definition at line 161 of file mrtk_rtcm3.c.

Referenced by decode_ssr3(), decode_ssr7(), encode_ssr3(), and encode_ssr7().

◆ ssr_sig_gps

const uint8_t ssr_sig_gps[32]
Initial value:
#define CODE_L1Y
#define CODE_L2S
#define CODE_L1W
#define CODE_L1M
#define CODE_L2W
#define CODE_L2L
#define CODE_L2D
#define CODE_L2Y
#define CODE_L2M

Definition at line 158 of file mrtk_rtcm3.c.

Referenced by decode_ssr3(), decode_ssr7(), encode_ssr3(), and encode_ssr7().

◆ ssr_sig_qzs

const uint8_t ssr_sig_qzs[32]
Initial value:

Definition at line 166 of file mrtk_rtcm3.c.

Referenced by decode_ssr3(), decode_ssr7(), encode_ssr3(), and encode_ssr7().

◆ ssr_sig_sbs

const uint8_t ssr_sig_sbs[32] = {CODE_L1C, CODE_L5I, CODE_L5Q}

Definition at line 170 of file mrtk_rtcm3.c.

Referenced by decode_ssr3(), encode_ssr3(), and encode_ssr7().

◆ ssrudint

const double ssrudint[16] = {1, 2, 5, 10, 15, 30, 60, 120, 240, 300, 600, 900, 1800, 3600, 7200, 10800}
static

Definition at line 172 of file mrtk_rtcm3.c.