GNSS-SDR  0.0.13
An Open Source GNSS Software Defined Receiver
Variables
MATH_CONSTANTS.h File Reference

Defines useful mathematical constants and their scaled versions. More...

Go to the source code of this file.

Variables

constexpr double GNSS_OMEGA_EARTH_DOT = 7.2921151467e-5
 Default Earth rotation rate, [rad/s]. More...
 
constexpr double SPEED_OF_LIGHT_M_S = 299792458.0
 Speed of light in vacuum [m/s]. More...
 
constexpr double SPEED_OF_LIGHT_M_MS = 299792.4580
 Speed of light in vacuum [m/ms]. More...
 
constexpr double GPS_GM = 3.986005e14
 Universal gravitational constant times the mass of the Earth, [m^3/s^2] IS-GPS-200K, pag 92. More...
 
constexpr double GPS_F = -4.442807633e-10
 Constant, [s/(m)^(1/2)], IS-GPS-200K, pag. 92. More...
 
constexpr double GALILEO_GM = 3.986004418e14
 Geocentric gravitational constant[m^3/s^2], OS SIS ICD v1.3, pag. 44. More...
 
constexpr double GALILEO_F = -4.442807309e-10
 Constant, [s/(m)^(1/2)]. OS SIS ICD v1.3, pag. 47. More...
 
constexpr double GLONASS_OMEGA_EARTH_DOT = 7.292115e-5
 Earth rotation rate, [rad/s] ICD L1, L2 GLONASS Edition 5.1 2008 pag. 55. More...
 
constexpr double GLONASS_GM = 398600.44e9
 Universal gravitational constant times the mass of the Earth, [m^3/s^2]. More...
 
constexpr double BEIDOU_OMEGA_EARTH_DOT = 7.2921150e-5
 Earth rotation rate, [rad/s] as defined in BDS-SIS-ICD-B1I-3.0 2019-02, pag. 3. More...
 
constexpr double BEIDOU_GM = 3.986004418e14
 Universal gravitational constant times the mass of the Earth, [m^3/s^2] as defined in CGCS2000. More...
 
constexpr double BEIDOU_F = -4.442807309e-10
 Constant, [s/(m)^(1/2)] F=-2(GM)^.5/C^2. More...
 
constexpr double GNSS_PI = 3.1415926535898
 pi constant as defined for GNSS More...
 
constexpr double HALF_PI = GNSS_PI / 2.0
 pi/2 More...
 
constexpr double TWO_PI = 2.0 * GNSS_PI
 2 * pi More...
 
constexpr double TWO_P3 = 8.0
 2^3 More...
 
constexpr double TWO_P4 = 16.0
 2^4 More...
 
constexpr double TWO_P11 = 2048.0
 2^11 More...
 
constexpr double TWO_P12 = 4096.0
 2^12 More...
 
constexpr double TWO_P14 = 16384.0
 2^14 More...
 
constexpr double TWO_P16 = 65536.0
 2^16 More...
 
constexpr double TWO_P19 = 524288.0
 2^19 More...
 
constexpr double TWO_P31 = 2147483648.0
 2^31 More...
 
constexpr double TWO_P32 = 4294967296.0
 2^32 More...
 
constexpr double TWO_P56 = 7.205759403792794e+016
 2^56 More...
 
constexpr double TWO_P57 = 1.441151880758559e+017
 2^57 More...
 
constexpr double TWO_N2 = 0.25
 2^-2 More...
 
constexpr double TWO_N5 = 0.03125
 2^-5 More...
 
constexpr double TWO_N6 = 0.015625
 2^-6 More...
 
constexpr double TWO_N8 = 0.00390625
 2^-8 More...
 
constexpr double TWO_N9 = 0.001953125
 2^-9 More...
 
constexpr double TWO_N10 = 0.0009765625
 2^-10 More...
 
constexpr double TWO_N11 = 4.882812500000000e-004
 2^-11 More...
 
constexpr double TWO_N14 = 0.00006103515625
 2^-14 More...
 
constexpr double TWO_N15 = 0.00003051757813
 2^-15 More...
 
constexpr double TWO_N16 = 0.0000152587890625
 2^-16 More...
 
constexpr double TWO_N17 = 7.629394531250000e-006
 2^-17 More...
 
constexpr double TWO_N18 = 3.814697265625000e-006
 2^-18 More...
 
constexpr double TWO_N19 = 1.907348632812500e-006
 2^-19 More...
 
constexpr double TWO_N20 = 9.536743164062500e-007
 2^-20 More...
 
constexpr double TWO_N21 = 4.768371582031250e-007
 2^-21 More...
 
constexpr double TWO_N23 = 1.192092895507810e-007
 2^-23 More...
 
constexpr double TWO_N24 = 5.960464477539063e-008
 2^-24 More...
 
constexpr double TWO_N25 = 2.980232238769531e-008
 2^-25 More...
 
constexpr double TWO_N27 = 7.450580596923828e-009
 2^-27 More...
 
constexpr double TWO_N29 = 1.862645149230957e-009
 2^-29 More...
 
constexpr double TWO_N30 = 9.313225746154785e-010
 2^-30 More...
 
constexpr double TWO_N31 = 4.656612873077393e-010
 2^-31 More...
 
constexpr double TWO_N32 = 2.328306436538696e-010
 2^-32 More...
 
constexpr double TWO_N33 = 1.164153218269348e-010
 2^-33 More...
 
constexpr double TWO_N34 = 5.82076609134674e-011
 2^-34 More...
 
constexpr double TWO_N35 = 2.91038304567337e-011
 2^-35 More...
 
constexpr double TWO_N38 = 3.637978807091713e-012
 2^-38 More...
 
constexpr double TWO_N39 = 1.818989403545856e-012
 2^-39 More...
 
constexpr double TWO_N40 = 9.094947017729280e-013
 2^-40 More...
 
constexpr double TWO_N43 = 1.136868377216160e-013
 2^-43 More...
 
constexpr double TWO_N44 = 5.684341886080802e-14
 2^-44 More...
 
constexpr double TWO_N46 = 1.4210854715202e-014
 2^-46 More...
 
constexpr double TWO_N48 = 3.552713678800501e-15
 2^-46 More...
 
constexpr double TWO_N50 = 8.881784197001252e-016
 2^-50 More...
 
constexpr double TWO_N51 = 4.44089209850063e-016
 2^-51 More...
 
constexpr double TWO_N55 = 2.775557561562891e-017
 2^-55 More...
 
constexpr double TWO_N57 = 6.938893903907228e-18
 2^-57 More...
 
constexpr double TWO_N59 = 1.73472347597681e-018
 2^-59 More...
 
constexpr double TWO_N60 = 8.673617379884036e-19
 2^-60 More...
 
constexpr double TWO_N66 = 1.3552527156068805425093160010874271392822265625e-20
 2^-66 More...
 
constexpr double TWO_N68 = 3.388131789017201e-21
 2^-68 More...
 
constexpr double PI_TWO_N19 = 5.992112452678286e-006
 Pi*2^-19. More...
 
constexpr double PI_TWO_N43 = 3.571577341960839e-013
 Pi*2^-43. More...
 
constexpr double PI_TWO_N31 = 1.462918079267160e-009
 Pi*2^-31. More...
 
constexpr double PI_TWO_N38 = 1.142904749427469e-011
 Pi*2^-38. More...
 
constexpr double PI_TWO_N23 = 3.745070282923929e-007
 Pi*2^-23. More...
 
constexpr double D2R = GNSS_PI / 180.0
 deg to rad More...
 
constexpr double R2D = 180.0 / GNSS_PI
 rad to deg More...
 
constexpr double SC2RAD = GNSS_PI
 semi-circle to radian (IS-GPS) More...
 
constexpr double AS2R = D2R / 3600.0
 arc sec to radian More...
 
constexpr double AU = 149597870691.0
 1 Astronomical Unit AU (m) distance from Earth to the Sun. More...
 

Detailed Description

Defines useful mathematical constants and their scaled versions.

Author
Javier Arribas, 2013. jarribas(at)cttc.es

Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)

GNSS-SDR is a software defined Global Navigation Satellite Systems receiver

This file is part of GNSS-SDR.

SPDX-License-Identifier: GPL-3.0-or-later


Definition in file MATH_CONSTANTS.h.

Variable Documentation

◆ AS2R

constexpr double AS2R = D2R / 3600.0

arc sec to radian

Definition at line 120 of file MATH_CONSTANTS.h.

◆ AU

constexpr double AU = 149597870691.0

1 Astronomical Unit AU (m) distance from Earth to the Sun.

Definition at line 122 of file MATH_CONSTANTS.h.

◆ BEIDOU_F

constexpr double BEIDOU_F = -4.442807309e-10

Constant, [s/(m)^(1/2)] F=-2(GM)^.5/C^2.

Definition at line 42 of file MATH_CONSTANTS.h.

◆ BEIDOU_GM

constexpr double BEIDOU_GM = 3.986004418e14

Universal gravitational constant times the mass of the Earth, [m^3/s^2] as defined in CGCS2000.

Definition at line 41 of file MATH_CONSTANTS.h.

◆ BEIDOU_OMEGA_EARTH_DOT

constexpr double BEIDOU_OMEGA_EARTH_DOT = 7.2921150e-5

Earth rotation rate, [rad/s] as defined in BDS-SIS-ICD-B1I-3.0 2019-02, pag. 3.

Definition at line 40 of file MATH_CONSTANTS.h.

◆ D2R

constexpr double D2R = GNSS_PI / 180.0

deg to rad

Definition at line 117 of file MATH_CONSTANTS.h.

◆ GALILEO_F

constexpr double GALILEO_F = -4.442807309e-10

Constant, [s/(m)^(1/2)]. OS SIS ICD v1.3, pag. 47.

Definition at line 33 of file MATH_CONSTANTS.h.

◆ GALILEO_GM

constexpr double GALILEO_GM = 3.986004418e14

Geocentric gravitational constant[m^3/s^2], OS SIS ICD v1.3, pag. 44.

Definition at line 32 of file MATH_CONSTANTS.h.

◆ GLONASS_GM

constexpr double GLONASS_GM = 398600.44e9

Universal gravitational constant times the mass of the Earth, [m^3/s^2].

Definition at line 37 of file MATH_CONSTANTS.h.

◆ GLONASS_OMEGA_EARTH_DOT

constexpr double GLONASS_OMEGA_EARTH_DOT = 7.292115e-5

Earth rotation rate, [rad/s] ICD L1, L2 GLONASS Edition 5.1 2008 pag. 55.

Definition at line 36 of file MATH_CONSTANTS.h.

◆ GNSS_OMEGA_EARTH_DOT

constexpr double GNSS_OMEGA_EARTH_DOT = 7.2921151467e-5

Default Earth rotation rate, [rad/s].

Definition at line 23 of file MATH_CONSTANTS.h.

◆ GNSS_PI

constexpr double GNSS_PI = 3.1415926535898

pi constant as defined for GNSS

Definition at line 44 of file MATH_CONSTANTS.h.

◆ GPS_F

constexpr double GPS_F = -4.442807633e-10

Constant, [s/(m)^(1/2)], IS-GPS-200K, pag. 92.

Definition at line 29 of file MATH_CONSTANTS.h.

◆ GPS_GM

constexpr double GPS_GM = 3.986005e14

Universal gravitational constant times the mass of the Earth, [m^3/s^2] IS-GPS-200K, pag 92.

Definition at line 28 of file MATH_CONSTANTS.h.

◆ HALF_PI

constexpr double HALF_PI = GNSS_PI / 2.0

pi/2

Definition at line 45 of file MATH_CONSTANTS.h.

◆ PI_TWO_N19

constexpr double PI_TWO_N19 = 5.992112452678286e-006

Pi*2^-19.

Definition at line 111 of file MATH_CONSTANTS.h.

◆ PI_TWO_N23

constexpr double PI_TWO_N23 = 3.745070282923929e-007

Pi*2^-23.

Definition at line 115 of file MATH_CONSTANTS.h.

◆ PI_TWO_N31

constexpr double PI_TWO_N31 = 1.462918079267160e-009

Pi*2^-31.

Definition at line 113 of file MATH_CONSTANTS.h.

◆ PI_TWO_N38

constexpr double PI_TWO_N38 = 1.142904749427469e-011

Pi*2^-38.

Definition at line 114 of file MATH_CONSTANTS.h.

◆ PI_TWO_N43

constexpr double PI_TWO_N43 = 3.571577341960839e-013

Pi*2^-43.

Definition at line 112 of file MATH_CONSTANTS.h.

◆ R2D

constexpr double R2D = 180.0 / GNSS_PI

rad to deg

Definition at line 118 of file MATH_CONSTANTS.h.

◆ SC2RAD

constexpr double SC2RAD = GNSS_PI

semi-circle to radian (IS-GPS)

Definition at line 119 of file MATH_CONSTANTS.h.

◆ SPEED_OF_LIGHT_M_MS

constexpr double SPEED_OF_LIGHT_M_MS = 299792.4580

Speed of light in vacuum [m/ms].

Definition at line 25 of file MATH_CONSTANTS.h.

◆ SPEED_OF_LIGHT_M_S

constexpr double SPEED_OF_LIGHT_M_S = 299792458.0

Speed of light in vacuum [m/s].

Definition at line 24 of file MATH_CONSTANTS.h.

◆ TWO_N10

constexpr double TWO_N10 = 0.0009765625

2^-10

Definition at line 73 of file MATH_CONSTANTS.h.

◆ TWO_N11

constexpr double TWO_N11 = 4.882812500000000e-004

2^-11

Definition at line 74 of file MATH_CONSTANTS.h.

◆ TWO_N14

constexpr double TWO_N14 = 0.00006103515625

2^-14

Definition at line 75 of file MATH_CONSTANTS.h.

◆ TWO_N15

constexpr double TWO_N15 = 0.00003051757813

2^-15

Definition at line 76 of file MATH_CONSTANTS.h.

◆ TWO_N16

constexpr double TWO_N16 = 0.0000152587890625

2^-16

Definition at line 77 of file MATH_CONSTANTS.h.

◆ TWO_N17

constexpr double TWO_N17 = 7.629394531250000e-006

2^-17

Definition at line 78 of file MATH_CONSTANTS.h.

◆ TWO_N18

constexpr double TWO_N18 = 3.814697265625000e-006

2^-18

Definition at line 79 of file MATH_CONSTANTS.h.

◆ TWO_N19

constexpr double TWO_N19 = 1.907348632812500e-006

2^-19

Definition at line 80 of file MATH_CONSTANTS.h.

◆ TWO_N2

constexpr double TWO_N2 = 0.25

2^-2

Definition at line 68 of file MATH_CONSTANTS.h.

◆ TWO_N20

constexpr double TWO_N20 = 9.536743164062500e-007

2^-20

Definition at line 81 of file MATH_CONSTANTS.h.

◆ TWO_N21

constexpr double TWO_N21 = 4.768371582031250e-007

2^-21

Definition at line 82 of file MATH_CONSTANTS.h.

◆ TWO_N23

constexpr double TWO_N23 = 1.192092895507810e-007

2^-23

Definition at line 83 of file MATH_CONSTANTS.h.

◆ TWO_N24

constexpr double TWO_N24 = 5.960464477539063e-008

2^-24

Definition at line 84 of file MATH_CONSTANTS.h.

◆ TWO_N25

constexpr double TWO_N25 = 2.980232238769531e-008

2^-25

Definition at line 85 of file MATH_CONSTANTS.h.

◆ TWO_N27

constexpr double TWO_N27 = 7.450580596923828e-009

2^-27

Definition at line 86 of file MATH_CONSTANTS.h.

◆ TWO_N29

constexpr double TWO_N29 = 1.862645149230957e-009

2^-29

Definition at line 87 of file MATH_CONSTANTS.h.

◆ TWO_N30

constexpr double TWO_N30 = 9.313225746154785e-010

2^-30

Definition at line 88 of file MATH_CONSTANTS.h.

◆ TWO_N31

constexpr double TWO_N31 = 4.656612873077393e-010

2^-31

Definition at line 89 of file MATH_CONSTANTS.h.

◆ TWO_N32

constexpr double TWO_N32 = 2.328306436538696e-010

2^-32

Definition at line 90 of file MATH_CONSTANTS.h.

◆ TWO_N33

constexpr double TWO_N33 = 1.164153218269348e-010

2^-33

Definition at line 91 of file MATH_CONSTANTS.h.

◆ TWO_N34

constexpr double TWO_N34 = 5.82076609134674e-011

2^-34

Definition at line 92 of file MATH_CONSTANTS.h.

◆ TWO_N35

constexpr double TWO_N35 = 2.91038304567337e-011

2^-35

Definition at line 93 of file MATH_CONSTANTS.h.

◆ TWO_N38

constexpr double TWO_N38 = 3.637978807091713e-012

2^-38

Definition at line 94 of file MATH_CONSTANTS.h.

◆ TWO_N39

constexpr double TWO_N39 = 1.818989403545856e-012

2^-39

Definition at line 95 of file MATH_CONSTANTS.h.

◆ TWO_N40

constexpr double TWO_N40 = 9.094947017729280e-013

2^-40

Definition at line 96 of file MATH_CONSTANTS.h.

◆ TWO_N43

constexpr double TWO_N43 = 1.136868377216160e-013

2^-43

Definition at line 97 of file MATH_CONSTANTS.h.

◆ TWO_N44

constexpr double TWO_N44 = 5.684341886080802e-14

2^-44

Definition at line 98 of file MATH_CONSTANTS.h.

◆ TWO_N46

constexpr double TWO_N46 = 1.4210854715202e-014

2^-46

Definition at line 99 of file MATH_CONSTANTS.h.

◆ TWO_N48

constexpr double TWO_N48 = 3.552713678800501e-15

2^-46

Definition at line 100 of file MATH_CONSTANTS.h.

◆ TWO_N5

constexpr double TWO_N5 = 0.03125

2^-5

Definition at line 69 of file MATH_CONSTANTS.h.

◆ TWO_N50

constexpr double TWO_N50 = 8.881784197001252e-016

2^-50

Definition at line 102 of file MATH_CONSTANTS.h.

◆ TWO_N51

constexpr double TWO_N51 = 4.44089209850063e-016

2^-51

Definition at line 103 of file MATH_CONSTANTS.h.

◆ TWO_N55

constexpr double TWO_N55 = 2.775557561562891e-017

2^-55

Definition at line 104 of file MATH_CONSTANTS.h.

◆ TWO_N57

constexpr double TWO_N57 = 6.938893903907228e-18

2^-57

Definition at line 105 of file MATH_CONSTANTS.h.

◆ TWO_N59

constexpr double TWO_N59 = 1.73472347597681e-018

2^-59

Definition at line 106 of file MATH_CONSTANTS.h.

◆ TWO_N6

constexpr double TWO_N6 = 0.015625

2^-6

Definition at line 70 of file MATH_CONSTANTS.h.

◆ TWO_N60

constexpr double TWO_N60 = 8.673617379884036e-19

2^-60

Definition at line 107 of file MATH_CONSTANTS.h.

◆ TWO_N66

constexpr double TWO_N66 = 1.3552527156068805425093160010874271392822265625e-20

2^-66

Definition at line 108 of file MATH_CONSTANTS.h.

◆ TWO_N68

constexpr double TWO_N68 = 3.388131789017201e-21

2^-68

Definition at line 109 of file MATH_CONSTANTS.h.

◆ TWO_N8

constexpr double TWO_N8 = 0.00390625

2^-8

Definition at line 71 of file MATH_CONSTANTS.h.

◆ TWO_N9

constexpr double TWO_N9 = 0.001953125

2^-9

Definition at line 72 of file MATH_CONSTANTS.h.

◆ TWO_P11

constexpr double TWO_P11 = 2048.0

2^11

Definition at line 58 of file MATH_CONSTANTS.h.

◆ TWO_P12

constexpr double TWO_P12 = 4096.0

2^12

Definition at line 59 of file MATH_CONSTANTS.h.

◆ TWO_P14

constexpr double TWO_P14 = 16384.0

2^14

Definition at line 60 of file MATH_CONSTANTS.h.

◆ TWO_P16

constexpr double TWO_P16 = 65536.0

2^16

Definition at line 61 of file MATH_CONSTANTS.h.

◆ TWO_P19

constexpr double TWO_P19 = 524288.0

2^19

Definition at line 62 of file MATH_CONSTANTS.h.

◆ TWO_P3

constexpr double TWO_P3 = 8.0

2^3

Definition at line 56 of file MATH_CONSTANTS.h.

◆ TWO_P31

constexpr double TWO_P31 = 2147483648.0

2^31

Definition at line 63 of file MATH_CONSTANTS.h.

◆ TWO_P32

constexpr double TWO_P32 = 4294967296.0

2^32

Definition at line 64 of file MATH_CONSTANTS.h.

◆ TWO_P4

constexpr double TWO_P4 = 16.0

2^4

Definition at line 57 of file MATH_CONSTANTS.h.

◆ TWO_P56

constexpr double TWO_P56 = 7.205759403792794e+016

2^56

Definition at line 65 of file MATH_CONSTANTS.h.

◆ TWO_P57

constexpr double TWO_P57 = 1.441151880758559e+017

2^57

Definition at line 66 of file MATH_CONSTANTS.h.

◆ TWO_PI

constexpr double TWO_PI = 2.0 * GNSS_PI

2 * pi

Definition at line 46 of file MATH_CONSTANTS.h.