constants.h File Reference


Detailed Description

GNSS core 'c' function library: Contains constants.

Author:
Glenn D. MacGougan (GDM)
Date:
2007-11-29
Since:
2005-07-30
"LICENSE INFORMATION"
Copyright (c) 2007, refer to 'author' doxygen tags
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided the following conditions are met:

THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Definition in file constants.h.

Go to the source code of this file.

Defines

#define PI   (3.1415926535897932384626433832795)
 better value
#define TWOPI   (6.283185307179586476925286766559)
 2.0*PI
#define HALFPI   (1.5707963267948966192313216916398)
 PI/2.0.
#define DEG2RAD   (0.017453292519943295769236907684886)
 PI/180.0.
#define RAD2DEG   (57.295779513082320876798154814105)
 180.0/PI
#define SECONDS_IN_WEEK   (604800.0)
 [s]
#define LIGHTSPEED   (299792458.0)
 light speed constant defined in ICD-GPS-200C p. 89 [m/s]
#define GPS_FREQUENCYL1   (1575.42e06)
 [Hz]
#define GPS_FREQUENCYL2   (1227.60e06)
 [Hz]
#define GPS_WAVELENGTHL1   (0.19029367279836488047631742646405)
 [m]
#define GPS_WAVELENGTHL2   (0.24421021342456825)
 [m]


Define Documentation

#define DEG2RAD   (0.017453292519943295769236907684886)

PI/180.0.

Definition at line 63 of file constants.h.

#define GPS_FREQUENCYL1   (1575.42e06)

[Hz]

Definition at line 79 of file constants.h.

#define GPS_FREQUENCYL2   (1227.60e06)

[Hz]

Definition at line 83 of file constants.h.

#define GPS_WAVELENGTHL1   (0.19029367279836488047631742646405)

[m]

Definition at line 88 of file constants.h.

#define GPS_WAVELENGTHL2   (0.24421021342456825)

[m]

Definition at line 93 of file constants.h.

#define HALFPI   (1.5707963267948966192313216916398)

PI/2.0.

Definition at line 55 of file constants.h.

#define LIGHTSPEED   (299792458.0)

light speed constant defined in ICD-GPS-200C p. 89 [m/s]

Definition at line 75 of file constants.h.

#define PI   (3.1415926535897932384626433832795)

better value

Definition at line 47 of file constants.h.

#define RAD2DEG   (57.295779513082320876798154814105)

180.0/PI

Definition at line 67 of file constants.h.

#define SECONDS_IN_WEEK   (604800.0)

[s]

Definition at line 71 of file constants.h.

#define TWOPI   (6.283185307179586476925286766559)

2.0*PI

Definition at line 51 of file constants.h.