MRTKLIB 0.7.14
Modernized GNSS Positioning Library
Loading...
Searching...
No Matches
mrtk_postpos.c File Reference
#include "mrtklib/mrtk_postpos.h"
#include <ctype.h>
#include <math.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "mrtklib/mrtk_antenna.h"
#include "mrtklib/mrtk_bits.h"
#include "mrtklib/mrtk_clas.h"
#include "mrtklib/mrtk_coords.h"
#include "mrtklib/mrtk_geoid.h"
#include "mrtklib/mrtk_has.h"
#include "mrtklib/mrtk_ionex.h"
#include "mrtklib/mrtk_madoca.h"
#include "mrtklib/mrtk_madoca_local_corr.h"
#include "mrtklib/mrtk_mat.h"
#include "mrtklib/mrtk_nav.h"
#include "mrtklib/mrtk_obs.h"
#include "mrtklib/mrtk_peph.h"
#include "mrtklib/mrtk_ppp.h"
#include "mrtklib/mrtk_rcvraw.h"
#include "mrtklib/mrtk_rinex.h"
#include "mrtklib/mrtk_rtcm.h"
#include "mrtklib/mrtk_rtkpos.h"
#include "mrtklib/mrtk_sbas.h"
#include "mrtklib/mrtk_sol.h"
#include "mrtklib/mrtk_spp.h"
#include "mrtklib/mrtk_station.h"
#include "mrtklib/mrtk_sys.h"
#include "mrtklib/mrtk_tides.h"
#include "mrtklib/mrtk_trace.h"
#include "mrtklib/mrtk_version.h"
Include dependency graph for mrtk_postpos.c:

Go to the source code of this file.

Macros

#define R2D   (180.0 / 3.1415926535897932384626433832795)
#define D2R   (3.1415926535897932384626433832795 / 180.0)
#define COMMENTH   "%" /* comment line indicator for solution */
#define PROGNAME   "rnx2rtkp" /* default program name */
#define FILEPATHSEP   '/'
#define MIN(x, y)
#define SQRT(x)
#define MAXPRCDAYS   100 /* max days of continuous processing */
#define MAXINFILE   1000 /* max number of input files */

Functions

int showmsg (const char *format,...)
void settspan (gtime_t ts, gtime_t te)
void settime (gtime_t time)
static int checkbrk (const char *format,...)
static void outrpos (FILE *fp, const double *r, const solopt_t *opt)
static void outheader (FILE *fp, char **file, int n, const prcopt_t *popt, const solopt_t *sopt)
static int nextobsf (const obs_t *obs, int *i, int rcv)
static int nextobsb (const obs_t *obs, int *i, int rcv)
static void update_rtcm (gtime_t time)
static void update_qzssl6e (gtime_t time)
static void update_gal_has (gtime_t time)
static void init_mdcl6d (gtime_t time, const char *pppopt)
static void update_qzssl6d (gtime_t time, int n, const char *pppopt)
static void update_stat (gtime_t time)
static int clas_has_orbit_bank (const clas_ctx_t *ctx, int ch)
static void update_clas (gtime_t time)
static int inputobs (obsd_t *obs, int solq, const prcopt_t *popt)
static void procpos (mrtk_ctx_t *ctx, FILE *fp, const prcopt_t *popt, const solopt_t *sopt, int mode)
static int valcomb (const sol_t *solf, const sol_t *solb)
static void combres (FILE *fp, const prcopt_t *popt, const solopt_t *sopt)
static void readpreceph (char **infile, int n, const prcopt_t *prcopt, nav_t *nav, sbs_t *sbs, gtime_t ts)
static void freepreceph (nav_t *nav, sbs_t *sbs)
static int readobsnav (gtime_t ts, gtime_t te, double ti, char **infile, const int *index, int n, const prcopt_t *prcopt, obs_t *obs, nav_t *nav, sta_t *sta)
static void freeobsnav (obs_t *obs, nav_t *nav)
static int avepos (mrtk_ctx_t *ctx, double *ra, int rcv, const obs_t *obs, const nav_t *nav, const prcopt_t *opt)
static int getstapos (const char *file, char *name, double *r)
static int antpos (mrtk_ctx_t *ctx, prcopt_t *opt, int rcvno, const obs_t *obs, const nav_t *nav, const sta_t *sta, const char *posfile)
static int openses (mrtk_ctx_t *ctx, const prcopt_t *popt, const solopt_t *sopt, const filopt_t *fopt, nav_t *nav, pcvs_t *pcvs, pcvs_t *pcvr)
static void closeses (mrtk_ctx_t *ctx, nav_t *nav, pcvs_t *pcvs, pcvs_t *pcvr)
static void setpcv (gtime_t time, prcopt_t *popt, nav_t *nav, const pcvs_t *pcvs, const pcvs_t *pcvr, const sta_t *sta)
static void readotl (prcopt_t *popt, const char *file, const sta_t *sta)
static int outhead (const char *outfile, char **infile, int n, const prcopt_t *popt, const solopt_t *sopt)
static FILE * openfile (const char *outfile)
static int execses (mrtk_ctx_t *ctx, gtime_t ts, gtime_t te, double ti, const prcopt_t *popt, const solopt_t *sopt, const filopt_t *fopt, int flag, char **infile, const int *index, int n, char *outfile)
static int execses_r (mrtk_ctx_t *ctx, gtime_t ts, gtime_t te, double ti, const prcopt_t *popt, const solopt_t *sopt, const filopt_t *fopt, int flag, char **infile, const int *index, int n, char *outfile, const char *rov)
static int execses_b (mrtk_ctx_t *ctx, gtime_t ts, gtime_t te, double ti, const prcopt_t *popt, const solopt_t *sopt, const filopt_t *fopt, int flag, char **infile, const int *index, int n, char *outfile, const char *rov, const char *base)
int postpos (mrtk_ctx_t *ctx, gtime_t ts, gtime_t te, double ti, double tu, const prcopt_t *popt, const solopt_t *sopt, const filopt_t *fopt, char **infile, int n, char *outfile, const char *rov, const char *base)
 Post-processing positioning.

Variables

static pcvs_t pcvss = {0}
static pcvs_t pcvsr = {0}
static obs_t obss = {0}
static nav_t navs = {0}
static sbs_t sbss = {0}
static sta_t stas [MAXRCV]
static int nepoch = 0
static int iobsu = 0
static int iobsr = 0
static int isbs = 0
static int revs = 0
static int aborts = 0
static sol_t * solf
static sol_t * solb
static double * rbf
static double * rbb
static int isolf = 0
static int isolb = 0
static char proc_rov [64] = ""
static char proc_base [64] = ""
static char rtcm_file [1024] = ""
static char rtcm_path [1024] = ""
static rtcm_t * rtcm
static rtcm_t * l6e
static FILE * fp_rtcm = NULL
static char qzssl6e_file [1024] = ""
static char qzssl6e_path [1024] = ""
static FILE * fp_qzssl6e = NULL
static has_t * gal_has = NULL
static char gal_has_file [1024] = ""
static char gal_has_path [1024] = ""
static FILE * fp_gal_has = NULL
static mdcl6d_t mdcl6d [MIONO_MAX_PRN]
static char qzssl6d_file [MIONO_MAX_PRN][1024]
static char qzssl6d_path [MIONO_MAX_PRN][1024]
static FILE * fp_qzssl6d [MIONO_MAX_PRN]
static char stat_file [1024] = ""
static char cstat_file [1024] = ""
static FILE * fp_stat = NULL
static clas_ctx_t * clas_ctx = NULL
static FILE * fp_clas [CLAS_CH_NUM]
static char clas_file [CLAS_CH_NUM][1024]
static char clas_path [CLAS_CH_NUM][1024]

Macro Definition Documentation

◆ COMMENTH

#define COMMENTH   "%" /* comment line indicator for solution */

Definition at line 56 of file mrtk_postpos.c.

Referenced by decode_sol(), decode_solopt(), outheader(), outprcopts(), outsolheads(), and rtksvrmark().

◆ D2R

#define D2R   (3.1415926535897932384626433832795 / 180.0)

Definition at line 54 of file mrtk_postpos.c.

◆ FILEPATHSEP

#define FILEPATHSEP   '/'

Definition at line 64 of file mrtk_postpos.c.

◆ MAXINFILE

#define MAXINFILE   1000 /* max number of input files */

Definition at line 75 of file mrtk_postpos.c.

Referenced by execses_b(), execses_r(), and postpos().

◆ MAXPRCDAYS

#define MAXPRCDAYS   100 /* max days of continuous processing */

Definition at line 74 of file mrtk_postpos.c.

Referenced by postpos().

◆ MIN

#define MIN ( x,
y )
Value:
((x) < (y) ? (x) : (y))

Definition at line 71 of file mrtk_postpos.c.

◆ PROGNAME

#define PROGNAME   "rnx2rtkp" /* default program name */

Definition at line 61 of file mrtk_postpos.c.

Referenced by outheader().

◆ R2D

#define R2D   (180.0 / 3.1415926535897932384626433832795)

Definition at line 53 of file mrtk_postpos.c.

◆ SQRT

#define SQRT ( x)
Value:
((x) <= 0.0 || (x) != (x) ? 0.0 : sqrt(x))

Definition at line 72 of file mrtk_postpos.c.

Referenced by valcomb().

Function Documentation

◆ antpos()

int antpos ( mrtk_ctx_t * ctx,
prcopt_t * opt,
int rcvno,
const obs_t * obs,
const nav_t * nav,
const sta_t * sta,
const char * posfile )
static

Definition at line 1407 of file mrtk_postpos.c.

References avepos(), ecef2pos(), enu2ecef(), getstapos(), norm(), POSOPT_FILE, POSOPT_RINEX, POSOPT_SINGLE, prcopt_t::rb, prcopt_t::refpos, prcopt_t::rovpos, prcopt_t::ru, showmsg(), stas, and trace().

Referenced by execses().

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

◆ avepos()

int avepos ( mrtk_ctx_t * ctx,
double * ra,
int rcv,
const obs_t * obs,
const nav_t * nav,
const prcopt_t * opt )
static

Definition at line 1326 of file mrtk_postpos.c.

References obs_t::data, prcopt_t::exsats, MAXOBS, obs_t::n, prcopt_t::navsys, nextobsf(), pntpos(), sol_t::rr, obsd_t::sat, satsys(), screent(), and trace().

Referenced by antpos().

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

◆ checkbrk()

int checkbrk ( const char * format,
... )
static

Definition at line 124 of file mrtk_postpos.c.

References proc_base, proc_rov, and showmsg().

Referenced by execses_b(), execses_r(), inputobs(), postpos(), and readobsnav().

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

◆ clas_has_orbit_bank()

int clas_has_orbit_bank ( const clas_ctx_t * ctx,
int ch )
static

Definition at line 526 of file mrtk_postpos.c.

References clas_ctx_t::bank, CLAS_BANK_NUM, CLAS_CH_NUM, clas_bank_ctrl_t::OrbitBank, and clas_orbit_bank_t::use.

Referenced by update_clas().

Here is the caller graph for this function:

◆ closeses()

void closeses ( mrtk_ctx_t * ctx,
nav_t * nav,
pcvs_t * pcvs,
pcvs_t * pcvr )
static

Definition at line 1478 of file mrtk_postpos.c.

References closegeoid(), erp_t::data, nav_s::erp, free, erp_t::n, pcvs_t::n, erp_t::nmax, pcvs_t::nmax, pcvs_t::pcv, rtkclosestat(), trace(), and traceclose().

Referenced by postpos().

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

◆ combres()

void combres ( FILE * fp,
const prcopt_t * popt,
const solopt_t * sopt )
static

Definition at line 846 of file mrtk_postpos.c.

References DTTOL, prcopt_t::dynamics, isolb, isolf, prcopt_t::mode, outsol(), PMODE_KINEMA, PMODE_MOVEB, PMODE_PPP_STATIC, PMODE_STATIC, sol_t::qr, sol_t::qv, rbb, rbf, sol_t::rr, smoother(), solb, solf, SOLQ_FIX, SOLQ_FLOAT, solopt_t::solstatic, sol_t::stat, gtime_t::time, sol_t::time, timeadd(), timediff(), trace(), and valcomb().

Referenced by execses().

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

◆ execses()

int execses ( mrtk_ctx_t * ctx,
gtime_t ts,
gtime_t te,
double ti,
const prcopt_t * popt,
const solopt_t * sopt,
const filopt_t * fopt,
int flag,
char ** infile,
const int * index,
int n,
char * outfile )
static

◆ execses_b()

int execses_b ( mrtk_ctx_t * ctx,
gtime_t ts,
gtime_t te,
double ti,
const prcopt_t * popt,
const solopt_t * sopt,
const filopt_t * fopt,
int flag,
char ** infile,
const int * index,
int n,
char * outfile,
const char * rov,
const char * base )
static

Definition at line 1820 of file mrtk_postpos.c.

References checkbrk(), execses_r(), free, freepreceph(), malloc, MAXINFILE, navs, proc_base, readpreceph(), reppath(), sbss, gtime_t::time, time2str(), and trace().

Referenced by postpos().

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

◆ execses_r()

int execses_r ( mrtk_ctx_t * ctx,
gtime_t ts,
gtime_t te,
double ti,
const prcopt_t * popt,
const solopt_t * sopt,
const filopt_t * fopt,
int flag,
char ** infile,
const int * index,
int n,
char * outfile,
const char * rov )
static

Definition at line 1751 of file mrtk_postpos.c.

References checkbrk(), execses(), free, malloc, MAXINFILE, proc_rov, reppath(), gtime_t::time, time2str(), and trace().

Referenced by execses_b().

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

◆ freeobsnav()

void freeobsnav ( obs_t * obs,
nav_t * nav )
static

Definition at line 1306 of file mrtk_postpos.c.

References obs_t::data, nav_s::eph, free, nav_s::geph, nav_s::isb, nav_s::n, obs_t::n, nav_s::ng, nav_s::ngmax, nav_s::ni, nav_s::nimax, nav_s::nmax, obs_t::nmax, nav_s::ns, nav_s::nsmax, nav_s::seph, and trace().

Referenced by execses().

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

◆ freepreceph()

void freepreceph ( nav_t * nav,
sbs_t * sbs )
static

Definition at line 1149 of file mrtk_postpos.c.

References CLAS_CH_NUM, clas_ctx, clas_ctx_free(), tec_t::data, fp_clas, fp_gal_has, fp_rtcm, free, free_rtcm(), gal_has, gal_has_file, gal_has_path, has_free(), l6e, sbs_t::msgs, sbs_t::n, nav_s::nc, nav_s::ncmax, nav_s::ne, nav_s::nemax, sbs_t::nmax, nav_s::ns, nav_s::nsmax, nav_s::nt, nav_s::ntmax, nav_s::pclk, nav_s::peph, tec_t::rms, rtcm, nav_s::seph, nav_s::tec, and trace().

Referenced by execses_b().

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

◆ getstapos()

int getstapos ( const char * file,
char * name,
double * r )
static

Definition at line 1369 of file mrtk_postpos.c.

References D2R, pos2ecef(), and trace().

Referenced by antpos().

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

◆ init_mdcl6d()

void init_mdcl6d ( gtime_t time,
const char * pppopt )
static

Definition at line 404 of file mrtk_postpos.c.

References init_miono(), MAXSAT, mdcl6d, MIONO_MAX_ANUM, MIONO_MAX_PRN, time_str(), and trace().

Referenced by update_qzssl6d().

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

◆ inputobs()

int inputobs ( obsd_t * obs,
int solq,
const prcopt_t * popt )
static

Definition at line 615 of file mrtk_postpos.c.

References aborts, checkbrk(), clas_ctx, clas_file, DTTOL, gal_has_file, getbitu(), gpst2time(), prcopt_t::intpref, iobsr, iobsu, prcopt_t::ionocorr, isbs, prcopt_t::l6mrg, MAXOBS, MIONO_MAX_PRN, navs, nextobsb(), nextobsf(), obss, prcopt_t::pppopt, qzssl6d_file, qzssl6e_file, revs, rtcm_file, sbss, sbsupdatecorr(), settime(), showmsg(), stat_file, time_str(), timediff(), trace(), update_clas(), update_gal_has(), update_qzssl6d(), update_qzssl6e(), update_rtcm(), and update_stat().

Referenced by procpos().

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

◆ nextobsb()

int nextobsb ( const obs_t * obs,
int * i,
int rcv )
static

Definition at line 252 of file mrtk_postpos.c.

References obs_t::data, DTTOL, obsd_t::rcv, obsd_t::time, and timediff().

Referenced by inputobs().

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

◆ nextobsf()

int nextobsf ( const obs_t * obs,
int * i,
int rcv )
static

Definition at line 235 of file mrtk_postpos.c.

References obs_t::data, DTTOL, obs_t::n, obsd_t::rcv, obsd_t::time, and timediff().

Referenced by avepos(), and inputobs().

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

◆ openfile()

FILE * openfile ( const char * outfile)
static

Definition at line 1580 of file mrtk_postpos.c.

References trace().

Referenced by execses().

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

◆ openses()

int openses ( mrtk_ctx_t * ctx,
const prcopt_t * popt,
const solopt_t * sopt,
const filopt_t * fopt,
nav_t * nav,
pcvs_t * pcvs,
pcvs_t * pcvr )
static

Definition at line 1452 of file mrtk_postpos.c.

References filopt_t::geoid, solopt_t::geoid, opengeoid(), filopt_t::rcvantp, readpcv(), filopt_t::satantp, showmsg(), and trace().

Referenced by postpos().

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

◆ outhead()

int outhead ( const char * outfile,
char ** infile,
int n,
const prcopt_t * popt,
const solopt_t * sopt )
static

Definition at line 1557 of file mrtk_postpos.c.

References createdir(), outheader(), showmsg(), and trace().

Referenced by execses().

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

◆ outheader()

void outheader ( FILE * fp,
char ** file,
int n,
const prcopt_t * popt,
const solopt_t * sopt )
static

Definition at line 164 of file mrtk_postpos.c.

References COMMENTH, gpst2utc(), prcopt_t::mode, obss, solopt_t::outhead, solopt_t::outopt, outprcopt(), outrpos(), outsolhead(), PMODE_DGPS, PMODE_FIXED, PMODE_MOVEB, solopt_t::posf, solopt_t::prog, PROGNAME, prcopt_t::rb, SOLF_NMEA, SOLF_STAT, time2gpst(), time2str(), timeadd(), solopt_t::times, and trace().

Referenced by outhead().

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

◆ outrpos()

void outrpos ( FILE * fp,
const double * r,
const solopt_t * opt )
static

Definition at line 143 of file mrtk_postpos.c.

References deg2dms(), solopt_t::degf, ecef2pos(), solopt_t::posf, R2D, solopt_t::sep, SOLF_ENU, SOLF_LLH, SOLF_XYZ, and trace().

Referenced by outheader().

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

◆ postpos()

int postpos ( mrtk_ctx_t * ctx,
gtime_t ts,
gtime_t te,
double ti,
double tu,
const prcopt_t * popt,
const solopt_t * sopt,
const filopt_t * fopt,
char ** infile,
int n,
char * outfile,
const char * rov,
const char * base )
extern

Post-processing positioning.

Parameters
[in]ctxRuntime context (NULL = use global)
[in]tsProcessing start time (ts.time==0: no limit)
[in]teProcessing end time (te.time==0: no limit)
[in]tiProcessing interval (s) (0:all)
[in]tuProcessing unit time (s) (0:all)
[in]poptProcessing options
[in]soptSolution options
[in]foptFile options
[in]infileInput files
[in]nNumber of input files
[in]outfileOutput file ("":stdout)
[in]rovRover id list (separated by " ")
[in]baseBase station id list (separated by " ")
Returns
Status (0:ok, 0>:error, 1:aborted)

Definition at line 1938 of file mrtk_postpos.c.

References filopt_t::bia, checkbrk(), closeses(), DTTOL, execses_b(), filopt_t::fcb, free, gpst2time(), l6_file_type(), malloc, MAXINFILE, MAXPRCDAYS, navs, openses(), pcvsr, pcvss, proc_base, proc_rov, reppath(), reppaths(), set_bdsopt(), settspan(), showmsg(), gtime_t::time, time2gpst(), time_str(), timeadd(), timediff(), and trace().

Here is the call graph for this function:

◆ procpos()

void procpos ( mrtk_ctx_t * ctx,
FILE * fp,
const prcopt_t * popt,
const solopt_t * sopt,
int mode )
static

Definition at line 748 of file mrtk_postpos.c.

References prcopt_t::exsats, inputobs(), isolb, isolf, MAXOBS, prcopt_t::mode, navs, prcopt_t::navsys, nepoch, outsol(), PMODE_PPP_STATIC, PMODE_STATIC, rtk_t::prev_qr, sol_t::qr, rtk_t::rb, rbb, rbf, revs, rtcm_path, rtkfree(), rtkinit(), rtkpos(), obsd_t::sat, satsys(), rtk_t::sol, solb, solf, solopt_t::solstatic, sol_t::stat, gtime_t::time, sol_t::time, timediff(), and trace().

Referenced by execses().

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

◆ readobsnav()

int readobsnav ( gtime_t ts,
gtime_t te,
double ti,
char ** infile,
const int * index,
int n,
const prcopt_t * prcopt,
obs_t * obs,
nav_t * nav,
sta_t * sta )
static

Definition at line 1213 of file mrtk_postpos.c.

References checkbrk(), obs_t::data, nav_s::eph, nav_s::geph, l6_file_type(), nav_s::n, obs_t::n, nepoch, nav_s::ng, nav_s::ngmax, nav_s::nmax, obs_t::nmax, nav_s::ns, nav_s::nsmax, obsd_t::rcv, readbnxt(), readrnxt(), prcopt_t::rnxopt, nav_s::seph, settspan(), sortobs(), gtime_t::time, obsd_t::time, time_str(), trace(), and uniqnav().

Referenced by execses().

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

◆ readotl()

void readotl ( prcopt_t * popt,
const char * file,
const sta_t * sta )
static

Definition at line 1549 of file mrtk_postpos.c.

References prcopt_t::mode, prcopt_t::odisp, PMODE_DGPS, PMODE_FIXED, and readblq().

Referenced by execses().

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

◆ readpreceph()

void readpreceph ( char ** infile,
int n,
const prcopt_t * prcopt,
nav_t * nav,
sbs_t * sbs,
gtime_t ts )
static

Definition at line 966 of file mrtk_postpos.c.

References calloc, CLAS_CH_NUM, clas_ctx, clas_ctx_init(), clas_file, clas_path, cstat_file, fp_clas, fp_qzssl6d, fp_qzssl6e, fp_rtcm, fp_stat, free, gal_has, gal_has_file, has_new(), init_rtcm(), L6_FILE_L6D, L6_FILE_L6E, L6_FILE_NONE, l6_file_service(), l6_file_type(), L6_SVC_MADOCA_IONO, l6e, malloc, MIONO_MAX_PRN, prcopt_t::mode, sbs_t::n, navs, nav_s::nc, nav_s::ncmax, nav_s::ne, nav_s::nemax, sbs_t::nmax, nav_s::ns, NSATSBS, nav_s::nsmax, PMODE_PPP_RTK, PMODE_SSR2OSR, PMODE_SSR2OSR_FIXED, nav_s::pppiono, prcopt_t::pppopt, qzssl6d_file, qzssl6d_path, qzssl6e_file, qzssl6e_path, readrnxc(), readsp3(), reppath(), rtcm, rtcm_file, rtcm_path, prcopt_t::rtcmopt, prcopt_t::sbassatsel, sbsreadmsg(), nav_s::seph, showmsg(), stat_file, gtime_t::time, and trace().

Referenced by execses_b().

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

◆ setpcv()

void setpcv ( gtime_t time,
prcopt_t * popt,
nav_t * nav,
const pcvs_t * pcvs,
const pcvs_t * pcvr,
const sta_t * sta )
static

Definition at line 1502 of file mrtk_postpos.c.

References prcopt_t::antdel, sta_t::antdes, prcopt_t::anttype, ecef2enu(), ecef2pos(), MAXSAT, prcopt_t::mode, prcopt_t::navsys, norm(), prcopt_t::pcvr, nav_s::pcvs, PMODE_DGPS, PMODE_FIXED, satno2id(), satsys(), searchpcv(), stas, trace(), and pcv_t::type.

Referenced by execses().

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

◆ settime()

void settime ( gtime_t time)
extern

Referenced by inputobs().

Here is the caller graph for this function:

◆ settspan()

void settspan ( gtime_t ts,
gtime_t te )
extern

Referenced by postpos(), and readobsnav().

Here is the caller graph for this function:

◆ showmsg()

int showmsg ( const char * format,
... )
extern

Referenced by antpos(), checkbrk(), convrnx(), convrnx_s(), execses(), gen_strfile(), inputobs(), open_strfile(), openfile(), openses(), outhead(), postpos(), readpreceph(), scan_file(), and showstat().

Here is the caller graph for this function:

◆ update_clas()

void update_clas ( gtime_t time)
static

Definition at line 541 of file mrtk_postpos.c.

References calloc, clas_bank_get_close(), CLAS_CH_NUM, clas_check_grid_status(), clas_check_grid_status_time(), clas_ctx, clas_file, clas_has_orbit_bank(), clas_input_cssrf(), CLAS_MAX_NETWORK, clas_path, clas_update_global(), CSSR_REF_MAX, CSSR_TYPE_MASK, fp_clas, free, navs, reppath(), gtime_t::time, time2gpst(), timediff(), and trace().

Referenced by inputobs().

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

◆ update_gal_has()

void update_gal_has ( gtime_t time)
static

Definition at line 364 of file mrtk_postpos.c.

References fp_gal_has, gal_has, gal_has_file, gal_has_path, has_input_file(), MAXSAT, navs, reppath(), time_str(), timediff(), and trace().

Referenced by inputobs().

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

◆ update_qzssl6d()

void update_qzssl6d ( gtime_t time,
int n,
const char * pppopt )
static

Definition at line 422 of file mrtk_postpos.c.

References fp_qzssl6d, init_mdcl6d(), input_qzssl6df(), MAXSAT, mdcl6d, MIONO_MAX_ANUM, navs, qzssl6d_file, qzssl6d_path, reppath(), time_str(), timeadd(), timediff(), and trace().

Referenced by inputobs().

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

◆ update_qzssl6e()

void update_qzssl6e ( gtime_t time)
static

Definition at line 316 of file mrtk_postpos.c.

References fp_qzssl6e, init_mcssr(), input_qzssl6ef(), l6e, MAXSAT, navs, qzssl6e_file, qzssl6e_path, reppath(), time_str(), timediff(), and trace().

Referenced by inputobs().

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

◆ update_rtcm()

void update_rtcm ( gtime_t time)
static

Definition at line 270 of file mrtk_postpos.c.

References block2stat(), fp_rtcm, input_rtcm3f(), MAXSAT, navs, reppath(), rtcm, rtcm_file, rtcm_path, time_str(), timediff(), and trace().

Referenced by inputobs().

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

◆ update_stat()

void update_stat ( gtime_t time)
static

Definition at line 473 of file mrtk_postpos.c.

References cstat_file, FILEPATHSEP, fp_stat, getstano(), input_statf(), MAXSAT, navs, reppath(), sstat_t::sion, stat_file, sstat_t::strp, sstat_t::time, time_str(), timediff(), and trace().

Referenced by inputobs().

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

◆ valcomb()

int valcomb ( const sol_t * solf,
const sol_t * solb )
static

Definition at line 821 of file mrtk_postpos.c.

References solb, solf, SQRT, time2str(), and trace().

Referenced by combres().

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

Variable Documentation

◆ aborts

int aborts = 0
static

Definition at line 90 of file mrtk_postpos.c.

Referenced by execses(), and inputobs().

◆ clas_ctx

clas_ctx_t* clas_ctx = NULL
static

Definition at line 118 of file mrtk_postpos.c.

Referenced by execses(), freepreceph(), inputobs(), readpreceph(), and update_clas().

◆ clas_file

char clas_file[CLAS_CH_NUM][1024]
static

Definition at line 120 of file mrtk_postpos.c.

Referenced by inputobs(), readpreceph(), and update_clas().

◆ clas_path

char clas_path[CLAS_CH_NUM][1024]
static

Definition at line 121 of file mrtk_postpos.c.

Referenced by readpreceph(), and update_clas().

◆ cstat_file

char cstat_file[1024] = ""
static

Definition at line 116 of file mrtk_postpos.c.

Referenced by readpreceph(), and update_stat().

◆ fp_clas

FILE* fp_clas[CLAS_CH_NUM]
static

Definition at line 119 of file mrtk_postpos.c.

Referenced by freepreceph(), readpreceph(), and update_clas().

◆ fp_gal_has

FILE* fp_gal_has = NULL
static

Definition at line 110 of file mrtk_postpos.c.

Referenced by freepreceph(), and update_gal_has().

◆ fp_qzssl6d

FILE* fp_qzssl6d[MIONO_MAX_PRN]
static

Definition at line 114 of file mrtk_postpos.c.

Referenced by readpreceph(), and update_qzssl6d().

◆ fp_qzssl6e

FILE* fp_qzssl6e = NULL
static

Definition at line 106 of file mrtk_postpos.c.

Referenced by readpreceph(), and update_qzssl6e().

◆ fp_rtcm

FILE* fp_rtcm = NULL
static

Definition at line 103 of file mrtk_postpos.c.

Referenced by freepreceph(), readpreceph(), and update_rtcm().

◆ fp_stat

FILE* fp_stat = NULL
static

◆ gal_has

has_t* gal_has = NULL
static

Definition at line 107 of file mrtk_postpos.c.

Referenced by freepreceph(), readpreceph(), and update_gal_has().

◆ gal_has_file

char gal_has_file[1024] = ""
static

Definition at line 108 of file mrtk_postpos.c.

Referenced by freepreceph(), inputobs(), readpreceph(), and update_gal_has().

◆ gal_has_path

char gal_has_path[1024] = ""
static

Definition at line 109 of file mrtk_postpos.c.

Referenced by freepreceph(), and update_gal_has().

◆ iobsr

int iobsr = 0
static

Definition at line 87 of file mrtk_postpos.c.

Referenced by execses(), and inputobs().

◆ iobsu

int iobsu = 0
static

Definition at line 86 of file mrtk_postpos.c.

Referenced by execses(), and inputobs().

◆ isbs

int isbs = 0
static

Definition at line 88 of file mrtk_postpos.c.

Referenced by execses(), and inputobs().

◆ isolb

int isolb = 0
static

Definition at line 96 of file mrtk_postpos.c.

Referenced by combres(), execses(), and procpos().

◆ isolf

int isolf = 0
static

Definition at line 95 of file mrtk_postpos.c.

Referenced by combres(), execses(), and procpos().

◆ l6e

rtcm_t* l6e
static

Definition at line 102 of file mrtk_postpos.c.

Referenced by freepreceph(), readpreceph(), and update_qzssl6e().

◆ mdcl6d

◆ navs

◆ nepoch

int nepoch = 0
static

Definition at line 85 of file mrtk_postpos.c.

Referenced by execses(), procpos(), and readobsnav().

◆ obss

obs_t obss = {0}
static

Definition at line 81 of file mrtk_postpos.c.

Referenced by execses(), inputobs(), and outheader().

◆ pcvsr

pcvs_t pcvsr = {0}
static

Definition at line 80 of file mrtk_postpos.c.

Referenced by execses(), and postpos().

◆ pcvss

pcvs_t pcvss = {0}
static

Definition at line 79 of file mrtk_postpos.c.

Referenced by execses(), and postpos().

◆ proc_base

char proc_base[64] = ""
static

Definition at line 98 of file mrtk_postpos.c.

Referenced by checkbrk(), execses_b(), and postpos().

◆ proc_rov

char proc_rov[64] = ""
static

Definition at line 97 of file mrtk_postpos.c.

Referenced by checkbrk(), execses_r(), and postpos().

◆ qzssl6d_file

char qzssl6d_file[MIONO_MAX_PRN][1024]
static

Definition at line 112 of file mrtk_postpos.c.

Referenced by inputobs(), readpreceph(), and update_qzssl6d().

◆ qzssl6d_path

char qzssl6d_path[MIONO_MAX_PRN][1024]
static

Definition at line 113 of file mrtk_postpos.c.

Referenced by readpreceph(), and update_qzssl6d().

◆ qzssl6e_file

char qzssl6e_file[1024] = ""
static

Definition at line 104 of file mrtk_postpos.c.

Referenced by inputobs(), readpreceph(), and update_qzssl6e().

◆ qzssl6e_path

char qzssl6e_path[1024] = ""
static

Definition at line 105 of file mrtk_postpos.c.

Referenced by readpreceph(), and update_qzssl6e().

◆ rbb

double* rbb
static

Definition at line 94 of file mrtk_postpos.c.

Referenced by combres(), execses(), and procpos().

◆ rbf

double* rbf
static

Definition at line 93 of file mrtk_postpos.c.

Referenced by combres(), execses(), and procpos().

◆ revs

int revs = 0
static

Definition at line 89 of file mrtk_postpos.c.

Referenced by execses(), inputobs(), and procpos().

◆ rtcm

rtcm_t* rtcm
static

Definition at line 101 of file mrtk_postpos.c.

Referenced by adjcp(), adjday_glot(), adjhour(), adjweek(), block2stat(), decode_head1001(), decode_head1009(), decode_lclhead(), decode_lcliono(), decode_lcltrop(), decode_msm0(), decode_msm4(), decode_msm5(), decode_msm6(), decode_msm7(), decode_msm_head(), decode_qzsrawl6(), decode_qzss_l6emsg(), decode_qzss_l6frame(), decode_rtcm2(), decode_rtcm3(), decode_rxmqzssl6(), decode_sbf(), decode_ssr1(), decode_ssr1_head(), decode_ssr2(), decode_ssr2_head(), decode_ssr3(), decode_ssr4(), decode_ssr5(), decode_ssr6(), decode_ssr7(), decode_ssr7_head(), decode_ssr_epoch(), decode_type1(), 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_type14(), decode_type16(), decode_type17(), decode_type18(), decode_type19(), decode_type22(), decode_type23(), decode_type24(), decode_type3(), decode_type31(), decode_type32(), decode_type34(), decode_type36(), decode_type37(), decode_type4050(), decode_type4073(), decode_type4076(), decode_type59(), decode_ubx(), encode_head(), encode_lclhead(), encode_lcliono(), encode_lcltrop(), encode_msm1(), encode_msm2(), encode_msm3(), encode_msm4(), encode_msm5(), encode_msm6(), encode_msm7(), encode_msm_cnr(), encode_msm_cnr_ex(), encode_msm_half_amb(), encode_msm_head(), encode_msm_info(), encode_msm_int_rrng(), encode_msm_lock(), encode_msm_lock_ex(), encode_msm_mod_rrng(), encode_msm_phrng(), encode_msm_phrng_ex(), encode_msm_psrng(), encode_msm_psrng_ex(), encode_msm_rate(), encode_msm_rrate(), encode_rtcm3(), encode_ssr1(), encode_ssr2(), encode_ssr3(), encode_ssr4(), encode_ssr5(), encode_ssr6(), encode_ssr7(), encode_ssr_head(), encode_type1001(), encode_type1002(), encode_type1003(), encode_type1004(), encode_type1005(), encode_type1006(), encode_type1007(), encode_type1008(), encode_type1009(), encode_type1010(), encode_type1011(), encode_type1012(), encode_type1019(), encode_type1020(), encode_type1033(), encode_type1041(), encode_type1042(), encode_type1044(), encode_type1045(), encode_type1046(), encode_type1230(), encode_type4073(), encode_type4076(), encode_type63(), fcn_glo(), free_rtcm(), freepreceph(), gen_msm_index(), gen_msm_sat(), gen_msm_sig(), gen_obs_glo(), gen_obs_gps(), gen_rtcm2(), gen_rtcm3(), init_rtcm(), input_qzssl6e(), input_qzssl6ef(), input_raw(), input_rawf(), input_rtcm2(), input_rtcm2f(), input_rtcm3(), input_rtcm3f(), input_sbf(), input_sbff(), input_ubx(), input_ubxf(), lossoflock(), output_lclcmb(), readpreceph(), rtcm2rtcm(), rtcm_lclblk(), save_msm_obs(), test_staid(), and update_rtcm().

◆ rtcm_file

char rtcm_file[1024] = ""
static

Definition at line 99 of file mrtk_postpos.c.

Referenced by inputobs(), readpreceph(), and update_rtcm().

◆ rtcm_path

char rtcm_path[1024] = ""
static

Definition at line 100 of file mrtk_postpos.c.

Referenced by procpos(), readpreceph(), and update_rtcm().

◆ sbss

sbs_t sbss = {0}
static

Definition at line 83 of file mrtk_postpos.c.

Referenced by execses(), execses_b(), and inputobs().

◆ solb

sol_t* solb
static

Definition at line 92 of file mrtk_postpos.c.

Referenced by combres(), execses(), procpos(), rtkpos(), and valcomb().

◆ solf

sol_t* solf
static

Definition at line 91 of file mrtk_postpos.c.

Referenced by combres(), execses(), procpos(), and valcomb().

◆ stas

sta_t stas[MAXRCV]
static

Definition at line 84 of file mrtk_postpos.c.

Referenced by antpos(), dl_exec(), dl_readstas(), dl_test(), execses(), outrnxevent(), readpos(), and setpcv().

◆ stat_file

char stat_file[1024] = ""
static

Definition at line 115 of file mrtk_postpos.c.

Referenced by inputobs(), readpreceph(), and update_stat().