COSMOS core  1.0.2 (beta)
Comprehensive Open-architecture Solution for Mission Operations Systems
convertdef.h File Reference
#include "support/configCosmos.h"
#include "math/mathlib.h"
Include dependency graph for convertdef.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  cartpos
 Cartesian full position structure. More...
 
struct  cposstruc
 Cartesian position with time. More...
 
struct  geoidpos
 Geodetic position structure. More...
 
struct  spherpos
 Spherical position structure. More...
 
struct  aattstruc
 
struct  quatatt
 
struct  dcmatt
 Direction Cosine Matrix Attitude. More...
 
struct  qatt
 Quaternion Attitude. More...
 
struct  kepstruc
 Classical elements structure. More...
 
struct  bodypos
 
struct  extrapos
 Additional parameters relating to position that need only be calculated once. More...
 
struct  extraatt
 Additional parameters relating to position that need only be calculated once. More...
 
struct  posstruc
 
struct  attstruc
 
struct  locstruc
 
struct  tlestruc
 In units for the SGP4 propogator (not NORAD TLE itself). More...
 
struct  stkstruc
 STK positions structure. More...
 
struct  sgp4struc
 

Macros

#define CLIGHT   299792458.
 Speed of light. More...
 
#define SIGMA   5.67e-8
 SI Stefan-Boltzmann constant. More...
 
#define SOL   (86400.*2.99792458e8)
 SI Gravitational constant. More...
 
#define RSUNM   static_cast<double>(6.955e8)
 SI Radius of Sun. More...
 
#define RMOONM   static_cast<double>(1738000.)
 SI Radius of Moon. More...
 
#define REARTHM   static_cast<double>(6378137.)
 SI Radius of Earth. More...
 
#define REARTHKM   static_cast<double>(6378.137)
 Radius of Earth in Km. More...
 
#define FLATTENING   (1./298.257223563)
 Flattening of Earth. More...
 
#define FRATIO   (1.-FLATTENING)
 
#define FRATIO2   (FRATIO*FRATIO)
 
#define AU   static_cast<double>(1.49597870691e11)
 SI Astronomical Unit. More...
 
#define MSUN   1.9891e30
 SI Mass of Sun. More...
 
#define MEARTH   5.9742e24
 SI Mass of Earth. More...
 
#define MMOON   7.3477e22
 SI Mass of Moon. More...
 
#define MJUPITER   1.8966e27
 SI Mass of Jupiter. More...
 
#define GM   static_cast<double>((3.986004415e14))
 SI Mass * Gravitational Constant for Earth. More...
 
#define GMOON   static_cast<double>((4.9028029535968e+12))
 SI Mass * Gravitational Constant for Moon. More...
 
#define GSUN   static_cast<double>((1.327122e20))
 SI Mass * Gravitational Constant for Sun. More...
 
#define GJUPITER   static_cast<double>((1.266865349218008e17))
 SI Mass * Gravitational Constant for Jupiter. More...
 
#define LAT_HIGP   RADOF(21.297440)
 Latitude of HIGP, in radians. More...
 
#define LON_HIGP   RADOF(157.81630)
 Longitude of HIGP, in radians. More...
 
#define ALT_HIGP   33.
 Altitude of HIGP, in meters. More...
 
#define GEOC_HONOLULU   {{-5588871.,-2278876.,2353191.}}
 Geocentric location of Honolulu. More...
 
#define SGP4_CK2   5.413080E-4
 
#define SGP4_CK4   0.62098875E-6
 
#define SGP4_E6A   1E-6
 
#define SGP4_QOMS2T   1.88027916E-9
 
#define SGP4_S   1.01222928
 
#define SGP4_TOTHRD   2./3.
 
#define SGP4_XJ3   -0.253881E-5
 
#define SGP4_XKE   0.743669161E-1
 
#define SGP4_XKMPER   6378.135
 
#define SGP4_XMNPDA   1440.0
 
#define SGP4_AE   1.
 
#define JPL_MERCURY   1
 
#define JPL_VENUS   2
 
#define JPL_EARTH   3
 
#define JPL_MARS   4
 
#define JPL_JUPITER   5
 
#define JPL_SATURN   6
 
#define JPL_URANUS   7
 
#define JPL_NEPTUNE   8
 
#define JPL_PLUTO   9
 
#define JPL_MOON   10
 
#define JPL_SUN   11
 
#define JPL_SUN_BARY   12
 
#define JPL_EARTH_BARY   13
 
#define JPL_NUTATIONS   14
 
#define MAXTLE   5000
 
#define COSMOS_MERCURY   JPL_MERCURY
 
#define COSMOS_VENUS   JPL_VENUS
 
#define COSMOS_EARTH   JPL_EARTH
 
#define COSMOS_MARS   JPL_MARS
 
#define COSMOS_JUPITER   JPL_JUPITER
 
#define COSMOS_SATURN   JPL_SATURN
 
#define COSMOS_URANUS   JPL_URANUS
 
#define COSMOS_NEPTUNE   JPL_NEPTUNE
 
#define COSMOS_PLUTO   JPL_PLUTO
 
#define COSMOS_MOON   JPL_MOON
 
#define COSMOS_SUN   JPL_SUN
 

Functions

std::ostream & operator<< (std::ostream &out, const cartpos &a)
 
std::istream & operator>> (std::istream &in, cartpos &a)
 
std::ostream & operator<< (std::ostream &out, const cposstruc &a)
 
std::istream & operator>> (std::istream &in, cposstruc &a)
 
std::ostream & operator<< (std::ostream &out, const geoidpos &a)
 
std::istream & operator>> (std::istream &in, geoidpos &a)
 
std::ostream & operator<< (std::ostream &out, const spherpos &a)
 
std::istream & operator>> (std::istream &in, spherpos &a)
 
std::ostream & operator<< (std::ostream &out, const aattstruc &a)
 
std::istream & operator>> (std::istream &in, aattstruc &a)
 
std::ostream & operator<< (std::ostream &out, const quatatt &a)
 
std::istream & operator>> (std::istream &in, quatatt &a)
 
std::ostream & operator<< (std::ostream &out, const dcmatt &a)
 
std::istream & operator>> (std::istream &in, dcmatt &a)
 
std::ostream & operator<< (std::ostream &out, const qatt &a)
 
std::istream & operator>> (std::istream &in, qatt &a)
 
std::ostream & operator<< (std::ostream &out, const kepstruc &a)
 
std::istream & operator>> (std::istream &in, kepstruc &a)
 
std::ostream & operator<< (std::ostream &out, const bodypos &a)
 
std::istream & operator<< (std::istream &in, bodypos &a)
 
std::ostream & operator<< (std::ostream &out, const extrapos &a)
 
std::istream & operator>> (std::istream &in, extrapos &a)
 
std::ostream & operator<< (std::ostream &out, const extraatt &a)
 
std::istream & operator>> (std::istream &in, extraatt &a)
 
std::ostream & operator<< (std::ostream &out, const posstruc &a)
 
std::istream & operator>> (std::istream &in, posstruc &a)
 
std::ostream & operator<< (std::ostream &out, const attstruc &a)
 
std::istream & operator>> (std::istream &in, attstruc &a)
 
std::ostream & operator<< (std::ostream &out, const locstruc &a)
 
std::istream & operator>> (std::istream &in, locstruc &a)