44#include "mrtklib/mrtk_version.h"
50#define COPYRIGHT_MRTKLIB \
51 "Copyright (C) 2007-2023 T.Takasu\nAll rights reserved." \
52 "Copyright (C) 2023-2025, TOSHIBA ELECTRONIC TECHNOLOGIES CORPORATION. All Rights Reserved." \
53 "Copyright (C) 2023-2025, Japan Aerospace Exploration Agency. All Rights Reserved."
60#define PI 3.1415926535897932
63#define D2R (PI / 180.0)
66#define R2D (180.0 / PI)
69#define CLIGHT 299792458.0
72#define SC2RAD 3.1415926535898
75#define AU 149597870691.0
78#define AS2R (D2R / 3600.0)
81#define M2NS (1E9 / CLIGHT)
84#define NS2M (CLIGHT / 1E9)
87#define OMGE 7.2921151467E-5
90#define RE_WGS84 6378137.0
93#define FE_WGS84 (1.0 / 298.257223563)
107#define FREQ1 1.57542E9
110#define FREQ2 1.22760E9
113#define FREQ5 1.17645E9
116#define FREQ6 1.27875E9
119#define FREQ7 1.20714E9
122#define FREQ8 1.191795E9
125#define FREQ9 2.492028E9
128#define FREQ1_GLO 1.60200E9
131#define DFRQ1_GLO 0.56250E6
134#define FREQ2_GLO 1.24600E9
137#define DFRQ2_GLO 0.43750E6
140#define FREQ3_GLO 1.202025E9
143#define FREQ1a_GLO 1.600995E9
146#define FREQ2a_GLO 1.248060E9
149#define FREQ1_CMP 1.561098E9
152#define FREQ2_CMP 1.20714E9
155#define FREQ3_CMP 1.26852E9
255#define MAXDTOE 7200.0
258#define MAXDTOE_QZS 7200.0
261#define MAXDTOE_GAL 14400.0
264#define MAXDTOE_CMP 21600.0
267#define MAXDTOE_GLO 1800.0
270#define MAXDTOE_IRN 7200.0
273#define MAXDTOE_SBS 360.0
276#define MAXDTOE_S 86400.0
286#define INT_SWAP_TRAC 86400.0
287#define INT_SWAP_STAT 86400.0
293#define MAXSBSAGEF 30.0
294#define MAXSBSAGEL 1800.0
308#define OBSTYPE_PR 0x01
309#define OBSTYPE_CP 0x02
310#define OBSTYPE_DOP 0x04
311#define OBSTYPE_SNR 0x08
312#define OBSTYPE_ALL 0xFF
314#define FREQTYPE_L1 0x01
315#define FREQTYPE_L2 0x02
316#define FREQTYPE_L3 0x04
317#define FREQTYPE_L4 0x08
318#define FREQTYPE_L5 0x10
319#define FREQTYPE_ALL 0xFF
333#define LLI_HALFC 0x02
336#define LLI_BOCTRK 0x04
339#define LLI_HALFA 0x40
342#define LLI_HALFS 0x80
352#define P2_11 4.882812500000000E-04
355#define P2_15 3.051757812500000E-05
358#define P2_17 7.629394531250000E-06
361#define P2_19 1.907348632812500E-06
364#define P2_20 9.536743164062500E-07
367#define P2_21 4.768371582031250E-07
370#define P2_23 1.192092895507810E-07
373#define P2_24 5.960464477539063E-08
376#define P2_27 7.450580596923828E-09
379#define P2_29 1.862645149230957E-09
382#define P2_30 9.313225746154785E-10
385#define P2_31 4.656612873077393E-10
388#define P2_32 2.328306436538696E-10
391#define P2_33 1.164153218269348E-10
394#define P2_35 2.910383045673370E-11
397#define P2_38 3.637978807091710E-12
400#define P2_39 1.818989403545856E-12
403#define P2_40 9.094947017729280E-13
406#define P2_43 1.136868377216160E-13
409#define P2_48 3.552713678800501E-15
412#define P2_50 8.881784197001252E-16
415#define P2_55 2.775557561562891E-17
422#define SSR_VENDOR_L6 0
423#define SSR_VENDOR_RTCM 1
424#define MAXAGESSRL6 60.0
425#define MIONO_MAX_AGE 300.0
426#define SSR_INVALID_CBIAS -81.92
427#define SSR_INVALID_PBIAS -52.4288
434#define GM_EGM 3.986004415E14
435#define DT_BETA_R 10.0
439#define STYPE_GPSIIA 2
440#define STYPE_GPSIIR 3
441#define STYPE_GPSIIRM 4
442#define STYPE_GPSIIF 5
443#define STYPE_GPSIIIA 6
444#define STYPE_GPSIIIB 7
450#define STYPE_QZSIIQ 13
451#define STYPE_QZSIIG 14
452#define STYPE_QZSIIIQ 15
453#define STYPE_QZSIIIG 16
454#define STYPE_GAL_FOC 17
455#define STYPE_BDS_G 18
456#define STYPE_BDS_I 19
457#define STYPE_BDS_M 20
458#define STYPE_BDS_I_YS 21
459#define STYPE_BDS_M_YS 22
460#define STYPE_BDS3_G 23
461#define STYPE_BDS3_I_C 24
462#define STYPE_BDS3_I_S 25
463#define STYPE_BDS3_M_C 26
464#define STYPE_BDS3_M_S 27
465#define STYPE_QZS_I_YS 30
476#define EVENT_ATT_EC 1
477#define EVENT_ATT_YS 2
478#define EVENT_ATT_EC_YS 3
479#define EVENT_ATT_YS_EC 4
509#define LOGIN_PROMPT "*** LCLCMBRT MONITOR CONSOLE (" MRTKLIB_SOFTNAME " ver." MRTKLIB_VERSION_STRING ") ***"
510#define LOGIN_USER "admin"
511#define LOGIN_PASSWD "root"
512#define INACT_TIMEOUT 300
514#define ESC_CLEAR "\033[H\033[2J"
515#define ESC_RESET "\033[0m"
516#define ESC_BOLD "\033[1m"
523#define RTCM3PREAMB 0xD3
530#define DLOPT_FORCE 0x01
531#define DLOPT_KEEPCMP 0x02
532#define DLOPT_HOLDERR 0x04
533#define DLOPT_HOLDLST 0x08
621 int tcolor,
int pcolor,
int outalt,
int outtime);
625 int outtrk,
int outpnt,
int outalt,
int outtime);
631 int nsta,
const char* dir,
const char* usr,
const char* pwd,
const char* proxy,
int opts,
char* msg,
634 int ncol,
int datefmt, FILE* fp);
int tle_name_read(const char *file, tle_t *tle)
int dl_exec(gtime_t ts, gtime_t te, double ti, int seqnos, int seqnoe, const url_t *urls, int nurl, char **stas, int nsta, const char *dir, const char *usr, const char *pwd, const char *proxy, int opts, char *msg, FILE *fp)
int dl_readstas(const char *file, char **stas, int nmax)
int tokyo2jgd(double *pos)
void gis_free(gis_t *gis)
int convgpx(const char *infile, const char *outfile, gtime_t ts, gtime_t te, double tint, int qflg, double *offset, int outtrk, int outpnt, int outalt, int outtime)
int convkml(const char *infile, const char *outfile, gtime_t ts, gtime_t te, double tint, int qflg, double *offset, int tcolor, int pcolor, int outalt, int outtime)
int dl_readurls(const char *file, char **types, int ntype, url_t *urls, int nmax)
void settime(gtime_t time)
Set current time for progress display (application-defined).
int convrnx(int format, rnxopt_t *opt, const char *file, char **ofile)
int tle_pos(gtime_t time, const char *name, const char *satno, const char *desig, const tle_t *tle, const erp_t *erp, double *rs)
int tle_read(const char *file, tle_t *tle)
int loaddatump(const char *file)
int gis_read(const char *file, gis_t *gis, int layer)
void settspan(gtime_t ts, gtime_t te)
Set time span for progress display (application-defined).
int showmsg(const char *format,...)
Show status message (application-defined).
int jgd2tokyo(double *pos)
void dl_test(gtime_t ts, gtime_t te, double ti, const url_t *urls, int nurl, char **stas, int nsta, const char *dir, int ncol, int datefmt, FILE *fp)
MRTKLIB Foundation — Common types, standard includes, and system constants (MAXSAT,...
int satno(int sys, int prn)
Convert satellite system+prn/slot number to satellite number.
MRTKLIB Precise Ephemeris Module — Earth rotation parameter types and ERP I/O functions.
static sta_t stas[MAXRCV]
MRTKLIB RINEX Module — RINEX file read/write types and functions.
MRTKLIB Time Module — GNSS time types and conversion functions.
ERP (earth rotation parameter) type.
gisd_t * data[MAXGISLAYER]
char name[MAXGISLAYER][256]
GNSS time representation.