GNSS-SDR 0.0.21
An Open Source GNSS Software Defined Receiver
Loading...
Searching...
No Matches
algorithms_libs_rtklib

Classes

struct  gtime_t
struct  obsd_t
struct  obs_t
struct  erpd_t
struct  erp_t
struct  pcv_t
struct  pcvs_t
struct  alm_t
struct  eph_t
struct  geph_t
struct  peph_t
struct  pclk_t
struct  seph_t
struct  tled_t
struct  tle_t
struct  tec_t
struct  fcbd_t
struct  sbsmsg_t
struct  sbs_t
struct  sbsfcorr_t
struct  sbslcorr_t
struct  sbssatp_t
struct  sbssat_t
struct  sbsigp_t
struct  sbsigpband_t
struct  sbsion_t
struct  dgps_t
struct  ssr_t
struct  lexmsg_t
struct  lex_t
struct  lexeph_t
struct  lexion_t
struct  stec_t
struct  trop_t
struct  pppcorr_t
struct  nav_t
struct  sta_t
struct  sol_t
struct  solbuf_t
struct  solstat_t
struct  solstatbuf_t
struct  rtcm_t
struct  url_t
struct  opt_t
struct  exterr_t
struct  snrmask_t
struct  prcopt_t
struct  solopt_t
struct  ssat_t
struct  ambc_t
struct  rtk_t
struct  half_cyc_tag
struct  stream_t
struct  serial_t
struct  file_t
struct  tcp_t
struct  tcpsvr_t
struct  tcpcli_t
struct  ntrip_t
struct  ftp_t
struct  raw_t
struct  rtksvr_t
struct  msm_h_t
class  HAS_clock_corrections
class  HAS_orbit_corrections
class  HAS_obs_corrections

Macros

#define dev_t   int
#define socket_t   int
#define closesocket   close
#define lock_t   pthread_mutex_t
#define initlock(f)
#define rtk_lock(f)
#define rtk_unlock(f)
#define VER_RTKLIB   "2.4.2"
#define NTRIP_AGENT   "RTKLIB/" VER_RTKLIB
#define NTRIP_CLI_PORT   2101 /* default ntrip-client connection port */
#define NTRIP_SVR_PORT   80 /* default ntrip-server connection port */
#define NTRIP_MAXRSP   32768 /* max size of ntrip response */
#define NTRIP_MAXSTR   256 /* max length of mountpoint string */
#define NTRIP_RSP_OK_CLI   "ICY 200 OK\r\n" /* ntrip response: client */
#define NTRIP_RSP_OK_SVR   "OK\r\n" /* ntrip response: server */
#define NTRIP_RSP_SRCTBL   "SOURCETABLE 200 OK\r\n" /* ntrip response: source table */
#define NTRIP_RSP_TBLEND   "ENDSOURCETABLE"
#define NTRIP_RSP_HTTP   "HTTP/" /* ntrip response: http */
#define NTRIP_RSP_ERROR   "ERROR" /* ntrip response: error */
#define FTP_CMD   "wget" /* ftp/http command */
#define ENAGLO
#define ENAQZS
#define ENABDS
#define STR_MODE_R   0x1 /* stream mode: read */
#define STR_MODE_W   0x2 /* stream mode: write */
#define STR_MODE_RW   0x3 /* stream mode: read/write */
#define STR_NONE   0 /* stream type: none */
#define STR_SERIAL   1 /* stream type: serial */
#define STR_FILE   2 /* stream type: file */
#define STR_TCPSVR   3 /* stream type: TCP server */
#define STR_TCPCLI   4 /* stream type: TCP client */
#define STR_UDP   5 /* stream type: UDP stream */
#define STR_NTRIPSVR   6 /* stream type: NTRIP server */
#define STR_NTRIPCLI   7 /* stream type: NTRIP client */
#define STR_FTP   8 /* stream type: ftp */
#define STR_HTTP   9 /* stream type: http */
#define NP_PPP(opt)
#define IC_PPP(s, opt)
#define IT_PPP(opt)
#define NR_PPP(opt)
#define IB_PPP(s, opt)
#define NX_PPP(opt)
#define NF_RTK(opt)
#define NP_RTK(opt)
#define NI_RTK(opt)
#define NT_RTK(opt)
#define NL_RTK(opt)
#define NB_RTK(opt)
#define NR_RTK(opt)
#define NX_RTK(opt)
#define II_RTK(s, opt)
#define IT_RTK(r, opt)
#define IL_RTK(f, opt)
#define IB_RTK(s, f, opt)
#define COMMENTH   "%" /* comment line indicator for solution */
#define MSG_DISCONN   "$_DISCONNECT\r\n" /* disconnect message */

Typedefs

using fatalfunc_t = void(const char *)
 fatal callback function type
typedef struct half_cyc_tag half_cyc_t

Functions

eph_t eph_to_rtklib (const Galileo_Ephemeris &gal_eph)
eph_t eph_to_rtklib (const Galileo_Ephemeris &gal_eph, const std::map< int, HAS_orbit_corrections > &orbit_correction_map, const std::map< int, HAS_clock_corrections > &clock_correction_map)
eph_t eph_to_rtklib (const Gps_Ephemeris &gps_eph, bool pre_2009_file=false)
eph_t eph_to_rtklib (const Gps_Ephemeris &gps_eph, const std::map< int, HAS_orbit_corrections > &orbit_correction_map, const std::map< int, HAS_clock_corrections > &clock_correction_map, bool pre_2009_file=false)
eph_t eph_to_rtklib (const Gps_CNAV_Ephemeris &gps_cnav_eph)
eph_t eph_to_rtklib (const Beidou_Dnav_Ephemeris &bei_eph)
alm_t alm_to_rtklib (const Gps_Almanac &gps_alm)
alm_t alm_to_rtklib (const Galileo_Almanac &gal_alm)
geph_t eph_to_rtklib (const Glonass_Gnav_Ephemeris &glonass_gnav_eph, const Glonass_Gnav_Utc_Model &gnav_clock_model)
 Transforms a Glonass_Gnav_Ephemeris to its RTKLIB counterpart.
obsd_t insert_obs_to_rtklib (obsd_t &rtklib_obs, const Gnss_Synchro &gnss_synchro, const std::map< std::string, std::map< int, HAS_obs_corrections > > &has_obs_corr, int week, int band, bool pre_2009_file=false)
obsd_t insert_obs_to_rtklib (obsd_t &rtklib_obs, const Gnss_Synchro &gnss_synchro, int week, int band, bool pre_2009_file=false)
int rtkopenstat (const char *file, int level)
void rtkclosestat ()
void rtkoutstat (rtk_t *rtk)
void swapsolstat ()
void outsolstat (rtk_t *rtk)
void errmsg (rtk_t *rtk, const char *format,...)
double sdobs (const obsd_t *obs, int i, int j, int f)
double gfobs_L1L2 (const obsd_t *obs, int i, int j, const double *lam)
double gfobs_L1L5 (const obsd_t *obs, int i, int j, const double *lam)
double varerr (int sat, int sys, double el, double bl, double dt, int f, const prcopt_t *opt)
double baseline (const double *ru, const double *rb, double *dr)
void initx_rtk (rtk_t *rtk, double xi, double var, int i)
int selsat (const obsd_t *obs, const double *azel, int nu, int nr, const prcopt_t *opt, int *sat, int *iu, int *ir)
void udpos (rtk_t *rtk, double tt)
void udion (rtk_t *rtk, double tt, double bl, const int *sat, int ns)
void udtrop (rtk_t *rtk, double tt, double bl)
void udrcvbias (rtk_t *rtk, double tt)
void detslp_ll (rtk_t *rtk, const obsd_t *obs, int i, int rcv)
void detslp_gf_L1L2 (rtk_t *rtk, const obsd_t *obs, int i, int j, const nav_t *nav)
void detslp_gf_L1L5 (rtk_t *rtk, const obsd_t *obs, int i, int j, const nav_t *nav)
void detslp_dop (rtk_t *rtk, const obsd_t *obs, int i, int rcv, const nav_t *nav)
void udbias (rtk_t *rtk, double tt, const obsd_t *obs, const int *sat, const int *iu, const int *ir, int ns, const nav_t *nav)
void udstate (rtk_t *rtk, const obsd_t *obs, const int *sat, const int *iu, const int *ir, int ns, const nav_t *nav)
void zdres_sat (int base, double r, const obsd_t *obs, const nav_t *nav, const double *azel, const double *dant, const prcopt_t *opt, double *y)
int zdres (int base, const obsd_t *obs, int n, const double *rs, const double *dts, const int *svh, const nav_t *nav, const double *rr, const prcopt_t *opt, int index, double *y, double *e, double *azel)
int validobs (int i, int j, int f, int nf, const double *y)
void ddcov (const int *nb, int n, const double *Ri, const double *Rj, int nv, double *R)
int constbl (rtk_t *rtk, const double *x, const double *P, double *v, double *H, double *Ri, double *Rj, int index)
double prectrop (gtime_t time, const double *pos, int r, const double *azel, const prcopt_t *opt, const double *x, double *dtdx)
double gloicbcorr (int sat1, int sat2, const prcopt_t *opt, double lam1, double lam2, int f)
int test_sys (int sys, int m)
int ddres (rtk_t *rtk, const nav_t *nav, double dt, const double *x, const double *P, const int *sat, double *y, const double *e, double *azel, const int *iu, const int *ir, int ns, double *v, double *H, double *R, int *vflg)
double intpres (gtime_t time, const obsd_t *obs, int n, const nav_t *nav, rtk_t *rtk, double *y)
int ddmat (rtk_t *rtk, double *D)
void restamb (rtk_t *rtk, const double *bias, int nb, double *xa)
void holdamb (rtk_t *rtk, const double *xa)
int resamb_LAMBDA (rtk_t *rtk, double *bias, double *xa)
int valpos (rtk_t *rtk, const double *v, const double *R, const int *vflg, int nv, double thres)
int relpos (rtk_t *rtk, const obsd_t *obs, int nu, int nr, const nav_t *nav)
void rtkinit (rtk_t *rtk, const prcopt_t *opt)
void rtkfree (rtk_t *rtk)
int rtkpos (rtk_t *rtk, const obsd_t *obs, int n, const nav_t *nav)
const char * opt2sep (const solopt_t *opt)
int tonum (char *buff, const char *sep, double *v)
double sqvar (double covar)
double dmm2deg (double dmm)
void septime (double t, double *t1, double *t2, double *t3)
void soltocov (const sol_t *sol, double *P)
void covtosol (const double *P, sol_t *sol)
int decode_nmearmc (char **val, int n, sol_t *sol)
int decode_nmeagga (char **val, int n, sol_t *sol)
int decode_nmea (char *buff, sol_t *sol)
char * decode_soltime (char *buff, const solopt_t *opt, gtime_t *time)
int decode_solxyz (char *buff, const solopt_t *opt, sol_t *sol)
int decode_solllh (char *buff, const solopt_t *opt, sol_t *sol)
int decode_solenu (char *buff, const solopt_t *opt, sol_t *sol)
int decode_solgsi (char *buff, const solopt_t *opt, sol_t *sol)
int decode_solpos (char *buff, const solopt_t *opt, sol_t *sol)
void decode_refpos (char *buff, const solopt_t *opt, double *rb)
int decode_sol (char *buff, const solopt_t *opt, sol_t *sol, double *rb)
void decode_solopt (char *buff, solopt_t *opt)
void readsolopt (FILE *fp, solopt_t *opt)
int inputsol (unsigned char data, gtime_t ts, gtime_t te, double tint, int qflag, const solopt_t *opt, solbuf_t *solbuf)
int readsoldata (FILE *fp, gtime_t ts, gtime_t te, double tint, int qflag, const solopt_t *opt, solbuf_t *solbuf)
int cmpsol (const void *p1, const void *p2)
int sort_solbuf (solbuf_t *solbuf)
int readsolt (char *files[], int nfile, gtime_t ts, gtime_t te, double tint, int qflag, solbuf_t *solbuf)
int readsol (char *files[], int nfile, solbuf_t *sol)
int addsol (solbuf_t *solbuf, const sol_t *sol)
sol_tgetsol (solbuf_t *solbuf, int index)
void initsolbuf (solbuf_t *solbuf, int cyclic, int nmax)
void freesolbuf (solbuf_t *solbuf)
void freesolstatbuf (solstatbuf_t *solstatbuf)
int cmpsolstat (const void *p1, const void *p2)
int sort_solstat (solstatbuf_t *statbuf)
int decode_solstat (char *buff, solstat_t *stat)
void addsolstat (solstatbuf_t *statbuf, const solstat_t *stat)
int readsolstatdata (FILE *fp, gtime_t ts, gtime_t te, double tint, solstatbuf_t *statbuf)
int readsolstatt (char *files[], int nfile, gtime_t ts, gtime_t te, double tint, solstatbuf_t *statbuf)
int readsolstat (char *files[], int nfile, solstatbuf_t *statbuf)
int outecef (unsigned char *buff, const char *s, const sol_t *sol, const solopt_t *opt)
int outpos (unsigned char *buff, const char *s, const sol_t *sol, const solopt_t *opt)
int outenu (unsigned char *buff, const char *s, const sol_t *sol, const double *rb, const solopt_t *opt)
int outnmea_rmc (unsigned char *buff, const sol_t *sol)
int outnmea_gga (unsigned char *buff, const sol_t *sol)
int outnmea_gsa (unsigned char *buff, const sol_t *sol, const ssat_t *ssat)
int outnmea_gsv (unsigned char *buff, const sol_t *sol, const ssat_t *ssat)
int outprcopts (unsigned char *buff, const prcopt_t *opt)
int outsolheads (unsigned char *buff, const solopt_t *opt)
int outsols (unsigned char *buff, const sol_t *sol, const double *rb, const solopt_t *opt)
int outsolexs (unsigned char *buff, const sol_t *sol, const ssat_t *ssat, const solopt_t *opt)
void outprcopt (FILE *fp, const prcopt_t *opt)
void outsolhead (FILE *fp, const solopt_t *opt)
void outsol (FILE *fp, const sol_t *sol, const double *rb, const solopt_t *opt)
void outsolex (FILE *fp, const sol_t *sol, const ssat_t *ssat, const solopt_t *opt)

Variables

const int TINTACT = 200
 period for stream active (ms)
const int SERIBUFFSIZE = 4096
 serial buffer size (bytes)
const int TIMETAGH_LEN = 64
 time tag file header length
const int MAXCLI = 32
 max client connection for tcp svr
const int MAXSTATMSG = 32
 max length of status message
const int FTP_TIMEOUT = 30
 ftp/http timeout (s)
const int MAXRAWLEN = 4096
 max length of receiver raw message
const int MAXSOLBUF = 256
 max number of solution buffer
const int MAXSBSMSG = 32
 max number of SBAS msg in RTK server
const int MAXOBSBUF = 128
 max number of observation data buffer
const int FILEPATHSEP = '/'
const double RE_WGS84 = 6378137.0
 earth semimajor axis (WGS84) (m)
const double FE_WGS84 = (1.0 / 298.257223563)
 earth flattening (WGS84)
const double HION = 350000.0
 ionosphere height (m)
const double PRN_HWBIAS = 1e-6
 process noise of h/w bias (m/MHz/sqrt(s))
const double INT_SWAP_STAT = 86400.0
 swap interval of solution status file (s)
const double INT_SWAP_TRAC = 86400.0
 swap interval of trace file (s)
const unsigned int POLYCRC32 = 0xEDB88320u
 CRC32 polynomial.
const unsigned int POLYCRC24Q = 0x1864CFBu
 CRC24Q polynomial.
const int PMODE_SINGLE = 0
 positioning mode: single
const int PMODE_DGPS = 1
 positioning mode: DGPS/DGNSS
const int PMODE_KINEMA = 2
 positioning mode: kinematic
const int PMODE_STATIC = 3
 positioning mode: static
const int PMODE_MOVEB = 4
 positioning mode: moving-base
const int PMODE_FIXED = 5
 positioning mode: fixed
const int PMODE_PPP_KINEMA = 6
 positioning mode: PPP-kinemaric
const int PMODE_PPP_STATIC = 7
 positioning mode: PPP-static
const int PMODE_PPP_FIXED = 8
 positioning mode: PPP-fixed
const int SOLF_LLH = 0
 solution format: lat/lon/height
const int SOLF_XYZ = 1
 solution format: x/y/z-ecef
const int SOLF_ENU = 2
 solution format: e/n/u-baseline
const int SOLF_NMEA = 3
 solution format: NMEA-183
const int SOLF_STAT = 4
 solution format: solution status
const int SOLF_GSIF = 5
 solution format: GSI F1/F2
const int SOLQ_NONE = 0
 solution status: no solution
const int SOLQ_FIX = 1
 solution status: fix
const int SOLQ_FLOAT = 2
 solution status: float
const int SOLQ_SBAS = 3
 solution status: SBAS
const int SOLQ_DGPS = 4
 solution status: DGPS/DGNSS
const int SOLQ_SINGLE = 5
 solution status: single
const int SOLQ_PPP = 6
 solution status: PPP
const int SOLQ_DR = 7
 solution status: dead reckoning
const int MAXSOLQ = 7
 max number of solution status
const int TIMES_GPST = 0
 time system: gps time
const int TIMES_UTC = 1
 time system: utc
const int TIMES_JST = 2
 time system: jst
const double ERR_SAAS = 0.3
 saastamoinen model error std (m)
const double ERR_BRDCI = 0.5
 broadcast iono model error factor
const double ERR_CBIAS = 0.3
 code bias error std (m)
const double REL_HUMI = 0.7
 relative humidity for saastamoinen model
const double GAP_RESION = 120
 default gap to reset ionos parameters (ep)
const int MAXFREQ = 7
 max NFREQ
const int MAXLEAPS = 64
 max number of leap seconds table
const double DTTOL = 0.005
 tolerance of time difference (s)
const int NFREQ = 3
 number of carrier frequencies
const int NFREQGLO = 2
 number of carrier frequencies of GLONASS
const int NEXOBS = 0
 number of extended obs codes
const int MAXANT = 64
 max length of station name/antenna type
const int MINPRNGPS = 1
 min satellite PRN number of GPS
const int MAXPRNGPS = 32
 max satellite PRN number of GPS
const int NSATGPS = (MAXPRNGPS - MINPRNGPS + 1)
 number of GPS satellites
const int NSYSGPS = 1
const int SYS_NONE = 0x00
 navigation system: none
const int SYS_GPS = 0x01
 navigation system: GPS
const int SYS_SBS = 0x02
 navigation system: SBAS
const int SYS_GLO = 0x04
 navigation system: GLONASS
const int SYS_GAL = 0x08
 navigation system: Galileo
const int SYS_QZS = 0x10
 navigation system: QZSS
const int SYS_BDS = 0x20
 navigation system: BeiDou
const int SYS_IRN = 0x40
 navigation system: IRNS
const int SYS_LEO = 0x80
 navigation system: LEO
const int SYS_ALL = 0xFF
 navigation system: all
const int MINPRNGLO = 1
 min satellite slot number of GLONASS
const int MAXPRNGLO = 27
 max satellite slot number of GLONASS
const int NSATGLO = (MAXPRNGLO - MINPRNGLO + 1)
 number of GLONASS satellites
const int NSYSGLO = 1
const int MINPRNGAL = 1
 min satellite PRN number of Galileo
const int MAXPRNGAL = 36
 max satellite PRN number of Galileo
const int NSATGAL = (MAXPRNGAL - MINPRNGAL + 1)
 number of Galileo satellites
const int NSYSGAL = 1
const int MAXPRNQZS = 202
 max satellite PRN number of QZSS
const int MINPRNQZS = 193
 min satellite PRN number of QZSS
const int MINPRNQZS_S = 183
 min satellite PRN number of QZSS SAIF
const int MAXPRNQZS_S = 191
 max satellite PRN number of QZSS SAIF
const int NSATQZS = (MAXPRNQZS - MINPRNQZS + 1)
 number of QZSS satellites
const int NSYSQZS = 1
const int MINPRNBDS = 1
 min satellite sat number of BeiDou
const int MAXPRNBDS = 63
 max satellite sat number of BeiDou
const int NSATBDS = (MAXPRNBDS - MINPRNBDS + 1)
 number of BeiDou satellites
const int NSYSBDS = 1
const int MINPRNIRN = 1
 min satellite sat number of IRNSS
const int MAXPRNIRN = 7
 max satellite sat number of IRNSS
const int NSATIRN = 0
const int NSYSIRN = 0
const int MINPRNLEO = 1
 min satellite sat number of LEO
const int MAXPRNLEO = 10
 max satellite sat number of LEO *‍/
const int NSATLEO = 0
const int NSYSLEO = 0
const int NSYS = (NSYSGPS + NSYSGLO + NSYSGAL + NSYSQZS + NSYSBDS + NSYSIRN + NSYSLEO)
 number of systems
const int MINPRNSBS = 120
 min satellite PRN number of SBAS
const int MAXPRNSBS = 142
 max satellite PRN number of SBAS
const int NSATSBS = (MAXPRNSBS - MINPRNSBS + 1)
 number of SBAS satellites
const int MAXSAT = (NSATGPS + NSATGLO + NSATGAL + NSATQZS + NSATBDS + NSATIRN + NSATSBS + NSATLEO)
const int MAXSTA = 255
const int MAXOBS = 64
 max number of obs in an epoch
const int MAXRCV = 64
 max receiver number (1 to MAXRCV)
const int MAXOBSTYPE = 64
 max number of obs type in RINEX
const double MAXDTOE = 7200.0
 max time difference to GPS Toe (s)
const double MAXDTOE_QZS = 7200.0
 max time difference to QZSS Toe (s)
const double MAXDTOE_GAL = 10800.0
 max time difference to Galileo Toe (s)
const double MAXDTOE_BDS = 21600.0
 max time difference to BeiDou Toe (s)
const double MAXDTOE_GLO = 1800.0
 max time difference to GLONASS Toe (s)
const double MAXDTOE_SBS = 360.0
 max time difference to SBAS Toe (s)
const double MAXDTOE_S = 86400.0
 max time difference to ephem toe (s) for other
const double MAXGDOP = 300.0
 max GDOP
const int MAXSBSURA = 8
 max URA of SBAS satellite
const int MAXBAND = 10
 max SBAS band of IGP
const int MAXNIGP = 201
 max number of IGP in SBAS band
const int MAXNGEO = 4
 max number of GEO satellites
const int MAXSOLMSG = 8191
 max length of solution message
const int MAXERRMSG = 4096
 max length of error/warning message
const int IONOOPT_OFF = 0
 ionosphere option: correction off
const int IONOOPT_BRDC = 1
 ionosphere option: broadcast model
const int IONOOPT_SBAS = 2
 ionosphere option: SBAS model
const int IONOOPT_IFLC = 3
 ionosphere option: L1/L2 or L1/L5 iono-free LC
const int IONOOPT_EST = 4
 ionosphere option: estimation
const int IONOOPT_TEC = 5
 ionosphere option: IONEX TEC model
const int IONOOPT_QZS = 6
 ionosphere option: QZSS broadcast model
const int IONOOPT_LEX = 7
 ionosphere option: QZSS LEX ionospehre
const int IONOOPT_STEC = 8
 ionosphere option: SLANT TEC model
const int TROPOPT_OFF = 0
 troposphere option: correction off
const int TROPOPT_SAAS = 1
 troposphere option: Saastamoinen model
const int TROPOPT_SBAS = 2
 troposphere option: SBAS model
const int TROPOPT_EST = 3
 troposphere option: ZTD estimation
const int TROPOPT_ESTG = 4
 troposphere option: ZTD+grad estimation
const int TROPOPT_COR = 5
 troposphere option: ZTD correction
const int TROPOPT_CORG = 6
 troposphere option: ZTD+grad correction
const int EPHOPT_BRDC = 0
 ephemeris option: broadcast ephemeris
const int EPHOPT_PREC = 1
 ephemeris option: precise ephemeris
const int EPHOPT_SBAS = 2
 ephemeris option: broadcast + SBAS
const int EPHOPT_SSRAPC = 3
 ephemeris option: broadcast + SSR_APC
const int EPHOPT_SSRCOM = 4
 ephemeris option: broadcast + SSR_COM
const int EPHOPT_LEX = 5
 ephemeris option: QZSS LEX ephemeris
const double EFACT_GPS = 1.0
 error factor: GPS
const double EFACT_GLO = 1.5
 error factor: GLONASS
const double EFACT_GAL = 1.0
 error factor: Galileo
const double EFACT_QZS = 1.0
 error factor: QZSS
const double EFACT_BDS = 1.0
 error factor: BeiDou
const double EFACT_IRN = 1.5
 error factor: IRNSS
const double EFACT_SBS = 3.0
 error factor: SBAS
const int MAXEXFILE = 1024
 max number of expanded files
const double MAXSBSAGEF = 30.0
 max age of SBAS fast correction (s)
const double MAXSBSAGEL = 1800.0
 max age of SBAS long term corr (s)
const int ARMODE_OFF = 0
 AR mode: off.
const int ARMODE_CONT = 1
 AR mode: continuous.
const int ARMODE_INST = 2
 AR mode: instantaneous.
const int ARMODE_FIXHOLD = 3
 AR mode: fix and hold.
const int ARMODE_PPPAR = 4
 AR mode: PPP-AR.
const int ARMODE_PPPAR_ILS = 5
 AR mode: AR mode: PPP-AR ILS.
const int ARMODE_WLNL = 6
const int ARMODE_TCAR = 7
const int POSOPT_RINEX = 3
 pos option: rinex header pos
const int MAXSTRPATH = 1024
 max length of stream path
const int MAXSTRMSG = 1024
 max length of stream message
const double CHISQR [100]
const double LAM_CARR [MAXFREQ]
const int STRFMT_RTCM2 = 0
const int STRFMT_RTCM3 = 1
const int STRFMT_SP3 = 16
const int STRFMT_RNXCLK = 17
const int STRFMT_SBAS = 18
const int STRFMT_NMEA = 19
const int MAXSTRRTK = 8
const double VAR_POS = std::pow(30.0, 2.0)
const double VAR_VEL = std::pow(10.0, 2.0)
const double VAR_ACC = std::pow(10.0, 2.0)
const double VAR_HWBIAS = std::pow(1.0, 2.0)
const double VAR_GRA = std::pow(0.001, 2.0)
const double INIT_ZWD = 0.15
const double PRN_HWBIA = 1E-6
const double MAXAC = 30.0
const double VAR_HOLDAMB = 0.001
const double TTOL_MOVEB = (1.0 + 2 * DTTOL)

Detailed Description

Our version of the RTKLIB core library (see http://www.rtklib.com/)

Macro Definition Documentation

◆ closesocket

#define closesocket   close

Definition at line 59 of file rtklib.h.

◆ COMMENTH

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

Definition at line 43 of file rtklib_solution.h.

◆ dev_t

#define dev_t   int

Definition at line 57 of file rtklib.h.

◆ ENABDS

#define ENABDS

Definition at line 203 of file rtklib.h.

◆ ENAGLO

#define ENAGLO

Definition at line 170 of file rtklib.h.

◆ ENAQZS

#define ENAQZS

Definition at line 191 of file rtklib.h.

◆ FTP_CMD

#define FTP_CMD   "wget" /* ftp/http command */

Definition at line 78 of file rtklib.h.

◆ IB_PPP

#define IB_PPP ( s,
opt )
Value:
(NR_PPP(opt) + (s)-1) /* state index of phase bias */

Definition at line 343 of file rtklib.h.

◆ IB_RTK

#define IB_RTK ( s,
f,
opt )
Value:
(NR_RTK(opt) + MAXSAT * (f) + (s)-1) /* phase bias (s:satno,f:freq) */

Definition at line 68 of file rtklib_rtkpos.h.

◆ IC_PPP

#define IC_PPP ( s,
opt )
Value:
(NP_PPP(opt) + (s)) /* state index of clocks (s=0:gps,1:glo) */

Definition at line 340 of file rtklib.h.

◆ II_RTK

#define II_RTK ( s,
opt )
Value:
(NP_RTK(opt) + (s)-1) /* ionos (s:satellite no) */

Definition at line 65 of file rtklib_rtkpos.h.

◆ IL_RTK

#define IL_RTK ( f,
opt )
Value:
(NP_RTK(opt) + NI_RTK(opt) + NT_RTK(opt) + (f)) /* receiver h/w bias */

Definition at line 67 of file rtklib_rtkpos.h.

◆ initlock

#define initlock ( f)
Value:
pthread_mutex_init(f, NULL)

Definition at line 61 of file rtklib.h.

◆ IT_PPP

#define IT_PPP ( opt)
Value:
(IC_PPP(0, opt) + NSYS) /* state index of tropos */
const int NSYS
number of systems
Definition rtklib.h:236

Definition at line 341 of file rtklib.h.

◆ IT_RTK

#define IT_RTK ( r,
opt )
Value:
(NP_RTK(opt) + NI_RTK(opt) + NT_RTK(opt) / 2 * (r)) /* tropos (r:0=rov,1:ref) */

Definition at line 66 of file rtklib_rtkpos.h.

◆ lock_t

#define lock_t   pthread_mutex_t

Definition at line 60 of file rtklib.h.

◆ MSG_DISCONN

#define MSG_DISCONN   "$_DISCONNECT\r\n" /* disconnect message */

Definition at line 44 of file rtklib_solution.h.

◆ NB_RTK

#define NB_RTK ( opt)
Value:
((opt)->mode <= PMODE_DGPS ? 0 : MAXSAT * NF_RTK(opt))
const int PMODE_DGPS
positioning mode: DGPS/DGNSS
Definition rtklib.h:106

Definition at line 352 of file rtklib.h.

◆ NF_RTK

#define NF_RTK ( opt)
Value:
((opt)->ionoopt == IONOOPT_IFLC ? 1 : (opt)->nf)
const int IONOOPT_IFLC
ionosphere option: L1/L2 or L1/L5 iono-free LC
Definition rtklib.h:272

Definition at line 347 of file rtklib.h.

◆ NI_RTK

#define NI_RTK ( opt)
Value:
((opt)->ionoopt != IONOOPT_EST ? 0 : MAXSAT)
const int IONOOPT_EST
ionosphere option: estimation
Definition rtklib.h:273

Definition at line 349 of file rtklib.h.

◆ NL_RTK

#define NL_RTK ( opt)
Value:
((opt)->glomodear != 2 ? 0 : NFREQGLO)
const int NFREQGLO
number of carrier frequencies of GLONASS
Definition rtklib.h:149

Definition at line 351 of file rtklib.h.

◆ NP_PPP

#define NP_PPP ( opt)
Value:
((opt)->dynamics ? 9 : 3) /* number of pos solution */

Definition at line 339 of file rtklib.h.

◆ NP_RTK

#define NP_RTK ( opt)
Value:
((opt)->dynamics == 0 ? 3 : 9)

Definition at line 348 of file rtklib.h.

◆ NR_PPP

#define NR_PPP ( opt)
Value:
(IT_PPP(opt) + ((opt)->tropopt < TROPOPT_EST ? 0 : ((opt)->tropopt == TROPOPT_EST ? 1 : 3))) /* number of solutions */
const int TROPOPT_EST
troposphere option: ZTD estimation
Definition rtklib.h:282

Definition at line 342 of file rtklib.h.

◆ NR_RTK

#define NR_RTK ( opt)
Value:
(NP_RTK(opt) + NI_RTK(opt) + NT_RTK(opt) + NL_RTK(opt))

Definition at line 353 of file rtklib.h.

◆ NT_RTK

#define NT_RTK ( opt)
Value:
((opt)->tropopt < TROPOPT_EST ? 0 : ((opt)->tropopt < TROPOPT_ESTG ? 2 : 6))
const int TROPOPT_ESTG
troposphere option: ZTD+grad estimation
Definition rtklib.h:283

Definition at line 350 of file rtklib.h.

◆ NTRIP_AGENT

#define NTRIP_AGENT   "RTKLIB/" VER_RTKLIB

Definition at line 66 of file rtklib.h.

◆ NTRIP_CLI_PORT

#define NTRIP_CLI_PORT   2101 /* default ntrip-client connection port */

Definition at line 67 of file rtklib.h.

◆ NTRIP_MAXRSP

#define NTRIP_MAXRSP   32768 /* max size of ntrip response */

Definition at line 69 of file rtklib.h.

◆ NTRIP_MAXSTR

#define NTRIP_MAXSTR   256 /* max length of mountpoint string */

Definition at line 70 of file rtklib.h.

◆ NTRIP_RSP_ERROR

#define NTRIP_RSP_ERROR   "ERROR" /* ntrip response: error */

Definition at line 76 of file rtklib.h.

◆ NTRIP_RSP_HTTP

#define NTRIP_RSP_HTTP   "HTTP/" /* ntrip response: http */

Definition at line 75 of file rtklib.h.

◆ NTRIP_RSP_OK_CLI

#define NTRIP_RSP_OK_CLI   "ICY 200 OK\r\n" /* ntrip response: client */

Definition at line 71 of file rtklib.h.

◆ NTRIP_RSP_OK_SVR

#define NTRIP_RSP_OK_SVR   "OK\r\n" /* ntrip response: server */

Definition at line 72 of file rtklib.h.

◆ NTRIP_RSP_SRCTBL

#define NTRIP_RSP_SRCTBL   "SOURCETABLE 200 OK\r\n" /* ntrip response: source table */

Definition at line 73 of file rtklib.h.

◆ NTRIP_RSP_TBLEND

#define NTRIP_RSP_TBLEND   "ENDSOURCETABLE"

Definition at line 74 of file rtklib.h.

◆ NTRIP_SVR_PORT

#define NTRIP_SVR_PORT   80 /* default ntrip-server connection port */

Definition at line 68 of file rtklib.h.

◆ NX_PPP

#define NX_PPP ( opt)
Value:
(IB_PPP(MAXSAT, opt) + 1) /* number of estimated states */

Definition at line 344 of file rtklib.h.

◆ NX_RTK

#define NX_RTK ( opt)
Value:
(NR_RTK(opt) + NB_RTK(opt))

Definition at line 354 of file rtklib.h.

◆ rtk_lock

#define rtk_lock ( f)
Value:
pthread_mutex_lock(f)

Definition at line 62 of file rtklib.h.

◆ rtk_unlock

#define rtk_unlock ( f)
Value:
pthread_mutex_unlock(f)

Definition at line 63 of file rtklib.h.

◆ socket_t

#define socket_t   int

Definition at line 58 of file rtklib.h.

◆ STR_FILE

#define STR_FILE   2 /* stream type: file */

Definition at line 330 of file rtklib.h.

◆ STR_FTP

#define STR_FTP   8 /* stream type: ftp */

Definition at line 336 of file rtklib.h.

◆ STR_HTTP

#define STR_HTTP   9 /* stream type: http */

Definition at line 337 of file rtklib.h.

◆ STR_MODE_R

#define STR_MODE_R   0x1 /* stream mode: read */

Definition at line 324 of file rtklib.h.

◆ STR_MODE_RW

#define STR_MODE_RW   0x3 /* stream mode: read/write */

Definition at line 326 of file rtklib.h.

◆ STR_MODE_W

#define STR_MODE_W   0x2 /* stream mode: write */

Definition at line 325 of file rtklib.h.

◆ STR_NONE

#define STR_NONE   0 /* stream type: none */

Definition at line 328 of file rtklib.h.

◆ STR_NTRIPCLI

#define STR_NTRIPCLI   7 /* stream type: NTRIP client */

Definition at line 335 of file rtklib.h.

◆ STR_NTRIPSVR

#define STR_NTRIPSVR   6 /* stream type: NTRIP server */

Definition at line 334 of file rtklib.h.

◆ STR_SERIAL

#define STR_SERIAL   1 /* stream type: serial */

Definition at line 329 of file rtklib.h.

◆ STR_TCPCLI

#define STR_TCPCLI   4 /* stream type: TCP client */

Definition at line 332 of file rtklib.h.

◆ STR_TCPSVR

#define STR_TCPSVR   3 /* stream type: TCP server */

Definition at line 331 of file rtklib.h.

◆ STR_UDP

#define STR_UDP   5 /* stream type: UDP stream */

Definition at line 333 of file rtklib.h.

◆ VER_RTKLIB

#define VER_RTKLIB   "2.4.2"

Definition at line 65 of file rtklib.h.

Typedef Documentation

◆ fatalfunc_t

using fatalfunc_t = void(const char *)

fatal callback function type

Definition at line 321 of file rtklib.h.

Function Documentation

◆ eph_to_rtklib()

geph_t eph_to_rtklib ( const Glonass_Gnav_Ephemeris & glonass_gnav_eph,
const Glonass_Gnav_Utc_Model & gnav_clock_model )

Transforms a Glonass_Gnav_Ephemeris to its RTKLIB counterpart.

Parameters
glonass_gnav_ephGLONASS GNAV Ephemeris structure
Returns
Ephemeris structure for RTKLIB parsing

Variable Documentation

◆ ARMODE_CONT

const int ARMODE_CONT = 1

AR mode: continuous.

Definition at line 308 of file rtklib.h.

◆ ARMODE_FIXHOLD

const int ARMODE_FIXHOLD = 3

AR mode: fix and hold.

Definition at line 310 of file rtklib.h.

◆ ARMODE_INST

const int ARMODE_INST = 2

AR mode: instantaneous.

Definition at line 309 of file rtklib.h.

◆ ARMODE_OFF

const int ARMODE_OFF = 0

AR mode: off.

Definition at line 307 of file rtklib.h.

◆ ARMODE_PPPAR

const int ARMODE_PPPAR = 4

AR mode: PPP-AR.

Definition at line 311 of file rtklib.h.

◆ ARMODE_PPPAR_ILS

const int ARMODE_PPPAR_ILS = 5

AR mode: AR mode: PPP-AR ILS.

Definition at line 312 of file rtklib.h.

◆ ARMODE_TCAR

const int ARMODE_TCAR = 7

Definition at line 314 of file rtklib.h.

◆ ARMODE_WLNL

const int ARMODE_WLNL = 6

Definition at line 313 of file rtklib.h.

◆ CHISQR

const double CHISQR[100]
Initial value:
= {
10.8, 13.8, 16.3, 18.5, 20.5, 22.5, 24.3, 26.1, 27.9, 29.6,
31.3, 32.9, 34.5, 36.1, 37.7, 39.3, 40.8, 42.3, 43.8, 45.3,
46.8, 48.3, 49.7, 51.2, 52.6, 54.1, 55.5, 56.9, 58.3, 59.7,
61.1, 62.5, 63.9, 65.2, 66.6, 68.0, 69.3, 70.7, 72.1, 73.4,
74.7, 76.0, 77.3, 78.6, 80.0, 81.3, 82.6, 84.0, 85.4, 86.7,
88.0, 89.3, 90.6, 91.9, 93.3, 94.7, 96.0, 97.4, 98.7, 100,
101, 102, 103, 104, 105, 107, 108, 109, 110, 112,
113, 114, 115, 116, 118, 119, 120, 122, 123, 125,
126, 127, 128, 129, 131, 132, 133, 134, 135, 137,
138, 139, 140, 142, 143, 144, 145, 147, 148, 149}

Definition at line 1292 of file rtklib.h.

◆ DTTOL

const double DTTOL = 0.005

tolerance of time difference (s)

Definition at line 146 of file rtklib.h.

◆ EFACT_BDS

const double EFACT_BDS = 1.0

error factor: BeiDou

Definition at line 299 of file rtklib.h.

◆ EFACT_GAL

const double EFACT_GAL = 1.0

error factor: Galileo

Definition at line 297 of file rtklib.h.

◆ EFACT_GLO

const double EFACT_GLO = 1.5

error factor: GLONASS

Definition at line 296 of file rtklib.h.

◆ EFACT_GPS

const double EFACT_GPS = 1.0

error factor: GPS

Definition at line 295 of file rtklib.h.

◆ EFACT_IRN

const double EFACT_IRN = 1.5

error factor: IRNSS

Definition at line 300 of file rtklib.h.

◆ EFACT_QZS

const double EFACT_QZS = 1.0

error factor: QZSS

Definition at line 298 of file rtklib.h.

◆ EFACT_SBS

const double EFACT_SBS = 3.0

error factor: SBAS

Definition at line 301 of file rtklib.h.

◆ EPHOPT_BRDC

const int EPHOPT_BRDC = 0

ephemeris option: broadcast ephemeris

Definition at line 288 of file rtklib.h.

◆ EPHOPT_LEX

const int EPHOPT_LEX = 5

ephemeris option: QZSS LEX ephemeris

Definition at line 293 of file rtklib.h.

◆ EPHOPT_PREC

const int EPHOPT_PREC = 1

ephemeris option: precise ephemeris

Definition at line 289 of file rtklib.h.

◆ EPHOPT_SBAS

const int EPHOPT_SBAS = 2

ephemeris option: broadcast + SBAS

Definition at line 290 of file rtklib.h.

◆ EPHOPT_SSRAPC

const int EPHOPT_SSRAPC = 3

ephemeris option: broadcast + SSR_APC

Definition at line 291 of file rtklib.h.

◆ EPHOPT_SSRCOM

const int EPHOPT_SSRCOM = 4

ephemeris option: broadcast + SSR_COM

Definition at line 292 of file rtklib.h.

◆ ERR_BRDCI

const double ERR_BRDCI = 0.5

broadcast iono model error factor

Definition at line 138 of file rtklib.h.

◆ ERR_CBIAS

const double ERR_CBIAS = 0.3

code bias error std (m)

Definition at line 139 of file rtklib.h.

◆ ERR_SAAS

const double ERR_SAAS = 0.3

saastamoinen model error std (m)

Definition at line 137 of file rtklib.h.

◆ FE_WGS84

const double FE_WGS84 = (1.0 / 298.257223563)

earth flattening (WGS84)

Definition at line 94 of file rtklib.h.

◆ FILEPATHSEP

const int FILEPATHSEP = '/'

Definition at line 92 of file rtklib.h.

◆ FTP_TIMEOUT

const int FTP_TIMEOUT = 30

ftp/http timeout (s)

Definition at line 86 of file rtklib.h.

◆ GAP_RESION

const double GAP_RESION = 120

default gap to reset ionos parameters (ep)

Definition at line 141 of file rtklib.h.

◆ HION

const double HION = 350000.0

ionosphere height (m)

Definition at line 96 of file rtklib.h.

◆ INIT_ZWD

const double INIT_ZWD = 0.15

Definition at line 50 of file rtklib_rtkpos.h.

◆ INT_SWAP_STAT

const double INT_SWAP_STAT = 86400.0

swap interval of solution status file (s)

Definition at line 99 of file rtklib.h.

◆ INT_SWAP_TRAC

const double INT_SWAP_TRAC = 86400.0

swap interval of trace file (s)

Definition at line 100 of file rtklib.h.

◆ IONOOPT_BRDC

const int IONOOPT_BRDC = 1

ionosphere option: broadcast model

Definition at line 270 of file rtklib.h.

◆ IONOOPT_EST

const int IONOOPT_EST = 4

ionosphere option: estimation

Definition at line 273 of file rtklib.h.

◆ IONOOPT_IFLC

const int IONOOPT_IFLC = 3

ionosphere option: L1/L2 or L1/L5 iono-free LC

Definition at line 272 of file rtklib.h.

◆ IONOOPT_LEX

const int IONOOPT_LEX = 7

ionosphere option: QZSS LEX ionospehre

Definition at line 276 of file rtklib.h.

◆ IONOOPT_OFF

const int IONOOPT_OFF = 0

ionosphere option: correction off

Definition at line 269 of file rtklib.h.

◆ IONOOPT_QZS

const int IONOOPT_QZS = 6

ionosphere option: QZSS broadcast model

Definition at line 275 of file rtklib.h.

◆ IONOOPT_SBAS

const int IONOOPT_SBAS = 2

ionosphere option: SBAS model

Definition at line 271 of file rtklib.h.

◆ IONOOPT_STEC

const int IONOOPT_STEC = 8

ionosphere option: SLANT TEC model

Definition at line 277 of file rtklib.h.

◆ IONOOPT_TEC

const int IONOOPT_TEC = 5

ionosphere option: IONEX TEC model

Definition at line 274 of file rtklib.h.

◆ LAM_CARR

const double LAM_CARR[MAXFREQ]
Initial value:
= {
constexpr double SPEED_OF_LIGHT_M_S
Speed of light in vacuum [m/s].
constexpr double FREQ1
L1/E1 frequency (Hz).
constexpr double FREQ5
L5/E5a frequency (Hz).
constexpr double FREQ7
E5b frequency (Hz).
constexpr double FREQ9
S frequency (Hz).
constexpr double FREQ2
L2 frequency (Hz).
constexpr double FREQ8
E5a+b frequency (Hz).
constexpr double FREQ6
E6/LEX frequency (Hz).

Definition at line 1305 of file rtklib.h.

◆ MAXAC

const double MAXAC = 30.0

Definition at line 53 of file rtklib_rtkpos.h.

◆ MAXANT

const int MAXANT = 64

max length of station name/antenna type

Definition at line 151 of file rtklib.h.

◆ MAXBAND

const int MAXBAND = 10

max SBAS band of IGP

Definition at line 262 of file rtklib.h.

◆ MAXCLI

const int MAXCLI = 32

max client connection for tcp svr

Definition at line 83 of file rtklib.h.

◆ MAXDTOE

const double MAXDTOE = 7200.0

max time difference to GPS Toe (s)

Definition at line 252 of file rtklib.h.

◆ MAXDTOE_BDS

const double MAXDTOE_BDS = 21600.0

max time difference to BeiDou Toe (s)

Definition at line 255 of file rtklib.h.

◆ MAXDTOE_GAL

const double MAXDTOE_GAL = 10800.0

max time difference to Galileo Toe (s)

Definition at line 254 of file rtklib.h.

◆ MAXDTOE_GLO

const double MAXDTOE_GLO = 1800.0

max time difference to GLONASS Toe (s)

Definition at line 256 of file rtklib.h.

◆ MAXDTOE_QZS

const double MAXDTOE_QZS = 7200.0

max time difference to QZSS Toe (s)

Definition at line 253 of file rtklib.h.

◆ MAXDTOE_S

const double MAXDTOE_S = 86400.0

max time difference to ephem toe (s) for other

Definition at line 258 of file rtklib.h.

◆ MAXDTOE_SBS

const double MAXDTOE_SBS = 360.0

max time difference to SBAS Toe (s)

Definition at line 257 of file rtklib.h.

◆ MAXERRMSG

const int MAXERRMSG = 4096

max length of error/warning message

Definition at line 267 of file rtklib.h.

◆ MAXEXFILE

const int MAXEXFILE = 1024

max number of expanded files

Definition at line 303 of file rtklib.h.

◆ MAXFREQ

const int MAXFREQ = 7

max NFREQ

Definition at line 143 of file rtklib.h.

◆ MAXGDOP

const double MAXGDOP = 300.0

max GDOP

Definition at line 259 of file rtklib.h.

◆ MAXLEAPS

const int MAXLEAPS = 64

max number of leap seconds table

Definition at line 145 of file rtklib.h.

◆ MAXNGEO

const int MAXNGEO = 4

max number of GEO satellites

Definition at line 264 of file rtklib.h.

◆ MAXNIGP

const int MAXNIGP = 201

max number of IGP in SBAS band

Definition at line 263 of file rtklib.h.

◆ MAXOBS

const int MAXOBS = 64

max number of obs in an epoch

Definition at line 247 of file rtklib.h.

◆ MAXOBSBUF

const int MAXOBSBUF = 128

max number of observation data buffer

Definition at line 90 of file rtklib.h.

◆ MAXOBSTYPE

const int MAXOBSTYPE = 64

max number of obs type in RINEX

Definition at line 251 of file rtklib.h.

◆ MAXPRNBDS

const int MAXPRNBDS = 63

max satellite sat number of BeiDou

Definition at line 206 of file rtklib.h.

◆ MAXPRNGAL

const int MAXPRNGAL = 36

max satellite PRN number of Galileo

Definition at line 185 of file rtklib.h.

◆ MAXPRNGLO

const int MAXPRNGLO = 27

max satellite slot number of GLONASS

Definition at line 173 of file rtklib.h.

◆ MAXPRNGPS

const int MAXPRNGPS = 32

max satellite PRN number of GPS

Definition at line 154 of file rtklib.h.

◆ MAXPRNIRN

const int MAXPRNIRN = 7

max satellite sat number of IRNSS

Definition at line 217 of file rtklib.h.

◆ MAXPRNLEO

const int MAXPRNLEO = 10

max satellite sat number of LEO *‍/

Definition at line 227 of file rtklib.h.

◆ MAXPRNQZS

const int MAXPRNQZS = 202

max satellite PRN number of QZSS

Definition at line 189 of file rtklib.h.

◆ MAXPRNQZS_S

const int MAXPRNQZS_S = 191

max satellite PRN number of QZSS SAIF

Definition at line 194 of file rtklib.h.

◆ MAXPRNSBS

const int MAXPRNSBS = 142

max satellite PRN number of SBAS

Definition at line 239 of file rtklib.h.

◆ MAXRAWLEN

const int MAXRAWLEN = 4096

max length of receiver raw message

Definition at line 87 of file rtklib.h.

◆ MAXRCV

const int MAXRCV = 64

max receiver number (1 to MAXRCV)

Definition at line 250 of file rtklib.h.

◆ MAXSAT

const int MAXSAT = (NSATGPS + NSATGLO + NSATGAL + NSATQZS + NSATBDS + NSATIRN + NSATSBS + NSATLEO)

Definition at line 242 of file rtklib.h.

◆ MAXSBSAGEF

const double MAXSBSAGEF = 30.0

max age of SBAS fast correction (s)

Definition at line 304 of file rtklib.h.

◆ MAXSBSAGEL

const double MAXSBSAGEL = 1800.0

max age of SBAS long term corr (s)

Definition at line 305 of file rtklib.h.

◆ MAXSBSMSG

const int MAXSBSMSG = 32

max number of SBAS msg in RTK server

Definition at line 89 of file rtklib.h.

◆ MAXSBSURA

const int MAXSBSURA = 8

max URA of SBAS satellite

Definition at line 261 of file rtklib.h.

◆ MAXSOLBUF

const int MAXSOLBUF = 256

max number of solution buffer

Definition at line 88 of file rtklib.h.

◆ MAXSOLMSG

const int MAXSOLMSG = 8191

max length of solution message

Definition at line 266 of file rtklib.h.

◆ MAXSOLQ

const int MAXSOLQ = 7

max number of solution status

Definition at line 130 of file rtklib.h.

◆ MAXSTA

const int MAXSTA = 255

Definition at line 244 of file rtklib.h.

◆ MAXSTATMSG

const int MAXSTATMSG = 32

max length of status message

Definition at line 84 of file rtklib.h.

◆ MAXSTRMSG

const int MAXSTRMSG = 1024

max length of stream message

Definition at line 319 of file rtklib.h.

◆ MAXSTRPATH

const int MAXSTRPATH = 1024

max length of stream path

Definition at line 318 of file rtklib.h.

◆ MAXSTRRTK

const int MAXSTRRTK = 8

Definition at line 1317 of file rtklib.h.

◆ MINPRNBDS

const int MINPRNBDS = 1

min satellite sat number of BeiDou

Definition at line 205 of file rtklib.h.

◆ MINPRNGAL

const int MINPRNGAL = 1

min satellite PRN number of Galileo

Definition at line 184 of file rtklib.h.

◆ MINPRNGLO

const int MINPRNGLO = 1

min satellite slot number of GLONASS

Definition at line 172 of file rtklib.h.

◆ MINPRNGPS

const int MINPRNGPS = 1

min satellite PRN number of GPS

Definition at line 153 of file rtklib.h.

◆ MINPRNIRN

const int MINPRNIRN = 1

min satellite sat number of IRNSS

Definition at line 216 of file rtklib.h.

◆ MINPRNLEO

const int MINPRNLEO = 1

min satellite sat number of LEO

Definition at line 226 of file rtklib.h.

◆ MINPRNQZS

const int MINPRNQZS = 193

min satellite PRN number of QZSS

Definition at line 190 of file rtklib.h.

◆ MINPRNQZS_S

const int MINPRNQZS_S = 183

min satellite PRN number of QZSS SAIF

Definition at line 193 of file rtklib.h.

◆ MINPRNSBS

const int MINPRNSBS = 120

min satellite PRN number of SBAS

Definition at line 238 of file rtklib.h.

◆ NEXOBS

const int NEXOBS = 0

number of extended obs codes

Definition at line 150 of file rtklib.h.

◆ NFREQ

const int NFREQ = 3

number of carrier frequencies

Definition at line 148 of file rtklib.h.

◆ NFREQGLO

const int NFREQGLO = 2

number of carrier frequencies of GLONASS

Definition at line 149 of file rtklib.h.

◆ NSATBDS

const int NSATBDS = (MAXPRNBDS - MINPRNBDS + 1)

number of BeiDou satellites

Definition at line 207 of file rtklib.h.

◆ NSATGAL

const int NSATGAL = (MAXPRNGAL - MINPRNGAL + 1)

number of Galileo satellites

Definition at line 186 of file rtklib.h.

◆ NSATGLO

const int NSATGLO = (MAXPRNGLO - MINPRNGLO + 1)

number of GLONASS satellites

Definition at line 174 of file rtklib.h.

◆ NSATGPS

const int NSATGPS = (MAXPRNGPS - MINPRNGPS + 1)

number of GPS satellites

Definition at line 155 of file rtklib.h.

◆ NSATIRN

const int NSATIRN = 0

Definition at line 222 of file rtklib.h.

◆ NSATLEO

const int NSATLEO = 0

Definition at line 232 of file rtklib.h.

◆ NSATQZS

const int NSATQZS = (MAXPRNQZS - MINPRNQZS + 1)

number of QZSS satellites

Definition at line 195 of file rtklib.h.

◆ NSATSBS

const int NSATSBS = (MAXPRNSBS - MINPRNSBS + 1)

number of SBAS satellites

Definition at line 240 of file rtklib.h.

◆ NSYS

const int NSYS = (NSYSGPS + NSYSGLO + NSYSGAL + NSYSQZS + NSYSBDS + NSYSIRN + NSYSLEO)

number of systems

Definition at line 236 of file rtklib.h.

◆ NSYSBDS

const int NSYSBDS = 1

Definition at line 208 of file rtklib.h.

◆ NSYSGAL

const int NSYSGAL = 1

Definition at line 187 of file rtklib.h.

◆ NSYSGLO

const int NSYSGLO = 1

Definition at line 175 of file rtklib.h.

◆ NSYSGPS

const int NSYSGPS = 1

Definition at line 156 of file rtklib.h.

◆ NSYSIRN

const int NSYSIRN = 0

Definition at line 223 of file rtklib.h.

◆ NSYSLEO

const int NSYSLEO = 0

Definition at line 233 of file rtklib.h.

◆ NSYSQZS

const int NSYSQZS = 1

Definition at line 196 of file rtklib.h.

◆ PMODE_DGPS

const int PMODE_DGPS = 1

positioning mode: DGPS/DGNSS

Definition at line 106 of file rtklib.h.

◆ PMODE_FIXED

const int PMODE_FIXED = 5

positioning mode: fixed

Definition at line 110 of file rtklib.h.

◆ PMODE_KINEMA

const int PMODE_KINEMA = 2

positioning mode: kinematic

Definition at line 107 of file rtklib.h.

◆ PMODE_MOVEB

const int PMODE_MOVEB = 4

positioning mode: moving-base

Definition at line 109 of file rtklib.h.

◆ PMODE_PPP_FIXED

const int PMODE_PPP_FIXED = 8

positioning mode: PPP-fixed

Definition at line 113 of file rtklib.h.

◆ PMODE_PPP_KINEMA

const int PMODE_PPP_KINEMA = 6

positioning mode: PPP-kinemaric

Definition at line 111 of file rtklib.h.

◆ PMODE_PPP_STATIC

const int PMODE_PPP_STATIC = 7

positioning mode: PPP-static

Definition at line 112 of file rtklib.h.

◆ PMODE_SINGLE

const int PMODE_SINGLE = 0

positioning mode: single

Definition at line 105 of file rtklib.h.

◆ PMODE_STATIC

const int PMODE_STATIC = 3

positioning mode: static

Definition at line 108 of file rtklib.h.

◆ POLYCRC24Q

const unsigned int POLYCRC24Q = 0x1864CFBu

CRC24Q polynomial.

Definition at line 103 of file rtklib.h.

◆ POLYCRC32

const unsigned int POLYCRC32 = 0xEDB88320u

CRC32 polynomial.

Definition at line 102 of file rtklib.h.

◆ POSOPT_RINEX

const int POSOPT_RINEX = 3

pos option: rinex header pos

Definition at line 317 of file rtklib.h.

◆ PRN_HWBIA

const double PRN_HWBIA = 1E-6

Definition at line 52 of file rtklib_rtkpos.h.

◆ PRN_HWBIAS

const double PRN_HWBIAS = 1e-6

process noise of h/w bias (m/MHz/sqrt(s))

Definition at line 97 of file rtklib.h.

◆ RE_WGS84

const double RE_WGS84 = 6378137.0

earth semimajor axis (WGS84) (m)

Definition at line 93 of file rtklib.h.

◆ REL_HUMI

const double REL_HUMI = 0.7

relative humidity for saastamoinen model

Definition at line 140 of file rtklib.h.

◆ SERIBUFFSIZE

const int SERIBUFFSIZE = 4096

serial buffer size (bytes)

Definition at line 81 of file rtklib.h.

◆ SOLF_ENU

const int SOLF_ENU = 2

solution format: e/n/u-baseline

Definition at line 117 of file rtklib.h.

◆ SOLF_GSIF

const int SOLF_GSIF = 5

solution format: GSI F1/F2

Definition at line 120 of file rtklib.h.

◆ SOLF_LLH

const int SOLF_LLH = 0

solution format: lat/lon/height

Definition at line 115 of file rtklib.h.

◆ SOLF_NMEA

const int SOLF_NMEA = 3

solution format: NMEA-183

Definition at line 118 of file rtklib.h.

◆ SOLF_STAT

const int SOLF_STAT = 4

solution format: solution status

Definition at line 119 of file rtklib.h.

◆ SOLF_XYZ

const int SOLF_XYZ = 1

solution format: x/y/z-ecef

Definition at line 116 of file rtklib.h.

◆ SOLQ_DGPS

const int SOLQ_DGPS = 4

solution status: DGPS/DGNSS

Definition at line 126 of file rtklib.h.

◆ SOLQ_DR

const int SOLQ_DR = 7

solution status: dead reckoning

Definition at line 129 of file rtklib.h.

◆ SOLQ_FIX

const int SOLQ_FIX = 1

solution status: fix

Definition at line 123 of file rtklib.h.

◆ SOLQ_FLOAT

const int SOLQ_FLOAT = 2

solution status: float

Definition at line 124 of file rtklib.h.

◆ SOLQ_NONE

const int SOLQ_NONE = 0

solution status: no solution

Definition at line 122 of file rtklib.h.

◆ SOLQ_PPP

const int SOLQ_PPP = 6

solution status: PPP

Definition at line 128 of file rtklib.h.

◆ SOLQ_SBAS

const int SOLQ_SBAS = 3

solution status: SBAS

Definition at line 125 of file rtklib.h.

◆ SOLQ_SINGLE

const int SOLQ_SINGLE = 5

solution status: single

Definition at line 127 of file rtklib.h.

◆ STRFMT_NMEA

const int STRFMT_NMEA = 19

Definition at line 1314 of file rtklib.h.

◆ STRFMT_RNXCLK

const int STRFMT_RNXCLK = 17

Definition at line 1312 of file rtklib.h.

◆ STRFMT_RTCM2

const int STRFMT_RTCM2 = 0

Definition at line 1309 of file rtklib.h.

◆ STRFMT_RTCM3

const int STRFMT_RTCM3 = 1

Definition at line 1310 of file rtklib.h.

◆ STRFMT_SBAS

const int STRFMT_SBAS = 18

Definition at line 1313 of file rtklib.h.

◆ STRFMT_SP3

const int STRFMT_SP3 = 16

Definition at line 1311 of file rtklib.h.

◆ SYS_ALL

const int SYS_ALL = 0xFF

navigation system: all

Definition at line 167 of file rtklib.h.

◆ SYS_BDS

const int SYS_BDS = 0x20

navigation system: BeiDou

Definition at line 164 of file rtklib.h.

◆ SYS_GAL

const int SYS_GAL = 0x08

navigation system: Galileo

Definition at line 162 of file rtklib.h.

◆ SYS_GLO

const int SYS_GLO = 0x04

navigation system: GLONASS

Definition at line 161 of file rtklib.h.

◆ SYS_GPS

const int SYS_GPS = 0x01

navigation system: GPS

Definition at line 159 of file rtklib.h.

◆ SYS_IRN

const int SYS_IRN = 0x40

navigation system: IRNS

Definition at line 165 of file rtklib.h.

◆ SYS_LEO

const int SYS_LEO = 0x80

navigation system: LEO

Definition at line 166 of file rtklib.h.

◆ SYS_NONE

const int SYS_NONE = 0x00

navigation system: none

Definition at line 158 of file rtklib.h.

◆ SYS_QZS

const int SYS_QZS = 0x10

navigation system: QZSS

Definition at line 163 of file rtklib.h.

◆ SYS_SBS

const int SYS_SBS = 0x02

navigation system: SBAS

Definition at line 160 of file rtklib.h.

◆ TIMES_GPST

const int TIMES_GPST = 0

time system: gps time

Definition at line 132 of file rtklib.h.

◆ TIMES_JST

const int TIMES_JST = 2

time system: jst

Definition at line 134 of file rtklib.h.

◆ TIMES_UTC

const int TIMES_UTC = 1

time system: utc

Definition at line 133 of file rtklib.h.

◆ TIMETAGH_LEN

const int TIMETAGH_LEN = 64

time tag file header length

Definition at line 82 of file rtklib.h.

◆ TINTACT

const int TINTACT = 200

period for stream active (ms)

Definition at line 80 of file rtklib.h.

◆ TROPOPT_COR

const int TROPOPT_COR = 5

troposphere option: ZTD correction

Definition at line 284 of file rtklib.h.

◆ TROPOPT_CORG

const int TROPOPT_CORG = 6

troposphere option: ZTD+grad correction

Definition at line 285 of file rtklib.h.

◆ TROPOPT_EST

const int TROPOPT_EST = 3

troposphere option: ZTD estimation

Definition at line 282 of file rtklib.h.

◆ TROPOPT_ESTG

const int TROPOPT_ESTG = 4

troposphere option: ZTD+grad estimation

Definition at line 283 of file rtklib.h.

◆ TROPOPT_OFF

const int TROPOPT_OFF = 0

troposphere option: correction off

Definition at line 279 of file rtklib.h.

◆ TROPOPT_SAAS

const int TROPOPT_SAAS = 1

troposphere option: Saastamoinen model

Definition at line 280 of file rtklib.h.

◆ TROPOPT_SBAS

const int TROPOPT_SBAS = 2

troposphere option: SBAS model

Definition at line 281 of file rtklib.h.

◆ TTOL_MOVEB

const double TTOL_MOVEB = (1.0 + 2 * DTTOL)

Definition at line 57 of file rtklib_rtkpos.h.

◆ VAR_ACC

const double VAR_ACC = std::pow(10.0, 2.0)

Definition at line 47 of file rtklib_rtkpos.h.

◆ VAR_GRA

const double VAR_GRA = std::pow(0.001, 2.0)

Definition at line 49 of file rtklib_rtkpos.h.

◆ VAR_HOLDAMB

const double VAR_HOLDAMB = 0.001

Definition at line 55 of file rtklib_rtkpos.h.

◆ VAR_HWBIAS

const double VAR_HWBIAS = std::pow(1.0, 2.0)

Definition at line 48 of file rtklib_rtkpos.h.

◆ VAR_POS

const double VAR_POS = std::pow(30.0, 2.0)

Definition at line 45 of file rtklib_rtkpos.h.

◆ VAR_VEL

const double VAR_VEL = std::pow(10.0, 2.0)

Definition at line 46 of file rtklib_rtkpos.h.