Stellarium  0.16.1
List of all members | Public Types | Public Member Functions | Static Public Member Functions
gSatWrapper Class Reference

Wrapper allowing compatibility between gsat and Stellarium/Qt. More...

#include <gSatWrapper.hpp>

Public Types

enum  Visibility {
  UNKNOWN =0, RADAR_SUN =1, VISIBLE =2, RADAR_NIGHT =3,
  NOT_VISIBLE =4
}
 

Public Member Functions

 gSatWrapper (QString designation, QString tle1, QString tle2)
 
void setEpoch (double ai_julianDaysEpoch)
 This operation update Epoch timestamp for gSatTEME object from Stellarium Julian Date. More...
 
Vec3d getTEMEPos () const
 This operation isolate gSatTEME getPos operation. More...
 
Vec3d getTEMEVel () const
 This operation isolate gSatTEME getVel operation. More...
 
Vec3d getSubPoint () const
 This operation isolate getSubPoint method of gSatTEME object. More...
 
Vec3d getAltAz () const
 This operation compute the coordinates in StelCore::FrameAltAz. More...
 
void getSlantRange (double &ao_slantRange, double &ao_slantRangeRate) const
 This operation compute the slant range (distance between the satellite and the observer) and its variation/seg. More...
 
Visibility getVisibilityPredict ()
 This operation predicts the satellite visibility contidions. More...
 
double getPhaseAngle () const
 
gTime getEpoch () const
 

Static Public Member Functions

static Vec3d getSunECIPos ()
 Get Sun positions in ECI system. More...
 
static void calcObserverECIPosition (Vec3d &ao_position, Vec3d &ao_vel)
 This operation computes the observer ECI coordinates in Geocentric Equatorial Coordinate System (IJK) for the ai_epoch time. More...
 

Detailed Description

Wrapper allowing compatibility between gsat and Stellarium/Qt.

Definition at line 41 of file gSatWrapper.hpp.

Member Function Documentation

static void gSatWrapper::calcObserverECIPosition ( Vec3d ao_position,
Vec3d ao_vel 
)
static

This operation computes the observer ECI coordinates in Geocentric Equatorial Coordinate System (IJK) for the ai_epoch time.

This position can be asumed as observer position in TEME framework without an appreciable error. ECI axis (IJK) are parallel to StelCore::EquinoxEQ Framework but centered in the earth centre instead the observer position.

References
Orbital Coordinate Systems, Part II Dr. T.S. Kelso http://www.celestrak.com/columns/v02n02/
Parameters
[out]ao_positionObserver ECI position vector measured in Km
[out]ao_velObserver ECI velocity vector measured in Km/s
Vec3d gSatWrapper::getAltAz ( ) const

This operation compute the coordinates in StelCore::FrameAltAz.

Returns
Vect3d Vector with coordinates (meassured in km)
References
Orbital Coordinate Systems, Part II Dr. T.S. Kelso http://www.celestrak.com/columns/v02n02/
void gSatWrapper::getSlantRange ( double &  ao_slantRange,
double &  ao_slantRangeRate 
) const

This operation compute the slant range (distance between the satellite and the observer) and its variation/seg.

Parameters
&ao_slantRangeReference to a output variable where the method store the slant range measured in Km
&ao_slantRangeRateReference to a output variable where the method store the slant range variation in Km/s
Returns
void
Vec3d gSatWrapper::getSubPoint ( ) const

This operation isolate getSubPoint method of gSatTEME object.

Returns
Vec3d Geographical coordinates
Latitude: Coord[0] measured in degrees
Longitude: Coord[1] measured in degrees
Altitude: Coord[2] measured in Km.
static Vec3d gSatWrapper::getSunECIPos ( )
static

Get Sun positions in ECI system.

Returns
Vec3d with ECI position.
Vec3d gSatWrapper::getTEMEPos ( ) const

This operation isolate gSatTEME getPos operation.

Returns
Vec3d with TEME position. Units measured in Km.
Vec3d gSatWrapper::getTEMEVel ( ) const

This operation isolate gSatTEME getVel operation.

Returns
Vec3d with TEME speed. Units measured in Km/s.
Visibility gSatWrapper::getVisibilityPredict ( )

This operation predicts the satellite visibility contidions.

This prediction can return 4 different states RADAR_SUN when satellite and observer are in the sunlight VISIBLE when satellite is in sunlight and observer is in the dark. Satellite could be visible in the sky. RADAR_NIGHT when satellite is eclipsed by the earth shadow. NOT_VISIBLE The satellite is under the observer horizon

Returns
1 if RADAR_SUN 2 if VISIBLE 3 if RADAR_NIGHT 3 if NOT_VISIBLE
References
Fundamentals of Astrodynamis and Applications (Third Edition) pg 898 David A. Vallado
void gSatWrapper::setEpoch ( double  ai_julianDaysEpoch)

This operation update Epoch timestamp for gSatTEME object from Stellarium Julian Date.


The documentation for this class was generated from the following file: