GNSS-SDR
0.0.19
An Open Source GNSS Software Defined Receiver
src
algorithms
libs
rtklib
rtklib_preceph.h
Go to the documentation of this file.
1
/*!
2
* \file rtklib_preceph.h
3
* \brief precise ephemeris and clock functions
4
* \authors <ul>
5
* <li> 2007-2013, T. Takasu
6
* <li> 2017, Javier Arribas
7
* <li> 2017, Carles Fernandez
8
* </ul>
9
*
10
* This is a derived work from RTKLIB http://www.rtklib.com/
11
* The original source code at https://github.com/tomojitakasu/RTKLIB is
12
* released under the BSD 2-clause license with an additional exclusive clause
13
* that does not apply here. This additional clause is reproduced below:
14
*
15
* " The software package includes some companion executive binaries or shared
16
* libraries necessary to execute APs on Windows. These licenses succeed to the
17
* original ones of these software. "
18
*
19
* Neither the executive binaries nor the shared libraries are required by, used
20
* or included in GNSS-SDR.
21
*
22
* -----------------------------------------------------------------------------
23
* Copyright (C) 2007-2013, T. Takasu
24
* Copyright (C) 2017, Javier Arribas
25
* Copyright (C) 2017, Carles Fernandez
26
* All rights reserved.
27
*
28
* SPDX-License-Identifier: BSD-2-Clause
29
*
30
*
31
* References :
32
* [1] S.Hilla, The Extended Standard Product 3 Orbit Format (SP3-c),
33
* 12 February, 2007
34
* [2] J.Ray, W.Gurtner, RINEX Extensions to Handle Clock Information,
35
* 27 August, 1998
36
* [3] D.D.McCarthy, IERS Technical Note 21, IERS Conventions 1996, July 1996
37
* [4] D.A.Vallado, Fundamentals of Astrodynamics and Applications 2nd ed,
38
* Space Technology Library, 2004
39
*
40
* -----------------------------------------------------------------------------
41
*/
42
43
#ifndef GNSS_SDR_RTKLIB_PRECEPH_H
44
#define GNSS_SDR_RTKLIB_PRECEPH_H
45
46
#include "
rtklib.h
"
47
48
49
const
int
NMAX = 10;
/* order of polynomial interpolation */
50
const
double
MAXDTE = 900.0;
/* max time difference to ephem time (s) */
51
const
double
EXTERR_CLK = 1e-3;
/* extrapolation error for clock (m/s) */
52
const
double
EXTERR_EPH = 5e-7;
/* extrapolation error for ephem (m/s^2) */
53
54
int
code2sys(
char
code);
55
56
int
readsp3h(FILE *fp,
gtime_t
*time,
char
*type,
int
*sats,
57
double
*bfact,
char
*tsys);
58
59
int
addpeph(
nav_t
*nav,
peph_t
*peph);
60
61
void
readsp3b(FILE *fp,
char
type,
int
*sats,
int
ns,
const
double
*bfact,
62
char
*tsys,
int
index,
int
opt,
nav_t
*nav);
63
64
int
cmppeph(
const
void
*p1,
const
void
*p2);
65
66
void
combpeph(
nav_t
*nav,
int
opt);
67
68
void
readsp3(
const
char
*file,
nav_t
*nav,
int
opt);
69
70
int
readsap(
const
char
*file,
gtime_t
time,
nav_t
*nav);
71
72
int
readdcbf(
const
char
*file,
nav_t
*nav,
const
sta_t
*sta);
73
74
int
readdcb(
const
char
*file,
nav_t
*nav,
const
sta_t
*sta);
75
76
double
interppol(
const
double
*x,
double
*y,
int
n);
77
78
int
pephpos(
gtime_t
time,
int
sat,
const
nav_t
*nav,
double
*rs,
79
double
*dts,
double
*vare,
double
*varc);
80
81
int
pephclk(
gtime_t
time,
int
sat,
const
nav_t
*nav,
double
*dts,
82
double
*varc);
83
84
void
satantoff(
gtime_t
time,
const
double
*rs,
int
sat,
const
nav_t
*nav,
85
double
*dant);
86
87
int
peph2pos(
gtime_t
time,
int
sat,
const
nav_t
*nav,
int
opt,
88
double
*rs,
double
*dts,
double
*var);
89
90
#endif // GNSS_SDR_RTKLIB_PRECEPH_H
nav_t
Definition:
rtklib.h:752
gtime_t
Definition:
rtklib.h:355
rtklib.h
main header file for the rtklib library
sta_t
Definition:
rtklib.h:801
peph_t
Definition:
rtklib.h:478
Generated by
1.8.14