mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-01-28 18:04:51 +00:00
Activate compilation of RTCM decoding functions
This commit is contained in:
parent
495813c969
commit
1b4cfad57d
@ -33,6 +33,9 @@ set(RTKLIB_LIB_SOURCES
|
||||
rtklib_stream.cc
|
||||
rtklib_rtksvr.cc
|
||||
rtklib_solution.cc
|
||||
rtklib_rtcm.cc
|
||||
rtklib_rtcm2.cc
|
||||
rtklib_rtcm3.cc
|
||||
)
|
||||
|
||||
include_directories(
|
||||
|
@ -2308,7 +2308,7 @@ int decode_msm4(rtcm_t *rtcm, int sys)
|
||||
for (j = 0; j < h.nsat; j++)
|
||||
{
|
||||
rng_m = getbitu(rtcm->buff, i, 10); i += 10;
|
||||
if (r[j] != 0.0) r[j] += rng_m*P2_10*RANGE_MS;
|
||||
if (r[j] != 0.0) r[j] += rng_m*TWO_N10*RANGE_MS;
|
||||
}
|
||||
/* decode signal data */
|
||||
for (j = 0; j < ncell; j++)
|
||||
@ -2379,7 +2379,7 @@ int decode_msm5(rtcm_t *rtcm, int sys)
|
||||
for (j = 0; j < h.nsat; j++)
|
||||
{
|
||||
rng_m = getbitu(rtcm->buff, i, 10); i += 10;
|
||||
if (r[j] != 0.0) r[j] += rng_m*P2_10*RANGE_MS;
|
||||
if (r[j] != 0.0) r[j] += rng_m*TWO_N10*RANGE_MS;
|
||||
}
|
||||
for (j = 0; j < h.nsat; j++)
|
||||
{ /* phaserangerate */
|
||||
@ -2452,7 +2452,7 @@ int decode_msm6(rtcm_t *rtcm, int sys)
|
||||
for (j = 0; j < h.nsat; j++)
|
||||
{
|
||||
rng_m = getbitu(rtcm->buff, i, 10); i += 10;
|
||||
if (r[j] != 0.0) r[j] += rng_m*P2_10*RANGE_MS;
|
||||
if (r[j] != 0.0) r[j] += rng_m*TWO_N10*RANGE_MS;
|
||||
}
|
||||
/* decode signal data */
|
||||
for (j = 0; j < ncell; j++)
|
||||
@ -2523,7 +2523,7 @@ int decode_msm7(rtcm_t *rtcm, int sys)
|
||||
for (j = 0; j < h.nsat; j++)
|
||||
{
|
||||
rng_m = getbitu(rtcm->buff, i, 10); i += 10;
|
||||
if (r[j] != 0.0) r[j] += rng_m*P2_10*RANGE_MS;
|
||||
if (r[j] != 0.0) r[j] += rng_m*TWO_N10*RANGE_MS;
|
||||
}
|
||||
for (j = 0; j < h.nsat; j++)
|
||||
{ /* phaserangerate */
|
||||
|
@ -62,11 +62,11 @@ const double PRUNIT_GPS = 299792.458; /* rtcm ver.3 unit of gps pseudorange (m)
|
||||
const double PRUNIT_GLO = 599584.916; /* rtcm ver.3 unit of glonass pseudorange (m) */
|
||||
const double RANGE_MS = SPEED_OF_LIGHT * 0.001; /* range in 1 ms */
|
||||
|
||||
#define P2_10 0.0009765625 /* 2^-10 */
|
||||
#define P2_34 5.820766091346740E-11 /* 2^-34 */
|
||||
#define P2_46 1.421085471520200E-14 /* 2^-46 */
|
||||
#define P2_59 1.734723475976810E-18 /* 2^-59 */
|
||||
#define P2_66 1.355252715606880E-20 /* 2^-66 */
|
||||
//#define P2_10 0.0009765625 /* 2^-10 */
|
||||
//#define P2_34 5.820766091346740E-11 /* 2^-34 */
|
||||
//#define P2_46 1.421085471520200E-14 /* 2^-46 */
|
||||
//#define P2_59 1.734723475976810E-18 /* 2^-59 */
|
||||
//#define P2_66 1.355252715606880E-20 /* 2^-66 */
|
||||
|
||||
/* type definition -----------------------------------------------------------*/
|
||||
|
||||
@ -176,84 +176,147 @@ const int codes_sbs[]={
|
||||
|
||||
|
||||
double getbitg(const unsigned char *buff, int pos, int len);
|
||||
|
||||
void adjweek(rtcm_t *rtcm, double tow);
|
||||
|
||||
int adjbdtweek(int week);
|
||||
|
||||
void adjday_glot(rtcm_t *rtcm, double tod);
|
||||
|
||||
double adjcp(rtcm_t *rtcm, int sat, int freq, double cp);
|
||||
|
||||
int lossoflock(rtcm_t *rtcm, int sat, int freq, int lock);
|
||||
|
||||
unsigned char snratio(double snr);
|
||||
|
||||
int obsindex(obs_t *obs, gtime_t time, int sat);
|
||||
|
||||
int test_staid(rtcm_t *rtcm, int staid);
|
||||
|
||||
int decode_head1001(rtcm_t *rtcm, int *sync);
|
||||
|
||||
int decode_type1001(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1002(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1003(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1004(rtcm_t *rtcm);
|
||||
|
||||
double getbits_38(const unsigned char *buff, int pos);
|
||||
|
||||
int decode_type1005(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1006(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1007(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1008(rtcm_t *rtcm);
|
||||
|
||||
int decode_head1009(rtcm_t *rtcm, int *sync);
|
||||
|
||||
int decode_type1009(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1010(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1011(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1012(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1013(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1019(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1020(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1021(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1022(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1023(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1024(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1025(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1026(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1027(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1029(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1030(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1031(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1032(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1033(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1034(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1035(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1037(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1038(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1039(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1044(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1045(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1046(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1047(rtcm_t *rtcm);
|
||||
|
||||
int decode_type1063(rtcm_t *rtcm);
|
||||
|
||||
int decode_ssr1_head(rtcm_t *rtcm, int sys, int *sync, int *iod,
|
||||
double *udint, int *refd, int *hsize);
|
||||
|
||||
int decode_ssr2_head(rtcm_t *rtcm, int sys, int *sync, int *iod,
|
||||
double *udint, int *hsize);
|
||||
|
||||
int decode_ssr7_head(rtcm_t *rtcm, int sys, int *sync, int *iod,
|
||||
double *udint, int *dispe, int *mw, int *hsize);
|
||||
|
||||
int decode_ssr1(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_ssr2(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_ssr3(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_ssr4(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_ssr5(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_ssr6(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_ssr7(rtcm_t *rtcm, int sys);
|
||||
|
||||
void sigindex(int sys, const unsigned char *code, const int *freq, int n,
|
||||
const char *opt, int *ind);
|
||||
|
||||
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);
|
||||
|
||||
int decode_msm_head(rtcm_t *rtcm, int sys, int *sync, int *iod,
|
||||
msm_h_t *h, int *hsize);
|
||||
|
||||
int decode_msm0(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_msm4(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_msm5(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_msm6(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_msm7(rtcm_t *rtcm, int sys);
|
||||
|
||||
int decode_type1230(rtcm_t *rtcm);
|
||||
|
||||
int decode_rtcm3(rtcm_t *rtcm);
|
||||
|
Loading…
Reference in New Issue
Block a user