source: ntrip/branches/BNC_2.12/src/RTCM3/gnss.h@ 9043

Last change on this file since 9043 was 9001, checked in by stuerze, 4 years ago

some updates regarding BDS and IRNSS mesage numbers and signal mapping

File size: 4.2 KB
RevLine 
[6812]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
[9001]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 */
[6812]35
[8806]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_FREQU_L1a 1600995000.0 /* Hz */
43#define GLO_FREQU_L2a 1248060000.0 /* Hz */
44#define GLO_FREQU_L3 1202025000.0 /* Hz */
[6812]45#define GLO_WAVELENGTH_L1(a) (LIGHTSPEED / GLO_FREQU_L1(a)) /* m */
46#define GLO_WAVELENGTH_L2(a) (LIGHTSPEED / GLO_FREQU_L2(a)) /* m */
[8806]47#define GLO_WAVELENGTH_L1a (LIGHTSPEED / GLO_FREQU_L1a) /* m */
48#define GLO_WAVELENGTH_L2a (LIGHTSPEED / GLO_FREQU_L2a) /* m */
49#define GLO_WAVELENGTH_L3 (LIGHTSPEED / GLO_FREQU_L3) /* m */
[6812]50
[9001]51#define GAL_FREQU_E1 1575420000.0 /* Hz */
52#define GAL_FREQU_E5A 1176450000.0 /* Hz */
53#define GAL_FREQU_E5AB 1191795000.0 /* Hz */
54#define GAL_FREQU_E5B 1207140000.0 /* Hz */
55#define GAL_FREQU_E6 1278750000.0 /* Hz */
[6812]56#define GAL_WAVELENGTH_E1 (LIGHTSPEED / GAL_FREQU_E1) /* m */
57#define GAL_WAVELENGTH_E5A (LIGHTSPEED / GAL_FREQU_E5A) /* m */
58#define GAL_WAVELENGTH_E5AB (LIGHTSPEED / GAL_FREQU_E5AB) /* m */
59#define GAL_WAVELENGTH_E5B (LIGHTSPEED / GAL_FREQU_E5B) /* m */
60#define GAL_WAVELENGTH_E6 (LIGHTSPEED / GAL_FREQU_E6) /* m */
61
62#define QZSS_FREQU_L1 1575420000.0 /* Hz */
63#define QZSS_FREQU_L2 1227600000.0 /* Hz */
64#define QZSS_FREQU_L5 1176450000.0 /* Hz */
[8681]65#define QZSS_FREQU_L6 1278750000.0 /* Hz */
[6812]66#define QZSS_WAVELENGTH_L1 (LIGHTSPEED / QZSS_FREQU_L1) /* m */
67#define QZSS_WAVELENGTH_L2 (LIGHTSPEED / QZSS_FREQU_L2) /* m */
68#define QZSS_WAVELENGTH_L5 (LIGHTSPEED / QZSS_FREQU_L5) /* m */
[8681]69#define QZSS_WAVELENGTH_L6 (LIGHTSPEED / QZSS_FREQU_L6) /* m */
[6812]70
71#define BDS_FREQU_B1 1561098000.0 /* Hz */
72#define BDS_FREQU_B2 1207140000.0 /* Hz */
73#define BDS_FREQU_B3 1268520000.0 /* Hz */
[8795]74#define BDS_FREQU_B1C 1575420000.0 /* Hz */
75#define BDS_FREQU_B2a 1176450000.0 /* Hz */
[9001]76#define BDS_FREQU_B2b 1207140000.0 /* Hz */
[8795]77#define BDS_WAVELENGTH_B1 (LIGHTSPEED / BDS_FREQU_B1) /* m */
78#define BDS_WAVELENGTH_B2 (LIGHTSPEED / BDS_FREQU_B2) /* m */
79#define BDS_WAVELENGTH_B3 (LIGHTSPEED / BDS_FREQU_B3) /* m */
80#define BDS_WAVELENGTH_B1C (LIGHTSPEED / BDS_FREQU_B1C) /* m */
81#define BDS_WAVELENGTH_B2a (LIGHTSPEED / BDS_FREQU_B2a) /* m */
[9001]82#define BDS_WAVELENGTH_B2b (LIGHTSPEED / BDS_FREQU_B2b) /* m */
[6812]83
[8806]84#define IRNSS_FREQU_L5 1176450000.0 /* Hz */
85#define IRNSS_FREQU_S 2492028000.0 /* Hz */
86#define IRNSS_WAVELENGTH_L5 (LIGHTSPEED / IRNSS_FREQU_L5) /* m */
87#define IRNSS_WAVELENGTH_S (LIGHTSPEED / IRNSS_FREQU_S) /* m */
88
[6812]89#define R2R_PI 3.1415926535898
90
91#endif /* GNSS_H */
Note: See TracBrowser for help on using the repository browser.