source: ntrip/trunk/BNC/src/RTCM3/gnss.h@ 7985

Last change on this file since 7985 was 6812, checked in by stoecker, 10 years ago

integrate RTCM3 parsing into BNC and directly fill target structures, add doxygen documentation

File size: 3.3 KB
Line 
1// Part of BNC, a utility for retrieving decoding and
2// converting GNSS data streams from NTRIP broadcasters.
3//
4// Copyright (C) 2015
5// German Federal Agency for Cartography and Geodesy (BKG)
6// http://www.bkg.bund.de
7// Alberding GmbH
8// http://www.alberding.eu
9//
10// Email: euref-ip@bkg.bund.de
11//
12// This program is free software; you can redistribute it and/or
13// modify it under the terms of the GNU General Public License
14// as published by the Free Software Foundation, version 2.
15//
16// This program is distributed in the hope that it will be useful,
17// but WITHOUT ANY WARRANTY; without even the implied warranty of
18// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19// GNU General Public License for more details.
20//
21// You should have received a copy of the GNU General Public License
22// along with this program; if not, write to the Free Software
23// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24
25#ifndef GNSS_H
26#define GNSS_H
27
28#define LIGHTSPEED 2.99792458e8 /* m/sec */
29#define GPS_FREQU_L1 1575420000.0 /* Hz */
30#define GPS_FREQU_L2 1227600000.0 /* Hz */
31#define GPS_FREQU_L5 1176450000.0 /* Hz */
32#define GPS_WAVELENGTH_L1 (LIGHTSPEED / GPS_FREQU_L1) /* m */
33#define GPS_WAVELENGTH_L2 (LIGHTSPEED / GPS_FREQU_L2) /* m */
34#define GPS_WAVELENGTH_L5 (LIGHTSPEED / GPS_FREQU_L5) /* m */
35
36#define GLO_FREQU_L1_BASE 1602000000.0 /* Hz */
37#define GLO_FREQU_L2_BASE 1246000000.0 /* Hz */
38#define GLO_FREQU_L1_STEP 562500.0 /* Hz */
39#define GLO_FREQU_L2_STEP 437500.0 /* Hz */
40#define GLO_FREQU_L1(a) (GLO_FREQU_L1_BASE+(a)*GLO_FREQU_L1_STEP)
41#define GLO_FREQU_L2(a) (GLO_FREQU_L2_BASE+(a)*GLO_FREQU_L2_STEP)
42#define GLO_WAVELENGTH_L1(a) (LIGHTSPEED / GLO_FREQU_L1(a)) /* m */
43#define GLO_WAVELENGTH_L2(a) (LIGHTSPEED / GLO_FREQU_L2(a)) /* m */
44
45#define GAL_FREQU_E1 1575420000.0 /* Hz */
46#define GAL_FREQU_E5A 1176450000.0 /* Hz */
47#define GAL_FREQU_E5AB 1191795000.0 /* Hz */
48#define GAL_FREQU_E5B 1207140000.0 /* Hz */
49#define GAL_FREQU_E6 1278750000.0 /* Hz */
50#define GAL_WAVELENGTH_E1 (LIGHTSPEED / GAL_FREQU_E1) /* m */
51#define GAL_WAVELENGTH_E5A (LIGHTSPEED / GAL_FREQU_E5A) /* m */
52#define GAL_WAVELENGTH_E5AB (LIGHTSPEED / GAL_FREQU_E5AB) /* m */
53#define GAL_WAVELENGTH_E5B (LIGHTSPEED / GAL_FREQU_E5B) /* m */
54#define GAL_WAVELENGTH_E6 (LIGHTSPEED / GAL_FREQU_E6) /* m */
55
56#define QZSS_FREQU_L1 1575420000.0 /* Hz */
57#define QZSS_FREQU_L2 1227600000.0 /* Hz */
58#define QZSS_FREQU_L5 1176450000.0 /* Hz */
59#define QZSS_FREQU_LEX 1278750000.0 /* Hz */
60#define QZSS_WAVELENGTH_L1 (LIGHTSPEED / QZSS_FREQU_L1) /* m */
61#define QZSS_WAVELENGTH_L2 (LIGHTSPEED / QZSS_FREQU_L2) /* m */
62#define QZSS_WAVELENGTH_L5 (LIGHTSPEED / QZSS_FREQU_L5) /* m */
63#define QZSS_WAVELENGTH_LEX (LIGHTSPEED / QZSS_FREQU_LEX) /* m */
64
65#define BDS_FREQU_B1 1561098000.0 /* Hz */
66#define BDS_FREQU_B2 1207140000.0 /* Hz */
67#define BDS_FREQU_B3 1268520000.0 /* Hz */
68#define BDS_WAVELENGTH_B1 (LIGHTSPEED / BDS_FREQU_B1) /* m */
69#define BDS_WAVELENGTH_B2 (LIGHTSPEED / BDS_FREQU_B2) /* m */
70#define BDS_WAVELENGTH_B3 (LIGHTSPEED / BDS_FREQU_B3) /* m */
71
72#define R2R_PI 3.1415926535898
73
74#define RTCM3ID_BDS 63
75
76#endif /* GNSS_H */
Note: See TracBrowser for help on using the repository browser.